Ariles
Public Types | Public Member Functions | Public Attributes | 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 >

Public Types

typedef serialization::Node< ::rapidjson::Value * > NodeWrapper
 

Public Member Functions

 Writer (const std::string &file_name)
 
 Writer (std::ostream &output_stream)
 
::rapidjson::Value & getRawNode (const std::size_t depth)
 Get current node. More...
 
::rapidjson::Value & getRawNode ()
 

Public Attributes

std::ofstream config_ofs_
 output file stream More...
 
std::ostream * output_stream_
 output stream More...
 
::rapidjson::Document document_
 instance of the parser More...
 
std::vector< NodeWrappernode_stack_
 Stack of nodes. More...
 

Member Typedef Documentation

◆ NodeWrapper

typedef serialization::Node<::rapidjson::Value *> ariles2::ns_rapidjson::ImplBase< ::rapidjson::Value >::NodeWrapper
inherited

Definition at line 36 of file common.h.

Constructor & Destructor Documentation

◆ Writer() [1/2]

ariles2::ns_rapidjson::impl::Writer::Writer ( const std::string &  file_name)
inlineexplicit

Definition at line 37 of file writer.cpp.

◆ Writer() [2/2]

ariles2::ns_rapidjson::impl::Writer::Writer ( std::ostream &  output_stream)
inlineexplicit

Definition at line 45 of file writer.cpp.

Member Function Documentation

◆ getRawNode() [1/2]

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

Definition at line 64 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 53 of file common.h.

Member Data Documentation

◆ config_ofs_

std::ofstream ariles2::ns_rapidjson::impl::Writer::config_ofs_

output file stream

Definition at line 31 of file writer.cpp.

◆ document_

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

instance of the parser

Definition at line 41 of file common.h.

◆ node_stack_

std::vector<NodeWrapper> ariles2::ns_rapidjson::ImplBase< ::rapidjson::Value >::node_stack_
inherited

Stack of nodes.

Definition at line 44 of file common.h.

◆ output_stream_

std::ostream* ariles2::ns_rapidjson::impl::Writer::output_stream_

output stream

Definition at line 34 of file writer.cpp.


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