19.4.2. FileConsumer

class FileConsumer : public eprosima::fastdds::dds::OStreamConsumer

Public Functions

FileConsumer()

Default constructor: filename = “output.log”, append = false.

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

Constructor with parameters.

Parameters:
  • filename – path of the output file where the log will be wrote.

  • append – indicates if the consumer must append the content in the filename.