[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Public Member Functions | Static Public Member Functions
KLFAbstractPropertizedObjectSaver Class Reference

Inherit this class to implement a custom saver for KLFAbstractPropertizedObjects. More...

#include <klfdatautil.h>

Inheritance diagram for KLFAbstractPropertizedObjectSaver:
Inheritance graph
[legend]
Collaboration diagram for KLFAbstractPropertizedObjectSaver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KLFAbstractPropertizedObjectSaver ()
virtual ~KLFAbstractPropertizedObjectSaver ()
virtual QStringList supportedTypes () const =0
virtual QString recognizeDataFormat (const QByteArray &data) const =0
virtual QByteArray save (const KLFAbstractPropertizedObject *obj, const QString &format)=0
virtual bool load (const QByteArray &data, KLFAbstractPropertizedObject *obj, const QString &format)=0

Static Public Member Functions

static
KLFAbstractPropertizedObjectSaver
findRecognizedFormat (const QByteArray &data, QString *format=NULL)
static
KLFAbstractPropertizedObjectSaver
findSaverFor (const QString &format)

Detailed Description

Inherit this class to implement a custom saver for KLFAbstractPropertizedObjects.

Note:
All formats must be explicitly recognizable; for binary formats you must add a "magic" header. This is important so that klfLoad() does not need to know the format in advance.

Definition at line 123 of file klfdatautil.h.


Constructor & Destructor Documentation

Definition at line 1595 of file klfdatautil.cpp.

Definition at line 1599 of file klfdatautil.cpp.


Member Function Documentation

Definition at line 1608 of file klfdatautil.cpp.

References recognizeDataFormat(), and KLFFactoryManager::registeredFactories().

Referenced by klfLoad().

Definition at line 1629 of file klfdatautil.cpp.

References KLFFactoryManager::findFactoryFor().

Referenced by klfLoad(), and klfSave().

virtual bool KLFAbstractPropertizedObjectSaver::load ( const QByteArray data,
KLFAbstractPropertizedObject obj,
const QString format 
) [pure virtual]

Referenced by klfLoad().

virtual QString KLFAbstractPropertizedObjectSaver::recognizeDataFormat ( const QByteArray data) const [pure virtual]

Referenced by findRecognizedFormat().

virtual QByteArray KLFAbstractPropertizedObjectSaver::save ( const KLFAbstractPropertizedObject obj,
const QString format 
) [pure virtual]

Referenced by klfSave().

Implements KLFFactoryBase.


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

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net