ledger-core
BitcoinLikeOperator.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from bitcoin_script.djinni
3 
4 #ifndef DJINNI_GENERATED_BITCOINLIKEOPERATOR_HPP
5 #define DJINNI_GENERATED_BITCOINLIKEOPERATOR_HPP
6 
7 #include <cstdint>
8 #include <iostream>
9 #include <string>
10 #include <utility>
11 
12 namespace ledger { namespace core { namespace api {
13 
14 struct BitcoinLikeOperator final {
15  std::string operatorName;
16  int8_t value;
17 
18  BitcoinLikeOperator(std::string operatorName_,
19  int8_t value_)
20  : operatorName(std::move(operatorName_))
21  , value(std::move(value_))
22  {}
23 
25  this->operatorName = cpy.operatorName;
26  this->value = cpy.value;
27  }
28 
29  BitcoinLikeOperator() = default;
30 
31 
32  BitcoinLikeOperator& operator=(const BitcoinLikeOperator& cpy) {
33  this->operatorName = cpy.operatorName;
34  this->value = cpy.value;
35  return *this;
36  }
37 
38  template <class Archive>
39  void load(Archive& archive) {
40  archive(operatorName, value);
41  }
42 
43  template <class Archive>
44  void save(Archive& archive) const {
45  archive(operatorName, value);
46  }
47 };
48 
49 } } } // namespace ledger::core::api
50 #endif //DJINNI_GENERATED_BITCOINLIKEOPERATOR_HPP
Definition: BitcoinLikeOperator.hpp:14
Definition: Account.cpp:8