hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_compare_and_set_account_detail.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_COMPARE_AND_SET_ACCOUNT_DETAIL_HPP
7 #define IROHA_PROTO_COMPARE_AND_SET_ACCOUNT_DETAIL_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
17  public:
18  explicit CompareAndSetAccountDetail(iroha::protocol::Command &command);
19 
20  const interface::types::AccountIdType &accountId() const override;
21 
22  const interface::types::AccountDetailKeyType &key() const override;
23 
24  const interface::types::AccountDetailValueType &value() const override;
25 
26  const boost::optional<interface::types::AccountDetailValueType> oldValue()
27  const override;
28 
29  private:
30  const iroha::protocol::CompareAndSetAccountDetail
31  &compare_and_set_account_detail_;
32  };
33 
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_PROTO_COMPARE_AND_SET_ACCOUNT_DETAIL_HPP
Definition: compare_and_set_account_detail.hpp:21
Definition: proto_compare_and_set_account_detail.hpp:15
std::string AccountDetailKeyType
Type of account detail key.
Definition: types.hpp:76
const boost::optional< interface::types::AccountDetailValueType > oldValue() const override
Definition: proto_compare_and_set_account_detail.cpp:32
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::types::AccountIdType & accountId() const override
Definition: proto_compare_and_set_account_detail.cpp:17
const interface::types::AccountDetailValueType & value() const override
Definition: proto_compare_and_set_account_detail.cpp:27
std::string AccountDetailValueType
Type of account detail value.
Definition: types.hpp:78
Definition: command_executor.hpp:12
CompareAndSetAccountDetail(iroha::protocol::Command &command)
Definition: proto_compare_and_set_account_detail.cpp:11
const interface::types::AccountDetailKeyType & key() const override
Definition: proto_compare_and_set_account_detail.cpp:22