Emergency 2017 Dokumentation  v3.0.1
qsf::QmTranslatorSerializer Class Reference

Qt binary QM translator serializer. More...

#include <QmTranslatorSerializer.h>

Public Member Functions

 QmTranslatorSerializer ()
 Default constructor. More...
 
 ~QmTranslatorSerializer ()
 Destructor. More...
 
virtual void deserialize (Translator &translator, std::istream &istream) const override
 Deserialize a translator by using a given input stream. More...
 
virtual void serialize (Translator &translator, std::ostream &ostream) const override
 Serialize the translator into a given output stream. More...
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::Serializer
 Serializer ()
 Default constructor. More...
 
virtual ~Serializer ()
 Destructor. More...
 

Detailed Description

Qt binary QM translator serializer.

Todo:
  • TODO(ca) Currently only a subset of the QM file format is supported

Definition at line 35 of file QmTranslatorSerializer.h.

Constructor & Destructor Documentation

qsf::QmTranslatorSerializer::QmTranslatorSerializer ( )

Default constructor.

qsf::QmTranslatorSerializer::~QmTranslatorSerializer ( )
inline

Destructor.

Note
  • Not virtual by intent

Definition at line 12 of file QmTranslatorSerializer-inl.h.

Member Function Documentation

virtual void qsf::QmTranslatorSerializer::deserialize ( Translator translator,
std::istream &  istream 
) const
overridevirtual

Deserialize a translator by using a given input stream.

Parameters
[in]translatorTranslator instance to fill
[in]istreamInput stream to deserialize the translator from
Exceptions
Throws"std::exception" in case on an error

Implements qsf::TranslatorSerializer.

virtual void qsf::QmTranslatorSerializer::serialize ( Translator translator,
std::ostream &  ostream 
) const
overridevirtual

Serialize the translator into a given output stream.

Parameters
[in]translatorTranslator instance to serialize
[in]ostreamOutput stream to serialize the translator into
Exceptions
Throws"std::exception" in case on an error

Implements qsf::TranslatorSerializer.


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