CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::JSON::Node Class Reference
Collaboration diagram for NSROOT::JSON::Node:

Public Member Functions

 Node (const sajson::value &value)
bool IsNull () const
bool IsObject () const
bool IsArray () const
bool IsString () const
bool IsDouble () const
bool IsInt () const
bool IsTrue () const
bool IsFalse () const
std::string GetStringValue () const
size_t GetStringSize () const
double GetDoubleValue () const
int64_t GetBigIntValue () const
int32_t GetIntValue () const
size_t Size () const
Node GetArrayElement (size_t index) const
std::string GetObjectKey (size_t index) const
Node GetObjectValue (size_t index) const
Node GetObjectValue (const char *key) const

Private Attributes

sajson::value m_value

Detailed Description

Definition at line 40 of file jsonparser.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

JSON::Node::Node ( )

Definition at line 32 of file jsonparser.cpp.

◆ Node() [2/2]

JSON::Node::Node ( const sajson::value & value)

Definition at line 37 of file jsonparser.cpp.

◆ ~Node()

NSROOT::JSON::Node::~Node ( )
inline

Definition at line 45 of file jsonparser.h.

Member Function Documentation

◆ GetArrayElement()

JSON::Node JSON::Node::GetArrayElement ( size_t index) const

Definition at line 130 of file jsonparser.cpp.

◆ GetBigIntValue()

int64_t JSON::Node::GetBigIntValue ( ) const

Definition at line 106 of file jsonparser.cpp.

◆ GetDoubleValue()

double JSON::Node::GetDoubleValue ( ) const

Definition at line 98 of file jsonparser.cpp.

◆ GetIntValue()

int32_t JSON::Node::GetIntValue ( ) const

Definition at line 114 of file jsonparser.cpp.

◆ GetObjectKey()

std::string JSON::Node::GetObjectKey ( size_t index) const

Definition at line 138 of file jsonparser.cpp.

◆ GetObjectValue() [1/2]

JSON::Node JSON::Node::GetObjectValue ( const char * key) const

Definition at line 154 of file jsonparser.cpp.

◆ GetObjectValue() [2/2]

JSON::Node JSON::Node::GetObjectValue ( size_t index) const

Definition at line 146 of file jsonparser.cpp.

◆ GetStringSize()

size_t JSON::Node::GetStringSize ( ) const

Definition at line 90 of file jsonparser.cpp.

◆ GetStringValue()

std::string JSON::Node::GetStringValue ( ) const

Definition at line 82 of file jsonparser.cpp.

◆ IsArray()

bool JSON::Node::IsArray ( ) const

Definition at line 52 of file jsonparser.cpp.

◆ IsDouble()

bool JSON::Node::IsDouble ( ) const

Definition at line 62 of file jsonparser.cpp.

◆ IsFalse()

bool JSON::Node::IsFalse ( ) const

Definition at line 77 of file jsonparser.cpp.

◆ IsInt()

bool JSON::Node::IsInt ( ) const

Definition at line 67 of file jsonparser.cpp.

◆ IsNull()

bool JSON::Node::IsNull ( ) const

Definition at line 42 of file jsonparser.cpp.

◆ IsObject()

bool JSON::Node::IsObject ( ) const

Definition at line 47 of file jsonparser.cpp.

◆ IsString()

bool JSON::Node::IsString ( ) const

Definition at line 57 of file jsonparser.cpp.

◆ IsTrue()

bool JSON::Node::IsTrue ( ) const

Definition at line 72 of file jsonparser.cpp.

◆ Size()

size_t JSON::Node::Size ( ) const

Definition at line 122 of file jsonparser.cpp.

Field Documentation

◆ m_value

sajson::value NSROOT::JSON::Node::m_value
private

Definition at line 69 of file jsonparser.h.


The documentation for this class was generated from the following files:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/jsonparser.h
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/jsonparser.cpp