[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Macros | Functions
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
 

Macros

#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)
 

Macro Definition Documentation

◆ KLF_DECLARE_POBJ_TYPE

#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.

◆ KLF_DECLARE_SPECIFYABLE_TYPE

#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

◆ operator<<() [1/5]

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

Definition at line 79 of file klfpobj.cpp.

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

Referenced by KLFEnumType::setSpecification().

◆ operator<<() [2/5]

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().

◆ operator<<() [3/5]

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

Definition at line 641 of file klfpobj.cpp.

References KLFPropertizedObject::toString().

◆ operator<<() [4/5]

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

Definition at line 648 of file klfpobj.cpp.

References KLFPropertizedObject::allProperties().

◆ operator<<() [5/5]

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

Definition at line 888 of file klfpobj.h.

◆ operator==()

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

Definition at line 220 of file klfpobj.h.

References KLFEnumType::value().

◆ operator>>() [1/2]

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

Definition at line 83 of file klfpobj.cpp.

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

Referenced by KLFEnumType::setSpecification().

◆ operator>>() [2/2]

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().

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( KLFEnumType  )

Generated by doxygen 1.8.13