hivemind 1.0.0
Loading...
Searching...
No Matches
Json Namespace Reference

Classes

class  ISBool
 Implementation for bools. More...
 
class  ISConstructors
 Implemented for future expansion. More...
 
class  ISDouble
 Implementation for doubles. More...
 
class  ISDoubleVector
 Implementation for a vector with doubles. More...
 
class  ISFloat
 Implementation for floats. More...
 
class  ISFloatVector
 Implementation for a vector with floats. More...
 
class  ISInt
 Implementation for integers. More...
 
class  ISIntVector
 Implementation for a vector with integers. More...
 
class  ISMember
 Implementation for Members. More...
 
class  ISMemberVector
 Implementation for a vector with members. More...
 
class  ISMemVecVec
 Implementation for a vector with vectors with members. More...
 
class  ISObject
 Implementation for objects. More...
 
class  ISObjectVector
 Implementation for a vector with objects. More...
 
class  ISObjVecVec
 Implementation for a vector with vectors with objects. More...
 
struct  ISProperty
 Serializing and deserializing (persistent values) requires recflection which is a way for the programmer to ensure that the data you serialize will get back to the place you want it to be when you deserialize it later. More...
 
class  ISString
 Implementation for strings. More...
 
class  ISValue
 Rflection is made possible by the help of the ISValue class and the type classes. More...
 

Typedefs

using ISValuePtr = std::shared_ptr< ISValue >
 
using ISValues = std::vector< ISValuePtr >
 
using ISProperties = std::vector< ISProperty >
 ISProperties is a vector with ISProperty.
 
using ISIV = std::vector< int >
 
using ISFV = std::vector< float >
 
using ISDV = std::vector< double >
 

Functions

void serialize (std::string filename, ISValue *p)
 Function to start serializing an onbject.
 
void deserialize (std::string filename, ISValue *p)
 Function to start deserializing a file.
 

Typedef Documentation

◆ ISDV

using Json::ISDV = typedef std::vector<double>

Definition at line 449 of file serializer.h.

◆ ISFV

using Json::ISFV = typedef std::vector<float>

Definition at line 434 of file serializer.h.

◆ ISIV

using Json::ISIV = typedef std::vector<int>

Definition at line 419 of file serializer.h.

◆ ISProperties

using Json::ISProperties = typedef std::vector<ISProperty>

ISProperties is a vector with ISProperty.

Definition at line 34 of file serializer.h.

◆ ISValuePtr

using Json::ISValuePtr = typedef std::shared_ptr<ISValue>

Definition at line 17 of file serializer.h.

◆ ISValues

using Json::ISValues = typedef std::vector<ISValuePtr>

Definition at line 18 of file serializer.h.

Function Documentation

◆ deserialize()

void Json::deserialize ( std::string  filename,
ISValue p 
)

Function to start deserializing a file.

Parameters
std::stringfilename Name of the file you want to extract data from.
ISValue*p A pointer to the top object so it know where to start.

Definition at line 235 of file serializer.cpp.

References Json::ISValue::GetProperty().

Referenced by CompileScenario::Scenario::load().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

void Json::serialize ( std::string  filename,
ISValue p 
)

Function to start serializing an onbject.

Parameters
std::stringfilename Name of the file you want to store the application data in.
ISValue*p A pointer to the object you want to serialize.

Definition at line 206 of file serializer.cpp.

References Json::ISValue::GetName(), Json::ISValue::GetProperty(), and serialize().

Referenced by CompileScenario::Scenario::save(), and serialize().

Here is the call graph for this function:
Here is the caller graph for this function: