Adobe Source Libraries  1.43
Public Types | Static Public Member Functions | List of all members
asl_json_helper_t Struct Reference

A utility class can be used with json_parser and json_generator to round trip JSON data through the common ASL data structures. More...

Public Types

typedef adobe::any_regular_t value_type
 
typedef std::string string_type
 
typedef string_type key_type
 
typedef adobe::dictionary_t object_type
 
typedef adobe::array_t array_type
 
typedef object_type::value_type pair_type
 

Static Public Member Functions

static json_type type (const value_type &x)
 
template<typename T >
static const T & as (const value_type &x)
 
static void move_append (object_type &obj, key_type &key, value_type &value)
 
static void append (string_type &str, const char *f, const char *l)
 
static void move_append (array_type &array, value_type &value)
 

Detailed Description

A utility class can be used with json_parser and json_generator to round trip JSON data through the common ASL data structures.

Definition at line 28 of file json_helper.hpp.

Member Typedef Documentation

typedef adobe::any_regular_t value_type

Definition at line 36 of file json_helper.hpp.

Definition at line 37 of file json_helper.hpp.

Definition at line 38 of file json_helper.hpp.

typedef adobe::dictionary_t object_type

Definition at line 39 of file json_helper.hpp.

Definition at line 40 of file json_helper.hpp.

typedef object_type::value_type pair_type

Definition at line 41 of file json_helper.hpp.

Member Function Documentation

static json_type type ( const value_type x)
static

Definition at line 43 of file json_helper.hpp.

static const T& as ( const value_type x)
static

Definition at line 57 of file json_helper.hpp.

static void move_append ( object_type obj,
key_type key,
value_type value 
)
static

Definition at line 61 of file json_helper.hpp.

static void append ( string_type str,
const char *  f,
const char *  l 
)
static

Definition at line 65 of file json_helper.hpp.

static void move_append ( array_type array,
value_type value 
)
static

Definition at line 68 of file json_helper.hpp.