GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
KeyboardTranslatorWriter Class Reference

Writes a keyboard translation to disk. More...

#include "KeyboardTranslator.h"

Collaboration diagram for KeyboardTranslatorWriter:
Collaboration graph
[legend]

Public Member Functions

 KeyboardTranslatorWriter (QIODevice *destination)
 Constructs a new writer which saves data into destination. More...
 
 ~KeyboardTranslatorWriter ()
 
void writeEntry (const KeyboardTranslator::Entry &entry)
 Writes a translator entry. More...
 
void writeHeader (const QString &description)
 Writes the header for the keyboard translator. More...
 

Private Attributes

QIODevice * _destination
 
QTextStream * _writer
 

Detailed Description

Writes a keyboard translation to disk.

Definition at line 488 of file KeyboardTranslator.h.

Constructor & Destructor Documentation

KeyboardTranslatorWriter::KeyboardTranslatorWriter ( QIODevice *  destination)

Constructs a new writer which saves data into destination.

The caller is responsible for closing the device when writing is complete.

Definition at line 189 of file KeyboardTranslator.cpp.

References _destination, and _writer.

KeyboardTranslatorWriter::~KeyboardTranslatorWriter ( )

Definition at line 196 of file KeyboardTranslator.cpp.

References _writer.

Member Function Documentation

void KeyboardTranslatorWriter::writeEntry ( const KeyboardTranslator::Entry entry)
void KeyboardTranslatorWriter::writeHeader ( const QString &  description)

Writes the header for the keyboard translator.

Parameters
descriptionDescription of the keyboard translator.

Definition at line 200 of file KeyboardTranslator.cpp.

References _writer.

Referenced by KeyboardTranslatorManager::saveTranslator().

Member Data Documentation

QIODevice* KeyboardTranslatorWriter::_destination
private

Definition at line 507 of file KeyboardTranslator.h.

Referenced by KeyboardTranslatorWriter().

QTextStream* KeyboardTranslatorWriter::_writer
private

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