trikRuntime
trikHal::stub::StubOutputDeviceFile Class Reference

Empty implementation of output device file. Only logs operations. More...

#include <stubOutputDeviceFile.h>

Inheritance diagram for trikHal::stub::StubOutputDeviceFile:
Collaboration diagram for trikHal::stub::StubOutputDeviceFile:

Public Member Functions

 StubOutputDeviceFile (const QString &fileName)
 Constructor. More...
 
bool open () override
 Open a file. File name must be set previously. More...
 
void close () override
 Close a file. More...
 
void write (const QString &data) override
 Write data to a file using UTF-8 encoding. More...
 
QString fileName () const override
 Returns name of a file. More...
 
- Public Member Functions inherited from trikHal::OutputDeviceFileInterface
 OutputDeviceFileInterface ()=default
 
virtual ~OutputDeviceFileInterface ()=default
 

Detailed Description

Empty implementation of output device file. Only logs operations.

Constructor & Destructor Documentation

StubOutputDeviceFile::StubOutputDeviceFile ( const QString &  fileName)
explicit

Constructor.

Parameters
fileName- file name (with path, relative or absolute) of a device file.

Member Function Documentation

void StubOutputDeviceFile::close ( )
overridevirtual

Close a file.

Implements trikHal::OutputDeviceFileInterface.

QString StubOutputDeviceFile::fileName ( ) const
overridevirtual

Returns name of a file.

Implements trikHal::OutputDeviceFileInterface.

bool StubOutputDeviceFile::open ( )
overridevirtual

Open a file. File name must be set previously.

Implements trikHal::OutputDeviceFileInterface.

void StubOutputDeviceFile::write ( const QString &  data)
overridevirtual

Write data to a file using UTF-8 encoding.

Implements trikHal::OutputDeviceFileInterface.


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