Definition at line 110 of file serialize.cpp.
◆ Employee() [1/2]
Employee::Employee |
( |
const std::string & | name, |
|
|
unsigned | age, |
|
|
bool | married ) |
|
inline |
Definition at line 112 of file serialize.cpp.
112:
Person(
name, age), dependents_(), married_(married) {}
Person(const std::string &name, unsigned age)
◆ Employee() [2/2]
Employee::Employee |
( |
const Employee & | rhs | ) |
|
|
inline |
Definition at line 113 of file serialize.cpp.
113:
Person(rhs), dependents_(rhs.dependents_), married_(rhs.married_) {}
◆ ~Employee()
◆ AddDependent()
void Employee::AddDependent |
( |
const Dependent & | dependent | ) |
|
|
inline |
Definition at line 123 of file serialize.cpp.
123 {
124 dependents_.push_back(dependent);
125 }
◆ operator=()
Definition at line 116 of file serialize.cpp.
116 {
117 static_cast<Person&
>(*this) = rhs;
118 dependents_ = rhs.dependents_;
119 married_ = rhs.married_;
120 return *this;
121 }
◆ Serialize()
void Employee::Serialize |
( |
Writer & | writer | ) |
const |
|
inline |
Definition at line 128 of file serialize.cpp.
128 {
130
132
134 writer.
Bool(married_);
135
136 writer.
String((
"dependents"));
138 for (std::vector<Dependent>::const_iterator dependentItr = dependents_.begin(); dependentItr != dependents_.end(); ++dependentItr)
139 dependentItr->Serialize(writer);
141
143 }
void Serialize(Writer &writer) const
bool EndObject(SizeType memberCount=0)
bool String(const Ch *str, SizeType length, bool copy=false)
bool EndArray(SizeType elementCount=0)
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/example/serialize/serialize.cpp