hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
subtract_asset_quantity.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_SUBTRACT_ASSET_QUANTITY_HPP
7 #define IROHA_SHARED_MODEL_SUBTRACT_ASSET_QUANTITY_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
16 
20  class SubtractAssetQuantity : public ModelPrimitive<SubtractAssetQuantity> {
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 
38 #endif // IROHA_SHARED_MODEL_SUBTRACT_ASSET_QUANTITY_HPP
Definition: amount.hpp:20
Definition: subtract_asset_quantity.hpp:20
std::string toString() const override
Definition: subtract_asset_quantity.cpp:11
Definition: model_primitive.hpp:22
virtual const Amount & amount() const =0
Definition: command_executor.hpp:12
bool operator==(const ModelType &rhs) const override
Definition: subtract_asset_quantity.cpp:19
virtual const types::AssetIdType & assetId() const =0
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55