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

Detailed Description

Definition at line 22 of file writer.cpp.

Public Types

typedef ARILES2_SHARED_PTR< YAML::Emitter > EmitterPtr
 

Public Member Functions

void initEmitter ()
 
void destroyEmitter ()
 
 Writer (const std::string &file_name)
 
 Writer (std::ostream &output_stream)
 
void flush ()
 

Public Attributes

std::ofstream config_ofs_
 output file stream More...
 
std::ostream * output_stream_
 output stream More...
 
EmitterPtr emitter_
 instance of YAML emitter, is destroyed and reinitialized by flush() More...
 
std::size_t map_depth_
 
bool skip_root_map_
 

Member Typedef Documentation

◆ EmitterPtr

Definition at line 25 of file writer.cpp.

Constructor & Destructor Documentation

◆ Writer() [1/2]

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

Definition at line 67 of file writer.cpp.

◆ Writer() [2/2]

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

Definition at line 75 of file writer.cpp.

Member Function Documentation

◆ destroyEmitter()

void ariles2::ns_yaml_cpp::impl::Writer::destroyEmitter ( )
inline

Definition at line 58 of file writer.cpp.

◆ flush()

void ariles2::ns_yaml_cpp::impl::Writer::flush ( )
inline

Definition at line 82 of file writer.cpp.

◆ initEmitter()

void ariles2::ns_yaml_cpp::impl::Writer::initEmitter ( )
inline

Definition at line 43 of file writer.cpp.

Member Data Documentation

◆ config_ofs_

std::ofstream ariles2::ns_yaml_cpp::impl::Writer::config_ofs_

output file stream

Definition at line 30 of file writer.cpp.

◆ emitter_

EmitterPtr ariles2::ns_yaml_cpp::impl::Writer::emitter_

instance of YAML emitter, is destroyed and reinitialized by flush()

Definition at line 36 of file writer.cpp.

◆ map_depth_

std::size_t ariles2::ns_yaml_cpp::impl::Writer::map_depth_

Definition at line 38 of file writer.cpp.

◆ output_stream_

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

output stream

Definition at line 33 of file writer.cpp.

◆ skip_root_map_

bool ariles2::ns_yaml_cpp::impl::Writer::skip_root_map_

Definition at line 39 of file writer.cpp.


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