Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
utility::json_spirit::Generator< Value_type, Ostream_type > Class Template Reference

#include <json_spirit_writer_template.h>

Public Member Functions

 Generator (const Value_type &value, Ostream_type &os, unsigned int options)
 

Private Types

typedef Value_type::Config_type Config_type
 
typedef Config_type::String_type String_type
 
typedef Config_type::Object_type Object_type
 
typedef Config_type::Array_type Array_type
 
typedef String_type::value_type Char_type
 
typedef Object_type::value_type Obj_member_type
 

Private Member Functions

void output (const Value_type &value)
 
void output (const Object_type &obj)
 
void output (const Obj_member_type &member)
 
void output_int (const Value_type &value)
 
void output (const String_type &s)
 
void output (bool b)
 
void output (double d)
 
template<class Iter >
void output_composite_item (Iter i, Iter last)
 
void output (const Array_type &arr)
 
template<class T >
void output_array_or_obj (const T &t, Char_type start_char, Char_type end_char)
 
void indent ()
 
void space ()
 
void new_line ()
 
Generatoroperator= (const Generator &)
 

Static Private Member Functions

static bool contains_composite_elements (const Array_type &arr)
 

Private Attributes

Ostream_type & os_
 
int indentation_level_
 
bool pretty_
 
bool raw_utf8_
 
bool remove_trailing_zeros_
 
bool single_line_arrays_
 
boost::io::basic_ios_all_saver
< Char_type
ios_saver_
 

Member Typedef Documentation

template<class Value_type, class Ostream_type>
typedef Config_type::Array_type utility::json_spirit::Generator< Value_type, Ostream_type >::Array_type
private
template<class Value_type, class Ostream_type>
typedef String_type::value_type utility::json_spirit::Generator< Value_type, Ostream_type >::Char_type
private
template<class Value_type, class Ostream_type>
typedef Value_type::Config_type utility::json_spirit::Generator< Value_type, Ostream_type >::Config_type
private
template<class Value_type, class Ostream_type>
typedef Object_type::value_type utility::json_spirit::Generator< Value_type, Ostream_type >::Obj_member_type
private
template<class Value_type, class Ostream_type>
typedef Config_type::Object_type utility::json_spirit::Generator< Value_type, Ostream_type >::Object_type
private
template<class Value_type, class Ostream_type>
typedef Config_type::String_type utility::json_spirit::Generator< Value_type, Ostream_type >::String_type
private

Constructor & Destructor Documentation

template<class Value_type, class Ostream_type>
utility::json_spirit::Generator< Value_type, Ostream_type >::Generator ( const Value_type value,
Ostream_type &  os,
unsigned int  options 
)
inline

Member Function Documentation

template<class Value_type, class Ostream_type>
static bool utility::json_spirit::Generator< Value_type, Ostream_type >::contains_composite_elements ( const Array_type arr)
inlinestaticprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::indent ( )
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::new_line ( )
inlineprivate
template<class Value_type, class Ostream_type>
Generator& utility::json_spirit::Generator< Value_type, Ostream_type >::operator= ( const Generator< Value_type, Ostream_type > &  )
private
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( const Value_type value)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( const Object_type obj)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( const Obj_member_type member)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( const String_type s)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( bool  b)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( double  d)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output ( const Array_type arr)
inlineprivate
template<class Value_type, class Ostream_type>
template<class T >
void utility::json_spirit::Generator< Value_type, Ostream_type >::output_array_or_obj ( const T t,
Char_type  start_char,
Char_type  end_char 
)
inlineprivate
template<class Value_type, class Ostream_type>
template<class Iter >
void utility::json_spirit::Generator< Value_type, Ostream_type >::output_composite_item ( Iter  i,
Iter  last 
)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::output_int ( const Value_type value)
inlineprivate
template<class Value_type, class Ostream_type>
void utility::json_spirit::Generator< Value_type, Ostream_type >::space ( )
inlineprivate

Member Data Documentation

template<class Value_type, class Ostream_type>
int utility::json_spirit::Generator< Value_type, Ostream_type >::indentation_level_
private
template<class Value_type, class Ostream_type>
boost::io::basic_ios_all_saver< Char_type > utility::json_spirit::Generator< Value_type, Ostream_type >::ios_saver_
private
template<class Value_type, class Ostream_type>
Ostream_type& utility::json_spirit::Generator< Value_type, Ostream_type >::os_
private
template<class Value_type, class Ostream_type>
bool utility::json_spirit::Generator< Value_type, Ostream_type >::pretty_
private
template<class Value_type, class Ostream_type>
bool utility::json_spirit::Generator< Value_type, Ostream_type >::raw_utf8_
private
template<class Value_type, class Ostream_type>
bool utility::json_spirit::Generator< Value_type, Ostream_type >::remove_trailing_zeros_
private
template<class Value_type, class Ostream_type>
bool utility::json_spirit::Generator< Value_type, Ostream_type >::single_line_arrays_
private

The documentation for this class was generated from the following file: