hivemind 1.0.0
Loading...
Searching...
No Matches
Json::ISDoubleVector Class Reference

Implementation for a vector with doubles. More...

#include <serializer.h>

Inheritance diagram for Json::ISDoubleVector:
Inheritance graph
Collaboration diagram for Json::ISDoubleVector:
Collaboration graph

Public Member Functions

 ISDoubleVector (ISDV &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< double > & value
 

Detailed Description

Implementation for a vector with doubles.

Definition at line 454 of file serializer.h.

Constructor & Destructor Documentation

◆ ISDoubleVector()

Json::ISDoubleVector::ISDoubleVector ( ISDV v)
inline

Definition at line 459 of file serializer.h.

Member Function Documentation

◆ FromDom()

void Json::ISDoubleVector::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 181 of file serializer.cpp.

References value.

◆ ToDom()

rapidjson::Value Json::ISDoubleVector::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 168 of file serializer.cpp.

References value.

Member Data Documentation

◆ value

std::vector<double>& Json::ISDoubleVector::value
private

Definition at line 456 of file serializer.h.

Referenced by FromDom(), and ToDom().


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