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  bool checkEmpty() const override;
27 
28  const std::optional<interface::types::AccountDetailValueType> oldValue()
29  const override;
30 
31  private:
32  const iroha::protocol::CompareAndSetAccountDetail
33  &compare_and_set_account_detail_;
34  };
35 
36  } // namespace proto
37 } // namespace shared_model
38 
39 #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:79
const std::optional< interface::types::AccountDetailValueType > oldValue() const override
Definition: proto_compare_and_set_account_detail.cpp:36
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
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:81
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
bool checkEmpty() const override
Definition: proto_compare_and_set_account_detail.cpp:31