hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
add_asset_quantity.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_ADD_ASSET_QUANTITY_HPP
7 #define IROHA_SHARED_MODEL_ADD_ASSET_QUANTITY_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
16 
20  class AddAssetQuantity : public ModelPrimitive<AddAssetQuantity> {
21  public:
25  virtual const types::AssetIdType &assetId() const = 0;
29  virtual const Amount &amount() const = 0;
30 
31  std::string toString() const override;
32 
33  bool operator==(const ModelType &rhs) const override;
34  };
35  } // namespace interface
36 } // namespace shared_model
37 #endif // IROHA_SHARED_MODEL_ADD_ASSET_QUANTITY_HPP
std::string toString() const override
Definition: add_asset_quantity.cpp:11
Definition: amount.hpp:19
virtual const types::AssetIdType & assetId() const =0
virtual const Amount & amount() const =0
bool operator==(const ModelType &rhs) const override
Definition: add_asset_quantity.cpp:19
Definition: model_primitive.hpp:22
Definition: add_asset_quantity.hpp:20
Definition: command_executor.hpp:12
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55