Json Box  0.6.1
This is a JSON C++ library. It can write and read JSON files with ease and speed.
Public Member Functions | Public Attributes | List of all members
JsonBox::Value::ValueDataPointer Union Reference

Public Member Functions

 ValueDataPointer ()
 
 ValueDataPointer (std::string *newStringValue)
 
 ValueDataPointer (int *newIntValue)
 
 ValueDataPointer (double *newDoubleValue)
 
 ValueDataPointer (Object *newObjectValue)
 
 ValueDataPointer (Array *newArrayValue)
 
 ValueDataPointer (bool *newBoolValue)
 

Public Attributes

std::string * stringValue
 
int * intValue
 
double * doubleValue
 
ObjectobjectValue
 
ArrayarrayValue
 
bool * boolValue
 

Detailed Description

Union used to contain the pointer to the value's data.

Constructor & Destructor Documentation

JsonBox::Value::ValueDataPointer::ValueDataPointer ( )

Default constructor. Puts the pointers at NULL.

JsonBox::Value::ValueDataPointer::ValueDataPointer ( std::string *  newStringValue)

Parameterized constructor.

Parameters
newStringValuePointer to set to the string pointer.
JsonBox::Value::ValueDataPointer::ValueDataPointer ( int *  newIntValue)

Parameterized constructor.

Parameters
newIntValuePointer to set to the int pointer.
JsonBox::Value::ValueDataPointer::ValueDataPointer ( double *  newDoubleValue)

Parameterized constructor.

Parameters
newDoubleValuePointer to set to the double pointer.
JsonBox::Value::ValueDataPointer::ValueDataPointer ( Object newObjectValue)

Parameterized constructor.

Parameters
newObjectValuePointer to set to the object pointer.
JsonBox::Value::ValueDataPointer::ValueDataPointer ( Array newArrayValue)

Parameterized constructor.

Parameters
newArrayValuePointer to set to the array pointer.
JsonBox::Value::ValueDataPointer::ValueDataPointer ( bool *  newBoolValue)

Parameterized constructor.

Parameters
newBoolValuePointer to set to the bool pointer.

Member Data Documentation

Array* JsonBox::Value::ValueDataPointer::arrayValue
bool* JsonBox::Value::ValueDataPointer::boolValue
double* JsonBox::Value::ValueDataPointer::doubleValue
int* JsonBox::Value::ValueDataPointer::intValue
Object* JsonBox::Value::ValueDataPointer::objectValue
std::string* JsonBox::Value::ValueDataPointer::stringValue

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