hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
add_peer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_ADD_PEER_HPP
7 #define IROHA_SHARED_MODEL_ADD_PEER_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
16 
20  class AddPeer : public ModelPrimitive<AddPeer> {
21  public:
26  virtual const interface::Peer &peer() const = 0;
27 
28  std::string toString() const override;
29 
30  bool operator==(const ModelType &rhs) const override;
31  };
32  } // namespace interface
33 } // namespace shared_model
34 
35 #endif // IROHA_SHARED_MODEL_ADD_PEER_HPP
virtual const interface::Peer & peer() const =0
Definition: peer.hpp:20
std::string toString() const override
Definition: add_peer.cpp:13
bool operator==(const ModelType &rhs) const override
Definition: add_peer.cpp:20
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
Definition: add_peer.hpp:20