EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EJsonBuilder::StackValue< T > Class Template Reference

A helper class which pushes/pops items on the builder's object stack based on its lifetime. More...

#include <ejsonbuilder.h>

Public Member Functions

 StackValue (EJsonBuilder &builder, const T &value, const EString &name="")
 Constructs the helper class with the provided values. This pushes and pops the value object onto/off the builder's stack. More...
 

Detailed Description

template<typename T>
class EJsonBuilder::StackValue< T >

A helper class which pushes/pops items on the builder's object stack based on its lifetime.

Constructor & Destructor Documentation

template<typename T >
EJsonBuilder::StackValue< T >::StackValue ( EJsonBuilder builder,
const T &  value,
const EString name = "" 
)

Constructs the helper class with the provided values. This pushes and pops the value object onto/off the builder's stack.

Parameters
builderthe builder to append to
valuethe value to add
namesee EJsonBuilder::pop() for details
Exceptions
seeEJsonBuilder::pop() for details

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