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

Implementation for a vector with members. More...

#include <serializer.h>

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

Public Member Functions

 ISMemberVector (const ISMemberVector< T > &)
 
 ISMemberVector (std::vector< T > &v)
 
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.
 
- 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

std::vector< T > & value
 

Detailed Description

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

Implementation for a vector with members.

Definition at line 380 of file serializer.h.

Constructor & Destructor Documentation

◆ ISMemberVector() [1/2]

template<typename T >
Json::ISMemberVector< T >::ISMemberVector ( const ISMemberVector< T > &  )
inline

Definition at line 385 of file serializer.h.

◆ ISMemberVector() [2/2]

template<typename T >
Json::ISMemberVector< T >::ISMemberVector ( std::vector< T > &  v)
inline

Definition at line 387 of file serializer.h.

Member Function Documentation

◆ FromDom()

template<typename T >
void Json::ISMemberVector< 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 409 of file serializer.h.

◆ ToDom()

template<typename T >
rapidjson::Value Json::ISMemberVector< 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 394 of file serializer.h.

References debug.

Member Data Documentation

◆ value

template<typename T >
std::vector<T>& Json::ISMemberVector< T >::value
private

Definition at line 382 of file serializer.h.


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