Adobe Source Libraries 2.0.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
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...

#include <json_helper.hpp>

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

Definition at line 30 of file json_helper.hpp.

Member Typedef Documentation

◆ value_type

Definition at line 38 of file json_helper.hpp.

◆ string_type

typedef std::string string_type

Definition at line 39 of file json_helper.hpp.

◆ key_type

Definition at line 40 of file json_helper.hpp.

◆ object_type

Definition at line 41 of file json_helper.hpp.

◆ array_type

Definition at line 42 of file json_helper.hpp.

◆ pair_type

Definition at line 43 of file json_helper.hpp.

Member Function Documentation

◆ type()

json_type type ( const value_type & x)
static

Definition at line 45 of file json_helper.hpp.

◆ as()

template<typename T>
const T & as ( const value_type & x)
static

Definition at line 65 of file json_helper.hpp.

◆ move_append() [1/2]

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

Definition at line 69 of file json_helper.hpp.

◆ append()

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

Definition at line 73 of file json_helper.hpp.

◆ move_append() [2/2]

void move_append ( array_type & array,
value_type & value )
static

Definition at line 74 of file json_helper.hpp.