[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Defines | Functions
src/klftools/klfpobj.h File Reference
#include <QDebug>
#include <QVariant>
#include <QByteArray>
#include <QDataStream>
#include <QTextStream>
#include <QVector>
#include <QList>
#include <QMap>
#include <QStringList>
#include <klfdefs.h>
Include dependency graph for klfpobj.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  KLFAbstractPropertizedObject
 An abstract object characterized by properties. More...
class  KLFSpecifyableType
class  KLFEnumType
class  KLFPropertizedObject
 A class that holds properties. More...
class  KLFPObjPropRefHelper
class  KLFPObjPropRef< T >
class  KLFPObjRegisteredType
class  KLFSpecifyableRegisteredType

Defines

#define KLF_DECLARE_POBJ_TYPE(TYPE)   static KLFPObjRegisteredType __klf_pobj_regtype_##TYPE = KLFPObjRegisteredType(#TYPE) ;
#define KLF_DECLARE_SPECIFYABLE_TYPE(TYPE)   static KLFSpecifyableRegisteredType __klf_specifyable_regtype_##TYPE = KLFSpecifyableRegisteredType(#TYPE) ;

Functions

 Q_DECLARE_METATYPE (KLFEnumType)
KLF_EXPORT QDataStreamoperator<< (QDataStream &stream, const KLFEnumType &e)
KLF_EXPORT QDataStreamoperator>> (QDataStream &stream, KLFEnumType &e)
bool operator== (const KLFEnumType &a, const KLFEnumType &b)
KLF_EXPORT QDataStreamoperator<< (QDataStream &stream, const KLFPropertizedObject &obj)
KLF_EXPORT QDataStreamoperator>> (QDataStream &stream, KLFPropertizedObject &obj)
KLF_EXPORT QTextStreamoperator<< (QTextStream &stream, const KLFPropertizedObject &obj)
KLF_EXPORT QDebugoperator<< (QDebug &stream, const KLFPropertizedObject &obj)
template<typename T >
QDebugoperator<< (QDebug &str, const KLFPObjPropRef< T > &p)

Define Documentation

#define KLF_DECLARE_POBJ_TYPE (   TYPE)    static KLFPObjRegisteredType __klf_pobj_regtype_##TYPE = KLFPObjRegisteredType(#TYPE) ;

Put this in the .cpp for the given type.

Todo:
###: Which type? any abstractobj or just klfproperitzedobject? ###: ^^^^^^^^^^^ this one it seems (see klfuserscript.h)

Definition at line 936 of file klfpobj.h.

#define KLF_DECLARE_SPECIFYABLE_TYPE (   TYPE)    static KLFSpecifyableRegisteredType __klf_specifyable_regtype_##TYPE = KLFSpecifyableRegisteredType(#TYPE) ;

Put this in the .cpp for the given type

Definition at line 974 of file klfpobj.h.


Function Documentation

KLF_EXPORT QDataStream& operator<< ( QDataStream stream,
const KLFEnumType e 
)

Definition at line 79 of file klfpobj.cpp.

References KLFEnumType::specification(), and KLFEnumType::value().

KLF_EXPORT QDataStream& operator<< ( QDataStream stream,
const KLFPropertizedObject obj 
)
Note:
For more advanced saving/loading techniques, see klfLoad() and klfSave().

Definition at line 631 of file klfpobj.cpp.

References KLFPropertizedObject::streamInto().

KLF_EXPORT QTextStream& operator<< ( QTextStream stream,
const KLFPropertizedObject obj 
)

Definition at line 641 of file klfpobj.cpp.

References KLFPropertizedObject::toString().

KLF_EXPORT QDebug& operator<< ( QDebug stream,
const KLFPropertizedObject obj 
)

Definition at line 648 of file klfpobj.cpp.

References KLFPropertizedObject::allProperties().

template<typename T >
QDebug& operator<< ( QDebug str,
const KLFPObjPropRef< T > &  p 
) [inline]

Definition at line 888 of file klfpobj.h.

bool operator== ( const KLFEnumType a,
const KLFEnumType b 
) [inline]

Definition at line 220 of file klfpobj.h.

References KLFEnumType::value().

KLF_EXPORT QDataStream& operator>> ( QDataStream stream,
KLFEnumType e 
)

Definition at line 83 of file klfpobj.cpp.

References KLFEnumType::setSpecification(), and KLFEnumType::setValue().

KLF_EXPORT QDataStream& operator>> ( QDataStream stream,
KLFPropertizedObject obj 
)
Note:
For more advanced saving/loading techniques, see klfLoad() and klfSave().

Definition at line 635 of file klfpobj.cpp.

References KLFPropertizedObject::streamFrom().


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