trikRuntime
trikHal::trik::TrikOutputDeviceFile Class Reference

Real implementation for output device file (a file to which we can only write). More...

#include <trikOutputDeviceFile.h>

Inheritance diagram for trikHal::trik::TrikOutputDeviceFile:
Collaboration diagram for trikHal::trik::TrikOutputDeviceFile:

Public Member Functions

 TrikOutputDeviceFile (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

Real implementation for output device file (a file to which we can only write).

Constructor & Destructor Documentation

TrikOutputDeviceFile::TrikOutputDeviceFile ( const QString &  fileName)

Constructor.

Parameters
fileName- name of a device file .

Member Function Documentation

void TrikOutputDeviceFile::close ( )
overridevirtual

Close a file.

Implements trikHal::OutputDeviceFileInterface.

QString TrikOutputDeviceFile::fileName ( ) const
overridevirtual

Returns name of a file.

Implements trikHal::OutputDeviceFileInterface.

bool TrikOutputDeviceFile::open ( )
overridevirtual

Open a file. File name must be set previously.

Implements trikHal::OutputDeviceFileInterface.

void TrikOutputDeviceFile::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: