hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_set_account_detail.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_SET_ACCOUNT_DETAIL_HPP
7 #define IROHA_PROTO_SET_ACCOUNT_DETAIL_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class SetAccountDetail final
16  : public CopyableProto<interface::SetAccountDetail,
17  iroha::protocol::Command,
18  SetAccountDetail> {
19  public:
20  template <typename CommandType>
21  explicit SetAccountDetail(CommandType &&command);
22 
24 
25  SetAccountDetail(SetAccountDetail &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  const interface::types::AccountDetailKeyType &key() const override;
30 
31  const interface::types::AccountDetailValueType &value() const override;
32 
33  private:
34  const iroha::protocol::SetAccountDetail &set_account_detail_;
35  };
36 
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_PROTO_SET_ACCOUNT_DETAIL_HPP
std::string AccountDetailKeyType
Type of account detail key.
Definition: types.hpp:75
Definition: proto_set_account_detail.hpp:15
const interface::types::AccountDetailValueType & value() const override
Definition: proto_set_account_detail.cpp:38
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
SetAccountDetail(CommandType &&command)
Definition: proto_set_account_detail.cpp:12
const interface::types::AccountIdType & accountId() const override
Definition: proto_set_account_detail.cpp:29
std::string AccountDetailValueType
Type of account detail value.
Definition: types.hpp:77
Definition: command_executor.hpp:12
const interface::types::AccountDetailKeyType & key() const override
Definition: proto_set_account_detail.cpp:33
Definition: trivial_proto.hpp:45