hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_add_peer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_ADD_PEER_HPP
7 #define IROHA_PROTO_ADD_PEER_HPP
8 
10 #include "commands.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16 
17  class AddPeer final : public CopyableProto<interface::AddPeer,
18  iroha::protocol::Command,
19  AddPeer> {
20  public:
21  template <typename CommandType>
22  explicit AddPeer(CommandType &&command);
23 
24  AddPeer(const AddPeer &o);
25 
26  AddPeer(AddPeer &&o) noexcept;
27 
28  const interface::Peer &peer() const override;
29 
30  private:
31  const iroha::protocol::AddPeer &add_peer_;
32  const proto::Peer peer_;
33  };
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_PROTO_ADD_PEER_HPP
AddPeer(CommandType &&command)
Definition: proto_add_peer.cpp:12
Definition: peer.hpp:18
Definition: peer.hpp:18
Definition: proto_add_peer.hpp:17
const interface::Peer & peer() const override
Definition: proto_add_peer.cpp:25
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45