![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Base class for archive implementations reading data based on its binary representation. More...
#include <CBinaryReadArchiveBase.h>
Public Types | |
enum | MessageId { MI_STRING_TOO_LONG = 0x3f320b0 } |
typedef CReadArchiveBase | BaseClass |
![]() | |
enum | MessageId { MI_TAG_ERROR = 0x3f320a0 , MI_TAG_SKIPPED } |
Public Member Functions | |
virtual bool | BeginTag (const CArchiveTag &tag) |
Begin of archive tag. | |
virtual bool | EndTag (const CArchiveTag &tag) |
End of archive tag. | |
virtual bool | Process (bool &value) |
Process primitive type. | |
virtual bool | Process (char &value) |
Process primitive type. | |
virtual bool | Process (quint8 &value) |
Process primitive type. | |
virtual bool | Process (qint8 &value) |
Process primitive type. | |
virtual bool | Process (quint16 &value) |
Process primitive type. | |
virtual bool | Process (qint16 &value) |
Process primitive type. | |
virtual bool | Process (quint32 &value) |
Process primitive type. | |
virtual bool | Process (qint32 &value) |
Process primitive type. | |
virtual bool | Process (quint64 &value) |
Process primitive type. | |
virtual bool | Process (qint64 &value) |
Process primitive type. | |
virtual bool | Process (float &value) |
Process primitive type. | |
virtual bool | Process (double &value) |
Process primitive type. | |
virtual bool | Process (QByteArray &value) |
Process primitive type. | |
virtual bool | Process (QString &value) |
Process primitive type. | |
![]() | |
bool | IsChanging () const override |
Check if this archive processing change the object state. | |
const IVersionInfo & | GetVersionInfo () const override |
Get version of archived stream for specific versioning type. | |
bool | ProcessBits (void *dataPtr, int bitsCount, int bytesCount) override |
Process binary data block. | |
![]() | |
virtual bool | IsTagSkippingSupported () const |
Check if skiping to the end of tag on EndTag is supported. | |
virtual bool | BeginMultiTag (const CArchiveTag &tag, const CArchiveTag &subTag, int &count) |
Begin of archive tag containing set of subelements of the same type. | |
![]() | |
virtual bool | ProcessData (void *dataPtr, int size)=0 |
Process binary data block. | |
Protected Member Functions | |
virtual int | GetMaxStringLength () const |
Get maximal allowed string size. | |
![]() | |
bool | SerializeIcfHeader () |
Serialize standard header. | |
![]() | |
CArchiveBase () | |
![]() | |
virtual void | DecorateMessage (IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const |
Decorate message parts before outputting. | |
virtual bool | IsLogConsumed (const IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const |
Check if any log message is consumed. | |
virtual bool | SendLogMessage (IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const |
Send any message to log. | |
Additional Inherited Members | |
![]() | |
static const CArchiveTag & | GetAcfRootTag () |
![]() | |
static CArchiveTag | s_acfRootTag |
Base class for archive implementations reading data based on its binary representation.
Definition at line 20 of file CBinaryReadArchiveBase.h.
Definition at line 23 of file CBinaryReadArchiveBase.h.
Enumerator | |
---|---|
MI_STRING_TOO_LONG |
Definition at line 25 of file CBinaryReadArchiveBase.h.
|
virtual |
Begin of archive tag.
tag | tag object. |
useTagSkipping | flag signalling that support of tag skipping should be enabled. |
Implements iser::IArchive.
Reimplemented in ifile::CFileReadArchive.
|
virtual |
End of archive tag.
This method should be allways called after BeginTag is successfull called. If skipping of tag contains is supported, this will skip to the end of tag while archive reading. Otherwise you have to read contains of archive completely.
Implements iser::IArchive.
Reimplemented in ifile::CFileReadArchive.
|
protectedvirtual |
Get maximal allowed string size.
Reimplemented in ifile::CFileReadArchive, and iser::CMemoryReadArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Implements iser::IArchive.
© Witold Gantzke and Kirill Lepskiy