hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_call_model.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_CALL_MODEL_HPP
7 #define IROHA_SHARED_MODEL_PROTO_CALL_MODEL_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model::proto {
15  public:
16  explicit CallModel(iroha::protocol::Command &command);
17 
18  virtual ~CallModel();
19 
20  const std::string &name() const override;
21 
22  const std::string &version() const override;
23 
24  const iroha::protocol::CallModel &getTransport() const;
25 
26  bool operator==(const CallModel &rhs) const;
27 
28  private:
29  const iroha::protocol::CallModel &call_model_;
30  };
31 } // namespace shared_model::proto
32 
33 #endif
const iroha::protocol::CallModel & getTransport() const
Definition: proto_call_model.cpp:27
Definition: batch_meta.hpp:17
bool operator==(const CallModel &rhs) const
Definition: proto_call_model.cpp:31
const std::string & version() const override
Definition: proto_call_model.cpp:22
Definition: call_model.hpp:13
Definition: proto_call_model.hpp:14
CallModel(iroha::protocol::Command &command)
Definition: proto_call_model.cpp:12
const std::string & name() const override
Definition: proto_call_model.cpp:17