dodo::data::format::json::node Class Reference
defines JSON object reprasentation More...
#include <dataFormatJsonNode.h>
Public Types | |
| enum | dataEnum { DATA_STRING, DATA_OBJECT, DATA_ARRAY, DATA_BOOLEAN, DATA_NUMERIC, DATA_NULL } |
defines JSON data types More... | |
Public Member Functions | |
| node (const node &) | |
| copy constructor | |
| node () | |
| constructor | |
| node (const dodoString &value) | |
| constructor | |
| node (long value) | |
| constructor | |
| node (bool value) | |
| constructor | |
| node (const dodoArray< node > &value) | |
| constructor | |
| node (const dodoMap< dodoString, node, dodoMapStringCompare > &value) | |
| constructor | |
| ~node () | |
| destructor | |
| void | setString (const dodoString &value) |
| set string, date/time, base64 value | |
| void | setBoolean (bool value) |
| set boolean value | |
| void | setNumeric (long value) |
| set integer value | |
| void | setNull () |
| set null value | |
| void | addArrayElement (const node &value) |
| add array value | |
| void | addObjectMember (const dodoString &name, const node &value) |
| add struct value element | |
| void | setArray (const dodoArray< node > &value) |
| set array value member | |
| void | setObject (const dodoMap< dodoString, node, dodoMapStringCompare > &value) |
| set struct value | |
| node | operator[] (const dodoString &key) const |
| node | operator[] (unsigned long key) const |
| short | type () const |
| bool | isNull () const |
| dodoString | string () const |
| bool | boolean () const |
| long | numeric () const |
| dodoArray< node > | array () const |
| dodoMap< dodoString, node, dodoMapStringCompare > | object () const |
Detailed Description
defines JSON object reprasentation
Definition at line 53 of file dataFormatJsonNode.h.
Member Enumeration Documentation
defines JSON data types
Definition at line 64 of file dataFormatJsonNode.h.
00064 { 00065 DATA_STRING, 00066 DATA_OBJECT, 00067 DATA_ARRAY, 00068 DATA_BOOLEAN, 00069 DATA_NUMERIC, 00070 DATA_NULL, 00071 };
Constructor & Destructor Documentation
| dodo::data::format::json::node::node | ( | const node & | ) |
copy constructor
| dodo::data::format::json::node::node | ( | ) |
constructor
- Note:
- constructs `null` object
| dodo::data::format::json::node::node | ( | const dodoString & | value | ) |
constructor
- Parameters:
-
value defines string value
| dodo::data::format::json::node::node | ( | long | value | ) |
constructor
- Parameters:
-
value defines numeric value
| dodo::data::format::json::node::node | ( | bool | value | ) |
constructor
- Parameters:
-
value defines boolean value
| dodo::data::format::json::node::node | ( | const dodoArray< node > & | value | ) |
constructor
- Parameters:
-
value defines array value
| dodo::data::format::json::node::node | ( | const dodoMap< dodoString, node, dodoMapStringCompare > & | value | ) |
constructor
- Parameters:
-
value defines object value
| dodo::data::format::json::node::~node | ( | ) |
destructor
Member Function Documentation
| void dodo::data::format::json::node::addArrayElement | ( | const node & | value | ) |
add array value
- Parameters:
-
value defines array member value
| void dodo::data::format::json::node::addObjectMember | ( | const dodoString & | name, | |
| const node & | value | |||
| ) |
add struct value element
- Parameters:
-
name defines struct member name value defines struct member value
| dodoArray<node> dodo::data::format::json::node::array | ( | ) | const |
| bool dodo::data::format::json::node::boolean | ( | ) | const |
| bool dodo::data::format::json::node::isNull | ( | ) | const |
- Returns:
- true if node is `null`
| long dodo::data::format::json::node::numeric | ( | ) | const |
| dodoMap<dodoString, node, dodoMapStringCompare> dodo::data::format::json::node::object | ( | ) | const |
| node dodo::data::format::json::node::operator[] | ( | unsigned long | key | ) | const |
| node dodo::data::format::json::node::operator[] | ( | const dodoString & | key | ) | const |
| void dodo::data::format::json::node::setArray | ( | const dodoArray< node > & | value | ) |
set array value member
- Parameters:
-
value defines array value
| void dodo::data::format::json::node::setBoolean | ( | bool | value | ) |
set boolean value
- Parameters:
-
value defines boolean value
| void dodo::data::format::json::node::setNull | ( | ) |
set null value
| void dodo::data::format::json::node::setNumeric | ( | long | value | ) |
set integer value
- Parameters:
-
value defines integer value
| void dodo::data::format::json::node::setObject | ( | const dodoMap< dodoString, node, dodoMapStringCompare > & | value | ) |
set struct value
- Parameters:
-
value defines struct value
| void dodo::data::format::json::node::setString | ( | const dodoString & | value | ) |
set string, date/time, base64 value
- Parameters:
-
value defines string value
| dodoString dodo::data::format::json::node::string | ( | ) | const |
| short dodo::data::format::json::node::type | ( | ) | const |
- Returns:
- type of node,
- See also:
- json::dataEnum
Member Data Documentation
| dodoArray<node>* dodo::data::format::json::node::arrayValue |
array value of node
Definition at line 227 of file dataFormatJsonNode.h.
boolean value of node
Definition at line 228 of file dataFormatJsonNode.h.
numeric value of node
Definition at line 229 of file dataFormatJsonNode.h.
| dodoMap<dodoString, node, dodoMapStringCompare>* dodo::data::format::json::node::objectValue |
object value of node
Definition at line 226 of file dataFormatJsonNode.h.
| dodoString* dodo::data::format::json::node::stringValue |
string value of node
Definition at line 225 of file dataFormatJsonNode.h.
The documentation for this class was generated from the following file:
- include/libdodo/dataFormatJsonNode.h
Generated on Sun Nov 8 03:44:48 2009 for libdodo by
1.6.1

