Static Public Member Functions | List of all members
iser::CPrimitiveTypesSerializer Class Reference

Implementation of serialize method for some common data types. More...

#include <CPrimitiveTypesSerializer.h>

Static Public Member Functions

static bool SerializeRange (iser::IArchive &archive, istd::CRange &range)
 Serialize a range object. More...
 
static bool SerializeIntRange (iser::IArchive &archive, istd::CIntRange &range)
 Serialize an integer-based range object. More...
 
static bool SerializeRanges (iser::IArchive &archive, istd::CRanges &ranges)
 Serialize list of range objects. More...
 
static bool SerializeIntRanges (iser::IArchive &archive, istd::CIntRanges &ranges)
 Serialize list of integer-based ranges. More...
 
static bool SerializeDateTime (iser::IArchive &archive, QDateTime &dateTime)
 Serialize QDateTime object. More...
 
static bool SerializeDate (iser::IArchive &archive, QDate &date)
 Serialize QDate object. More...
 
template<int Dimensions>
static bool SerializeIndex (iser::IArchive &archive, istd::TIndex< Dimensions > &index)
 Serialize a generic index object. More...
 
static bool SerializeQPointF (iser::IArchive &archive, QPointF &point)
 Serialize a QPointF object. More...
 
static bool SerializeQStringList (iser::IArchive &archive, QStringList &stringList, const QByteArray &containerTagName="Elements", const QByteArray &elementTagName="Element")
 Serialize a QStringList object. More...
 
template<typename EnumType , QByteArray(*)(EnumType) ToString, bool(*)(const QByteArray &, EnumType &) FromString>
static bool SerializeEnum (iser::IArchive &archive, EnumType &enumValue)
 Method for serialization of the enumerated value using ACF's meta information extensions for the C++ enums. More...
 
template<typename EnumType >
static bool SerializeEnum (iser::IArchive &archive, EnumType &enumValue, const QObject *objectPtr)
 Method for serialization of the enumerated value using Qt's meta information system. More...
 

Detailed Description

Implementation of serialize method for some common data types.

Definition at line 28 of file CPrimitiveTypesSerializer.h.

Member Function Documentation

static bool iser::CPrimitiveTypesSerializer::SerializeDate ( iser::IArchive archive,
QDate &  date 
)
static

Serialize QDate object.

static bool iser::CPrimitiveTypesSerializer::SerializeDateTime ( iser::IArchive archive,
QDateTime &  dateTime 
)
static

Serialize QDateTime object.

template<typename EnumType , QByteArray(*)(EnumType) ToString, bool(*)(const QByteArray &, EnumType &) FromString>
bool iser::CPrimitiveTypesSerializer::SerializeEnum ( iser::IArchive archive,
EnumType &  enumValue 
)
static

Method for serialization of the enumerated value using ACF's meta information extensions for the C++ enums.

This implementation supports both methods for serialization of the enumerator - as integer value or in textual form. The second variant is only possible if the enumeration was defined using I_DECLARE_ENUM macro.

See Also
I_DECLARE_ENUM I_DECLARE_FLAGS

Definition at line 121 of file CPrimitiveTypesSerializer.h.

References iser::IArchive::IsStoring(), NULL, and iser::IArchive::Process().

template<typename EnumType >
bool iser::CPrimitiveTypesSerializer::SerializeEnum ( iser::IArchive archive,
EnumType &  enumValue,
const QObject *  objectPtr 
)
static

Method for serialization of the enumerated value using Qt's meta information system.

This implementation supports both methods for serialization of the enumerator - as integer value or in textual form. The second variant is only possible if the owner of the enumeration is a class which is directly or indirectly derived from QObject

Definition at line 163 of file CPrimitiveTypesSerializer.h.

References iser::IArchive::IsStoring(), NULL, and iser::IArchive::Process().

template<int Dimensions>
bool iser::CPrimitiveTypesSerializer::SerializeIndex ( iser::IArchive archive,
istd::TIndex< Dimensions > &  index 
)
static

Serialize a generic index object.

Definition at line 108 of file CPrimitiveTypesSerializer.h.

References iser::IArchive::Process().

static bool iser::CPrimitiveTypesSerializer::SerializeIntRange ( iser::IArchive archive,
istd::CIntRange range 
)
static

Serialize an integer-based range object.

static bool iser::CPrimitiveTypesSerializer::SerializeIntRanges ( iser::IArchive archive,
istd::CIntRanges ranges 
)
static

Serialize list of integer-based ranges.

static bool iser::CPrimitiveTypesSerializer::SerializeQPointF ( iser::IArchive archive,
QPointF &  point 
)
static

Serialize a QPointF object.

static bool iser::CPrimitiveTypesSerializer::SerializeQStringList ( iser::IArchive archive,
QStringList &  stringList,
const QByteArray &  containerTagName = "Elements",
const QByteArray &  elementTagName = "Element" 
)
static

Serialize a QStringList object.

static bool iser::CPrimitiveTypesSerializer::SerializeRange ( iser::IArchive archive,
istd::CRange range 
)
static

Serialize a range object.

static bool iser::CPrimitiveTypesSerializer::SerializeRanges ( iser::IArchive archive,
istd::CRanges ranges 
)
static

Serialize list of range objects.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy