#include <jsonval.h>
Public Member Functions | |
| wxJSONRefData () | |
| Constructor. | |
| virtual | ~wxJSONRefData () |
| int | GetRefCount () const |
Protected Attributes | |
| int | m_refCount |
| the references count | |
| wxJSONType | m_type |
| The actual type of the value held by this object. | |
| wxJSONValueHolder | m_value |
| The JSON value held by this object. | |
| wxString | m_valString |
| The JSON string value. | |
| wxJSONInternalArray | m_valArray |
| The JSON array value. | |
| wxJSONInternalMap | m_valMap |
| The JSON object value. | |
| int | m_commentPos |
| The position of the comment line(s), if any. | |
| wxArrayString | m_comments |
| The array of comment lines; may be empty. | |
| int | m_lineNo |
| The line number when this value was read. | |
Friends | |
| class | wxJSONValue |
Starting from version 0.4, the JSON value class use the reference counting tecnique (also know as copy-on-write) described in the wxWidgets documentation in order to speed up processing. The class is used internally by the wxJSONValue class which does all processing.
| wxJSONRefData::wxJSONRefData | ( | ) |
| wxJSONRefData::~wxJSONRefData | ( | ) | [virtual] |
| int wxJSONRefData::GetRefCount | ( | ) | const |
friend class wxJSONValue [friend] |
int wxJSONRefData::m_refCount [protected] |
wxJSONType wxJSONRefData::m_type [protected] |
The actual type of the value held by this object.
Referenced by wxJSONValue::Append(), wxJSONValue::AsArray(), wxJSONValue::AsBool(), wxJSONValue::AsCString(), wxJSONValue::AsMap(), wxJSONValue::AsString(), wxJSONValue::Cat(), wxJSONValue::Find(), wxJSONValue::Get(), wxJSONValue::GetInfo(), wxJSONValue::GetMemberNames(), wxJSONValue::GetType(), wxJSONValue::HasMember(), wxJSONValue::Init(), wxJSONValue::IsSameAs(), wxJSONValue::Item(), wxJSONValue::ItemAt(), wxJSONValue::operator=(), wxJSONValue::Remove(), wxJSONValue::Size(), and wxJSONValue::wxJSONValue().
wxJSONValueHolder wxJSONRefData::m_value [protected] |
The JSON value held by this object.
This data member contains the JSON data types defined by the JSON syntax with the exception of the complex objects. This data member is an union of the primitive types so that it is simplier to cast them in other compatible types.
Referenced by wxJSONValue::AsBool(), wxJSONValue::AsCString(), wxJSONValue::AsDouble(), wxJSONValue::AsInt(), wxJSONValue::AsLong(), wxJSONValue::AsShort(), wxJSONValue::AsString(), wxJSONValue::AsUInt(), wxJSONValue::AsULong(), wxJSONValue::AsUShort(), wxJSONValue::GetType(), wxJSONValue::IsSameAs(), wxJSONValue::operator=(), and wxJSONValue::wxJSONValue().
wxString wxJSONRefData::m_valString [protected] |
The JSON string value.
Referenced by wxJSONValue::AsCString(), wxJSONValue::AsString(), wxJSONValue::Cat(), wxJSONValue::IsSameAs(), wxJSONValue::operator=(), and wxJSONValue::wxJSONValue().
wxJSONInternalArray wxJSONRefData::m_valArray [protected] |
The JSON array value.
Referenced by wxJSONValue::Append(), wxJSONValue::AsArray(), wxJSONValue::Find(), wxJSONValue::Item(), wxJSONValue::ItemAt(), wxJSONValue::Remove(), and wxJSONValue::Size().
wxJSONInternalMap wxJSONRefData::m_valMap [protected] |
The JSON object value.
Referenced by wxJSONValue::AsMap(), wxJSONValue::Find(), wxJSONValue::Get(), wxJSONValue::GetMemberNames(), wxJSONValue::HasMember(), wxJSONValue::IsSameAs(), wxJSONValue::Item(), wxJSONValue::ItemAt(), wxJSONValue::Remove(), and wxJSONValue::Size().
int wxJSONRefData::m_commentPos [protected] |
The position of the comment line(s), if any.
The data member contains one of the following constants:
wxJSONVALUE_COMMENT_BEFORE wxJSONVALUE_COMMENT_AFTER wxJSONVALUE_COMMENT_INLINE Referenced by wxJSONValue::AddComment(), wxJSONValue::GetCommentPos(), and wxJSONValue::Init().
wxArrayString wxJSONRefData::m_comments [protected] |
The array of comment lines; may be empty.
Referenced by wxJSONValue::AddComment(), wxJSONValue::Dump(), wxJSONValue::GetComment(), wxJSONValue::GetCommentArray(), wxJSONValue::GetCommentCount(), and wxJSONValue::GetInfo().
int wxJSONRefData::m_lineNo [protected] |
The line number when this value was read.
This data member is used by the wxJSONReader class and it is used to store the line number of the JSON text document where the value appeared. This value is compared to the line number of a comment line in order to obtain the value which a comment refersto.
Referenced by wxJSONRefData().
1.5.5