hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
set_quorum.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_SET_QUORUM_HPP
7 #define IROHA_SHARED_MODEL_SET_QUORUM_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace interface {
18  class SetQuorum : public NonCopyableModelPrimitive<SetQuorum> {
19  public:
23  virtual const types::AccountIdType &accountId() const = 0;
27  virtual types::QuorumType newQuorum() const = 0;
28 
29  std::string toString() const override;
30 
31  bool operator==(const ModelType &rhs) const override;
32  };
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_MODEL_SET_QUORUM_HPP
bool operator==(const ModelType &rhs) const override
Definition: set_quorum.cpp:19
Definition: set_quorum.hpp:18
virtual const types::AccountIdType & accountId() const =0
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
virtual types::QuorumType newQuorum() const =0
Definition: noncopyable_model_primitive.hpp:20
Definition: command_executor.hpp:12
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:62
std::string toString() const override
Definition: set_quorum.cpp:11