EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EJsonBuilder::StackContainer< 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

 StackContainer (EJsonBuilder &builder, const EString &name="")
 Constructs the helper class with the provided container type. This pushes the container object onto the builder's stack. More...
 
 ~StackContainer ()
 Destructor. Pops the container object off the builder's stack. More...
 

Detailed Description

template<ContainerType T>
class EJsonBuilder::StackContainer< T >

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

Constructor & Destructor Documentation

template<EJsonBuilder::ContainerType T>
EJsonBuilder::StackContainer< T >::StackContainer ( EJsonBuilder builder,
const EString name = "" 
)

Constructs the helper class with the provided container type. This pushes the container object onto the builder's stack.

Parameters
builderthe builder to append to
namesee EJsonBuilder::pop() for details
template<EJsonBuilder::ContainerType T>
EJsonBuilder::StackContainer< T >::~StackContainer ( )

Destructor. Pops the container object off the builder's stack.

Exceptions
seeEJsonBuilder::pop() for details

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