Ariles
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ariles2::ns_rapidjson::impl::Writer Class Reference

Detailed Description

Definition at line 27 of file writer.cpp.

Inheritance diagram for ariles2::ns_rapidjson::impl::Writer:
ariles2::ns_rapidjson::ImplBase<::rapidjson::Value > ariles2::write::FileVisitorImplementation ariles2::serialization::NodeStackBase< t_Node >

Public Member Functions

template<class... t_Args>
 Writer (t_Args &&...args)
 
::rapidjson::Value & getRawNode (const std::size_t depth)
 Get current node. More...
 
::rapidjson::Value & getRawNode ()
 
t_Node & back ()
 
const t_Node & back () const
 
void clear ()
 
template<class... t_Args>
void emplace (t_Args &&...args)
 
void pop ()
 
void shiftArray ()
 
bool empty () const
 
template<typename... t_String>
std::string concatWithNode (t_String &&...strings) const
 
template<typename... t_String>
void concatWithNodeAndEmplace (t_String &&...strings)
 

Public Attributes

::rapidjson::Document document_
 instance of the parser More...
 
std::vector< t_Node > node_stack_
 
std::ofstream config_ofs_
 output file stream More...
 
std::ostream * output_stream_
 output stream More...
 

Protected Member Functions

void openFile (const std::string &file_name)
 open configuration file More...
 

Constructor & Destructor Documentation

◆ Writer()

template<class... t_Args>
ariles2::ns_rapidjson::impl::Writer::Writer ( t_Args &&...  args)
inlineexplicit

Definition at line 32 of file writer.cpp.

Member Function Documentation

◆ back() [1/2]

template<class t_Node >
t_Node& ariles2::serialization::NodeStackBase< t_Node >::back ( )
inlineinherited

Definition at line 131 of file serialization.h.

◆ back() [2/2]

template<class t_Node >
const t_Node& ariles2::serialization::NodeStackBase< t_Node >::back ( ) const
inlineinherited

Definition at line 136 of file serialization.h.

◆ clear()

template<class t_Node >
void ariles2::serialization::NodeStackBase< t_Node >::clear ( )
inlineinherited

Definition at line 141 of file serialization.h.

◆ concatWithNode()

template<class t_Node >
template<typename... t_String>
std::string ariles2::serialization::NodeStackBase< t_Node >::concatWithNode ( t_String &&...  strings) const
inlineinherited

Definition at line 170 of file serialization.h.

◆ concatWithNodeAndEmplace()

template<class t_Node >
template<typename... t_String>
void ariles2::serialization::NodeStackBase< t_Node >::concatWithNodeAndEmplace ( t_String &&...  strings)
inlineinherited

Definition at line 176 of file serialization.h.

◆ emplace()

template<class t_Node >
template<class... t_Args>
void ariles2::serialization::NodeStackBase< t_Node >::emplace ( t_Args &&...  args)
inlineinherited

Definition at line 147 of file serialization.h.

◆ empty()

template<class t_Node >
bool ariles2::serialization::NodeStackBase< t_Node >::empty ( ) const
inlineinherited

Definition at line 163 of file serialization.h.

◆ getRawNode() [1/2]

::rapidjson::Value & ariles2::ns_rapidjson::ImplBase< ::rapidjson::Value >::getRawNode ( )
inlineinherited

Definition at line 60 of file common.h.

◆ getRawNode() [2/2]

::rapidjson::Value & ariles2::ns_rapidjson::ImplBase< ::rapidjson::Value >::getRawNode ( const std::size_t  depth)
inlineinherited

Get current node.

Returns
pointer to the current node

Definition at line 49 of file common.h.

◆ openFile()

void ariles2::write::FileVisitorImplementation::openFile ( const std::string &  file_name)
inlineprotectedinherited

open configuration file

Parameters
[in]file_name

Definition at line 400 of file write.h.

◆ pop()

template<class t_Node >
void ariles2::serialization::NodeStackBase< t_Node >::pop ( )
inlineinherited

Definition at line 152 of file serialization.h.

◆ shiftArray()

template<class t_Node >
void ariles2::serialization::NodeStackBase< t_Node >::shiftArray ( )
inlineinherited

Definition at line 157 of file serialization.h.

Member Data Documentation

◆ config_ofs_

std::ofstream ariles2::write::FileVisitorImplementation::config_ofs_
inherited

output file stream

Definition at line 377 of file write.h.

◆ document_

::rapidjson::Document ariles2::ns_rapidjson::ImplBase< ::rapidjson::Value >::document_
inherited

instance of the parser

Definition at line 40 of file common.h.

◆ node_stack_

template<class t_Node >
std::vector<t_Node> ariles2::serialization::NodeStackBase< t_Node >::node_stack_
inherited

Definition at line 128 of file serialization.h.

◆ output_stream_

std::ostream* ariles2::write::FileVisitorImplementation::output_stream_
inherited

output stream

Definition at line 380 of file write.h.


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