Fast DDS  Version 3.6.1.0
Fast DDS
FileConsumer Class Reference

#include <FileConsumer.hpp>

Inheritance diagram for FileConsumer:
OStreamConsumer LogConsumer

Public Member Functions

FASTDDS_EXPORTED_API FileConsumer ()
 Default constructor: filename = "output.log", append = false. More...
 
FASTDDS_EXPORTED_API FileConsumer (const std::string &filename, bool append=false)
 Constructor with parameters. More...
 
virtual ~FileConsumer ()
 
- Public Member Functions inherited from OStreamConsumer
virtual ~OStreamConsumer ()=default
 
FASTDDS_EXPORTED_API void Consume (const Log::Entry &entry) override
 
- Public Member Functions inherited from LogConsumer
virtual ~LogConsumer ()=default
 
virtual void Consume (const Log::Entry &)=0
 

Additional Inherited Members

virtual FASTDDS_EXPORTED_API std::ostream & get_stream (const Log::Entry &entry)=0
 
- Protected Member Functions inherited from LogConsumer
FASTDDS_EXPORTED_API void print_timestamp (std::ostream &stream, const Log::Entry &, bool color) const
 
FASTDDS_EXPORTED_API void print_header (std::ostream &stream, const Log::Entry &, bool color) const
 
FASTDDS_EXPORTED_API void print_context (std::ostream &stream, const Log::Entry &, bool color) const
 
FASTDDS_EXPORTED_API void print_message (std::ostream &stream, const Log::Entry &, bool color) const
 
FASTDDS_EXPORTED_API void print_new_line (std::ostream &stream, bool color) const
 

Constructor & Destructor Documentation

◆ FileConsumer() [1/2]

FASTDDS_EXPORTED_API FileConsumer ( )

Default constructor: filename = "output.log", append = false.

◆ FileConsumer() [2/2]

FASTDDS_EXPORTED_API FileConsumer ( const std::string &  filename,
bool  append = false 
)

Constructor with parameters.

Parameters
filenamepath of the output file where the log will be wrote.
appendindicates if the consumer must append the content in the filename.

◆ ~FileConsumer()

virtual ~FileConsumer ( )
virtual

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