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