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_) {}
Person(const std::string &name, unsigned age)
◆ ~Employee()
◆ AddDependent()
| void Employee::AddDependent |
( |
const Dependent & |
dependent | ) |
|
|
inline |
Definition at line 123 of file serialize.cpp.
124 dependents_.push_back(dependent);
◆ operator=()
Definition at line 116 of file serialize.cpp.
117 static_cast<Person&
>(*this) = rhs;
118 dependents_ = rhs.dependents_;
119 married_ = rhs.married_;
◆ Serialize()
template<typename Writer >
| void Employee::Serialize |
( |
Writer & |
writer | ) |
const |
|
inline |
Definition at line 128 of file serialize.cpp.
134 writer.
Bool(married_);
136 writer.
String((
"dependents"));
138 for (std::vector<Dependent>::const_iterator dependentItr = dependents_.begin(); dependentItr != dependents_.end(); ++dependentItr)
139 dependentItr->Serialize(writer);
bool EndArray(SizeType elementCount=0)
void Serialize(Writer &writer) const
bool EndObject(SizeType memberCount=0)
bool String(const Ch *str, SizeType length, bool copy=false)
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/rapidjson/example/serialize/serialize.cpp