hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_command.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_COMMAND_HPP
7 #define IROHA_SHARED_MODEL_PROTO_COMMAND_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class Command final : public interface::Command {
17  public:
18  using TransportType = iroha::protocol::Command;
19 
20  explicit Command(TransportType &ref);
21 
22  ~Command() override;
23 
24  const CommandVariantType &get() const override;
25 
26  private:
27  struct Impl;
28  std::unique_ptr<Impl> impl_;
29  };
30  } // namespace proto
31 } // namespace shared_model
32 
33 #endif // IROHA_SHARED_MODEL_PROTO_COMMAND_HPP
Definition: proto_command.hpp:16
wrap< AddAssetQuantity, AddPeer, AddSignatory, AppendRole, CreateAccount, CreateAsset, CreateDomain, CreateRole, DetachRole, GrantPermission, RemoveSignatory, RevokePermission, SetAccountDetail, SetQuorum, SubtractAssetQuantity, TransferAsset, RemovePeer, CompareAndSetAccountDetail, SetSettingValue > CommandVariantType
Type of variant, that handle concrete command.
Definition: command.hpp:66
iroha::protocol::Command TransportType
Definition: proto_command.hpp:18
Command(TransportType &ref)
Definition: proto_command.cpp:75
Definition: proto_command.cpp:59
Definition: command.hpp:40
Definition: command_executor.hpp:12