Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
iser::CArchiveBase Class Reference

Base implementation of iser::IArchive interface. More...

#include <CArchiveBase.h>

Inheritance diagram for iser::CArchiveBase:
iser::IArchive istd::ILogger istd::IPolymorphic istd::IPolymorphic iser::CReadArchiveBase iser::CWriteArchiveBase iser::CBinaryReadArchiveBase iser::CTextReadArchiveBase iser::CBinaryWriteArchiveBase iser::CTextWriteArchiveBase ifile::CFileReadArchive iser::CMemoryReadArchive iqt::CSettingsReadArchive iser::CCompactXmlReadArchiveBase iser::CXmlReadArchiveBase ifile::CFileWriteArchive iser::CMemoryWriteArchive iqt::CSettingsWriteArchive iser::CCompactXmlWriteArchiveBase iser::CXmlWriteArchiveBase

Public Member Functions

virtual bool IsTagSkippingSupported () const
 Check if skiping to the end of tag on EndTag is supported. More...
 
virtual bool BeginMultiTag (const CArchiveTag &tag, const CArchiveTag &subTag, int &count)
 Begin of archive tag containing set of subelements of the same type. More...
 
- Public Member Functions inherited from iser::IArchive
virtual bool IsStoring () const =0
 Check if this archive is loading or storing. More...
 
virtual const IVersionInfoGetVersionInfo () const =0
 Get version of archived stream for specific versioning type. More...
 
virtual bool BeginTag (const CArchiveTag &tag)=0
 Begin of archive tag. More...
 
virtual bool EndTag (const CArchiveTag &tag)=0
 End of archive tag. More...
 
virtual bool Process (bool &value)=0
 Process primitive type. More...
 
virtual bool Process (char &value)=0
 Process primitive type. More...
 
virtual bool Process (quint8 &value)=0
 Process primitive type. More...
 
virtual bool Process (qint8 &value)=0
 Process primitive type. More...
 
virtual bool Process (quint16 &value)=0
 Process primitive type. More...
 
virtual bool Process (qint16 &value)=0
 Process primitive type. More...
 
virtual bool Process (quint32 &value)=0
 Process primitive type. More...
 
virtual bool Process (qint32 &value)=0
 Process primitive type. More...
 
virtual bool Process (quint64 &value)=0
 Process primitive type. More...
 
virtual bool Process (qint64 &value)=0
 Process primitive type. More...
 
virtual bool Process (float &value)=0
 Process primitive type. More...
 
virtual bool Process (double &value)=0
 Process primitive type. More...
 
virtual bool Process (QByteArray &value)=0
 Process primitive type. More...
 
virtual bool Process (QString &value)=0
 Process primitive type. More...
 
virtual bool ProcessData (void *dataPtr, int size)=0
 Process binary data block. More...
 
virtual bool ProcessBits (void *dataPtr, int bitsCount, int bytesCount)=0
 Process binary data block. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Static Public Member Functions

static const CArchiveTagGetAcfRootTag ()
 

Protected Member Functions

 CArchiveBase ()
 
- Protected Member Functions inherited from istd::ILogger
virtual void DecorateMessage (IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 Decorate message parts before outputting. More...
 
virtual bool IsLogConsumed (const IInformationProvider::InformationCategory *categoryPtr=NULL, const int *flagsPtr=NULL) const
 Check if any log message is consumed. More...
 
virtual bool SendLogMessage (IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const
 Send any message to log. More...
 

Static Protected Attributes

static CArchiveTag s_acfRootTag
 

Additional Inherited Members

- Public Types inherited from iser::IArchive
enum  MessageId { MI_TAG_ERROR = 0x3f320a0, MI_TAG_SKIPPED }
 

Detailed Description

Base implementation of iser::IArchive interface.

It provides standard implementation of some methods and standard tags.

Definition at line 20 of file CArchiveBase.h.

Constructor & Destructor Documentation

iser::CArchiveBase::CArchiveBase ( )
inlineprotected

Definition at line 32 of file CArchiveBase.h.

Member Function Documentation

virtual bool iser::CArchiveBase::BeginMultiTag ( const CArchiveTag tag,
const CArchiveTag subTag,
int &  count 
)
virtual

Begin of archive tag containing set of subelements of the same type.

See Also
BeginTag.
Parameters
tagmain tag.
subTagtype of subelement tag.
countnumber of subelements. If it is read archive this value will be set. If it storing archive this is input value.
useTagSkippingflag signalling that support of tag skipping should be enabled.
Returns
true if success. In this case you have to call EndTag after serializing of subelements.

Implements iser::IArchive.

Reimplemented in iqt::CSettingsWriteArchive, iqt::CSettingsReadArchive, iser::CCompactXmlWriteArchiveBase, iser::CCompactXmlReadArchiveBase, iser::CXmlReadArchiveBase, and iser::CXmlWriteArchiveBase.

static const CArchiveTag& iser::CArchiveBase::GetAcfRootTag ( )
static
virtual bool iser::CArchiveBase::IsTagSkippingSupported ( ) const
virtual

Member Data Documentation

CArchiveTag iser::CArchiveBase::s_acfRootTag
staticprotected

Definition at line 35 of file CArchiveBase.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy