WSF
wsf::console::FileSubscriber Class Referencefinal

Writes received messages to file on disk. More...

#include <WsfConsole.hpp>

Inheritance diagram for wsf::console::FileSubscriber:
Collaboration diagram for wsf::console::FileSubscriber:

Public Member Functions

 ~FileSubscriber () noexcept override
void OpenFile (const std::string &aFileName)
 SubscriberBase (const OutputSettings &aSettings) noexcept
 Creates and registers the subscriber.
Public Member Functions inherited from wsf::console::SubscriberBase
 SubscriberBase (const OutputSettings &aSettings) noexcept
 Creates and registers the subscriber.
void UpdateSettings (const OutputSettings &aSettings)
 Sets the settings.
OutputSettings GetSettings () const noexcept
 Returns the current settings.

Detailed Description

Writes received messages to file on disk.

Constructor & Destructor Documentation

◆ ~FileSubscriber()

wsf::console::FileSubscriber::~FileSubscriber ( )
overridenoexcept

Member Function Documentation

◆ OpenFile()

void wsf::console::FileSubscriber::OpenFile ( const std::string & aFileName)

Opens the file given by aFileName. If that file is already open, does nothing.

◆ SubscriberBase()

wsf::console::SubscriberBase::SubscriberBase ( const OutputSettings & aSettings)
explicitnoexcept

Creates and registers the subscriber.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved