CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
sajson::value Class Reference

Public Member Functions

 value (type value_type, const size_t *payload, const char *text)
type get_type () const
size_t get_length () const
value get_array_element (size_t index) const
string get_object_key (size_t index) const
value get_object_value (size_t index) const
value get_value_of_key (const string &key) const
size_t find_object_key (const string &key) const
int get_integer_value () const
double get_double_value () const
double get_number_value () const
size_t get_string_length () const
std::string as_string () const

Private Member Functions

void assert_type (type expected) const
void assert_type_2 (type e1, type e2) const
void assert_in_bounds (size_t i) const

Private Attributes

const type value_type
const size_t *const payload
const char *const text

Detailed Description

Definition at line 287 of file sajson.h.

Constructor & Destructor Documentation

◆ value()

sajson::value::value ( type value_type,
const size_t * payload,
const char * text )
inlineexplicit

Definition at line 289 of file sajson.h.

Member Function Documentation

◆ as_string()

std::string sajson::value::as_string ( ) const
inline

Definition at line 377 of file sajson.h.

◆ assert_in_bounds()

void sajson::value::assert_in_bounds ( size_t i) const
inlineprivate

Definition at line 394 of file sajson.h.

◆ assert_type()

void sajson::value::assert_type ( type expected) const
inlineprivate

Definition at line 383 of file sajson.h.

◆ assert_type_2()

void sajson::value::assert_type_2 ( type e1,
type e2 ) const
inlineprivate

Definition at line 388 of file sajson.h.

◆ find_object_key()

size_t sajson::value::find_object_key ( const string & key) const
inline

Definition at line 336 of file sajson.h.

◆ get_array_element()

value sajson::value::get_array_element ( size_t index) const
inline

Definition at line 306 of file sajson.h.

◆ get_double_value()

double sajson::value::get_double_value ( ) const
inline

Definition at line 355 of file sajson.h.

◆ get_integer_value()

int sajson::value::get_integer_value ( ) const
inline

Definition at line 347 of file sajson.h.

◆ get_length()

size_t sajson::value::get_length ( ) const
inline

Definition at line 300 of file sajson.h.

◆ get_number_value()

double sajson::value::get_number_value ( ) const
inline

Definition at line 361 of file sajson.h.

◆ get_object_key()

string sajson::value::get_object_key ( size_t index) const
inline

Definition at line 313 of file sajson.h.

◆ get_object_value()

value sajson::value::get_object_value ( size_t index) const
inline

Definition at line 320 of file sajson.h.

◆ get_string_length()

size_t sajson::value::get_string_length ( ) const
inline

Definition at line 371 of file sajson.h.

◆ get_type()

type sajson::value::get_type ( ) const
inline

Definition at line 295 of file sajson.h.

◆ get_value_of_key()

value sajson::value::get_value_of_key ( const string & key) const
inline

Definition at line 327 of file sajson.h.

Field Documentation

◆ payload

const size_t* const sajson::value::payload
private

Definition at line 400 of file sajson.h.

◆ text

const char* const sajson::value::text
private

Definition at line 401 of file sajson.h.

◆ value_type

const type sajson::value::value_type
private

Definition at line 399 of file sajson.h.


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