hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_ACCOUNT_H
7 #define IROHA_PROTO_GET_ACCOUNT_H
8 
11 #include "queries.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class GetAccount final : public CopyableProto<interface::GetAccount,
16  iroha::protocol::Query,
17  GetAccount> {
18  public:
19  template <typename QueryType>
20  explicit GetAccount(QueryType &&query);
21 
22  GetAccount(const GetAccount &o);
23 
24  GetAccount(GetAccount &&o) noexcept;
25 
26  const interface::types::AccountIdType &accountId() const override;
27 
28  private:
29  // ------------------------------| fields |-------------------------------
30  const iroha::protocol::GetAccount &account_;
31  };
32 
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_PROTO_GET_ACCOUNT_H
Definition: proto_get_account.hpp:15
GetAccount(QueryType &&query)
Definition: proto_get_account.cpp:12
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account.cpp:25
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45