hivemind 1.0.0
Loading...
Searching...
No Matches
Json::ISMember< T > Class Template Reference

Implementation for Members. More...

#include <serializer.h>

Inheritance diagram for Json::ISMember< T >:
Inheritance graph
Collaboration diagram for Json::ISMember< T >:
Collaboration graph

Public Member Functions

 ISMember (T &v)
 
virtual rapidjson::Value GetName (rapidjson::Document &d)
 For future expansion.
 
virtual rapidjson::Value ToDom (rapidjson::Document &d)
 ToDom is the function that enables the serializer to take data from the application to the JSON file.
 
virtual void FromDom (rapidjson::Value &v, rapidjson::Document &d)
 FromDom is the function that enables the serializer to get data out of the JSON file and put it in the application.
 
void CreateObject ()
 For future expansion.
 
- Public Member Functions inherited from Json::ISValue
virtual ISProperties GetProperty ()
 GetProperty enables the serializer to deal with composite type like objects and members.
 
virtual void CreateObject ()
 For future expansion.
 
virtual rapidjson::Value GetName (rapidjson::Document &d)
 For future expansion.
 
virtual rapidjson::Value ToDom (rapidjson::Document &d)
 ToDom is the function that enables the serializer to take data from the application to the JSON file.
 
virtual void FromDom (rapidjson::Value &v, rapidjson::Document &d)
 FromDom is the function that enables the serializer to get data out of the JSON file and put it in the application.
 

Private Attributes

T & value
 

Detailed Description

template<typename T>
class Json::ISMember< T >

Implementation for Members.

Definition at line 334 of file serializer.h.

Constructor & Destructor Documentation

◆ ISMember()

template<typename T >
Json::ISMember< T >::ISMember ( T &  v)
inline

Definition at line 339 of file serializer.h.

Member Function Documentation

◆ CreateObject()

template<typename T >
void Json::ISMember< T >::CreateObject
virtual

For future expansion.

Reimplemented from Json::ISValue.

Definition at line 371 of file serializer.h.

◆ FromDom()

template<typename T >
void Json::ISMember< T >::FromDom ( rapidjson::Value &  v,
rapidjson::Document &  d 
)
virtual

FromDom is the function that enables the serializer to get data out of the JSON file and put it in the application.

Reimplemented from Json::ISValue.

Definition at line 355 of file serializer.h.

◆ GetName()

template<typename T >
rapidjson::Value Json::ISMember< T >::GetName ( rapidjson::Document &  d)
virtual

For future expansion.

Typeid is mostly implemented for future expansion, but it helps with making the JSON file more readable for humans.

Reimplemented from Json::ISValue.

Definition at line 362 of file serializer.h.

◆ ToDom()

template<typename T >
rapidjson::Value Json::ISMember< T >::ToDom ( rapidjson::Document &  d)
virtual

ToDom is the function that enables the serializer to take data from the application to the JSON file.

Reimplemented from Json::ISValue.

Definition at line 348 of file serializer.h.

Member Data Documentation

◆ value

template<typename T >
T& Json::ISMember< T >::value
private

Definition at line 336 of file serializer.h.


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