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 
12 
13 namespace shared_model {
14  namespace interface {
15 
19  class SubtractAssetQuantity : public ModelPrimitive<SubtractAssetQuantity> {
20  public:
24  virtual const types::AssetIdType &assetId() const = 0;
28  virtual const Amount &amount() const = 0;
29 
30  std::string toString() const override;
31 
32  bool operator==(const ModelType &rhs) const override;
33  };
34  } // namespace interface
35 } // namespace shared_model
36 
37 #endif // IROHA_SHARED_MODEL_SUBTRACT_ASSET_QUANTITY_HPP
Definition: amount.hpp:20
Definition: subtract_asset_quantity.hpp:19
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
std::string toString() const override
Definition: subtract_asset_quantity.cpp:11
Definition: model_primitive.hpp:23
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:53