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 
11 
12 namespace shared_model {
13  namespace interface {
17  class CreateAsset : public ModelPrimitive<CreateAsset> {
18  public:
22  virtual const types::AssetNameType &assetName() const = 0;
26  virtual const types::DomainIdType &domainId() const = 0;
28  using PrecisionType = uint8_t;
32  virtual const PrecisionType &precision() const = 0;
33 
34  std::string toString() const override;
35 
36  bool operator==(const ModelType &rhs) const override;
37  };
38  } // namespace interface
39 } // namespace shared_model
40 
41 #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:49
Definition: create_asset.hpp:17
virtual const PrecisionType & precision() const =0
virtual const types::DomainIdType & domainId() const =0
uint8_t PrecisionType
Precision type.
Definition: create_asset.hpp:28
virtual const types::AssetNameType & assetName() const =0
Definition: model_primitive.hpp:23
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