hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
engine_log.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PLAIN_ENGINE_LOG_HPP
7 #define IROHA_SHARED_MODEL_PLAIN_ENGINE_LOG_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace plain {
15 
16  class EngineLog final : public interface::EngineLog {
17  public:
18  EngineLog() = delete;
19  EngineLog(EngineLog const &) = delete;
20  EngineLog &operator=(EngineLog const &) = delete;
21 
24  : address_(address), data_(data) {}
25 
28  : address_(std::move(address)), data_(std::move(data)) {}
29 
31  return address_;
32  }
33 
35  return data_;
36  }
37 
39  return topics_;
40  }
41 
43  topics_.emplace_back(std::move(topic));
44  }
45 
47  topics_.emplace_back(topic);
48  }
49 
50  private:
54  };
55 
56  } // namespace plain
57 } // namespace shared_model
58 
59 #endif // IROHA_SHARED_MODEL_PLAIN_ENGINE_LOG_HPP
interface::EngineLog::TopicsCollectionType const & getTopics() const
Topics collection.
Definition: engine_log.hpp:38
std::string EvmDataHexString
Types of evm data.
Definition: types.hpp:42
Definition: peer.hpp:48
std::string EvmTopicsHexString
Definition: types.hpp:44
void addTopic(interface::types::EvmTopicsHexString &&topic)
Definition: engine_log.hpp:42
EngineLog(interface::types::EvmAddressHexString const &address, interface::types::EvmDataHexString const &data)
Definition: engine_log.hpp:22
EngineLog & operator=(EngineLog const &)=delete
void addTopic(interface::types::EvmTopicsHexString const &topic)
Definition: engine_log.hpp:46
std::vector< types::EvmTopicsHexString > TopicsCollectionType
Definition: engine_log.hpp:20
Definition: engine_log.hpp:16
interface::types::EvmDataHexString const & getData() const
Contract data.
Definition: engine_log.hpp:34
Definition: command_executor.hpp:12
Provides an engine log data.
Definition: engine_log.hpp:18
EngineLog(interface::types::EvmAddressHexString &&address, interface::types::EvmDataHexString &&data)
Definition: engine_log.hpp:26
std::string EvmAddressHexString
Type of evm address.
Definition: types.hpp:40
interface::types::EvmAddressHexString const & getAddress() const
Contract address.
Definition: engine_log.hpp:30