hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_CREATE_ASSET_HPP
7 #define IROHA_SHARED_MODEL_CREATE_ASSET_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace interface {
18  class CreateAsset : public NonCopyableModelPrimitive<CreateAsset> {
19  public:
23  virtual const types::AssetNameType &assetName() const = 0;
27  virtual const types::DomainIdType &domainId() const = 0;
29  using PrecisionType = uint8_t;
33  virtual const PrecisionType &precision() const = 0;
34 
35  std::string toString() const override;
36 
37  bool operator==(const ModelType &rhs) const override;
38  };
39  } // namespace interface
40 } // namespace shared_model
41 
42 #endif // IROHA_SHARED_MODEL_CREATE_ASSET_HPP
std::string toString() const override
Definition: create_asset.cpp:11
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:51
Definition: create_asset.hpp:18
virtual const PrecisionType & precision() const =0
virtual const types::DomainIdType & domainId() const =0
uint8_t PrecisionType
Precision type.
Definition: create_asset.hpp:29
virtual const types::AssetNameType & assetName() const =0
Definition: noncopyable_model_primitive.hpp:20
Definition: command_executor.hpp:12
std::string AssetNameType
Type of asset name.
Definition: types.hpp:67
bool operator==(const ModelType &rhs) const override
Definition: create_asset.cpp:20