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

Implementation for a vector with vectors with objects. More...

#include <serializer.h>

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

Public Member Functions

 ISObjVecVec (std::vector< std::vector< std::shared_ptr< 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< std::vector< std::shared_ptr< T > > > & value
 

Detailed Description

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

Implementation for a vector with vectors with objects.

Definition at line 239 of file serializer.h.

Constructor & Destructor Documentation

◆ ISObjVecVec()

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

Definition at line 244 of file serializer.h.

Member Function Documentation

◆ FromDom()

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

◆ ToDom()

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

Member Data Documentation

◆ value

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

Definition at line 241 of file serializer.h.


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