Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Education Class Reference

Public Member Functions

 Education (const std::string &school, double GPA)
 
 Education (const Education &rhs)
 
template<typename Writer >
void Serialize (Writer &writer) const
 

Detailed Description

Definition at line 45 of file serialize.cpp.

Constructor & Destructor Documentation

◆ Education() [1/2]

Education::Education ( const std::string & school,
double GPA )
inline

Definition at line 47 of file serialize.cpp.

47: school_(school), GPA_(GPA) {}

◆ Education() [2/2]

Education::Education ( const Education & rhs)
inline

Definition at line 48 of file serialize.cpp.

48: school_(rhs.school_), GPA_(rhs.GPA_) {}

Member Function Documentation

◆ Serialize()

template<typename Writer >
void Education::Serialize ( Writer & writer) const
inline

Definition at line 51 of file serialize.cpp.

51 {
52 writer.StartObject();
53
54 writer.String("school");
55#if RAPIDJSON_HAS_STDSTRING
56 writer.String(school_);
57#else
58 writer.String(school_.c_str(), static_cast<SizeType>(school_.length()));
59#endif
60
61 writer.String("GPA");
62 writer.Double(GPA_);
63
64 writer.EndObject();
65 }
bool EndObject(SizeType memberCount=0)
Definition writer.h:230
bool Double(double d)
Writes the given double value to the stream.
Definition writer.h:193
bool String(const Ch *str, SizeType length, bool copy=false)
Definition writer.h:202
bool StartObject()
Definition writer.h:215
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition rapidjson.h:384
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: