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

Detailed Description

Definition at line 22 of file writer.cpp.

Inheritance diagram for ariles2::ns_yaml_cpp::impl::Writer:
ariles2::write::FileVisitorImplementation

Public Types

using EmitterPtr = std::shared_ptr< YAML::Emitter >
 

Public Member Functions

void initEmitter ()
 
void destroyEmitter ()
 
template<class... t_Args>
 Writer (t_Args &&...args)
 
void flush ()
 

Public Attributes

EmitterPtr emitter_
 instance of YAML emitter, is destroyed and reinitialized by flush() More...
 
std::size_t map_depth_
 
bool skip_root_map_
 
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...
 

Member Typedef Documentation

◆ EmitterPtr

using ariles2::ns_yaml_cpp::impl::Writer::EmitterPtr = std::shared_ptr<YAML::Emitter>

Definition at line 25 of file writer.cpp.

Constructor & Destructor Documentation

◆ Writer()

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

Definition at line 62 of file writer.cpp.

Member Function Documentation

◆ destroyEmitter()

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

Definition at line 52 of file writer.cpp.

◆ flush()

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

Definition at line 68 of file writer.cpp.

◆ initEmitter()

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

Definition at line 37 of file writer.cpp.

◆ 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.

Member Data Documentation

◆ config_ofs_

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

output file stream

Definition at line 377 of file write.h.

◆ emitter_

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

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

Definition at line 30 of file writer.cpp.

◆ map_depth_

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

Definition at line 32 of file writer.cpp.

◆ output_stream_

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

output stream

Definition at line 380 of file write.h.

◆ skip_root_map_

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

Definition at line 33 of file writer.cpp.


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