Base class for XML storing archives.
More...
#include <CXmlWriteArchiveBase.h>
|
virtual bool | IsTagSkippingSupported () const |
| Check if skiping to the end of tag on EndTag is supported.
|
|
virtual bool | BeginTag (const CArchiveTag &tag) |
| Begin of archive tag.
|
|
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 | EndTag (const CArchiveTag &tag) |
| End of archive tag.
|
|
virtual bool | Process (QByteArray &value) |
| Process primitive type.
|
|
virtual bool | Process (QString &value) |
| Process primitive type.
|
|
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 | ProcessData (void *dataPtr, int size) |
| Process binary data block.
|
|
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.
|
|
| CXmlDocumentInfoBase () |
|
bool | IsCommentEnabled () const |
| Check if comments in XML document are enabled.
|
|
void | SetCommentEnabled (bool state=true) |
| Allows comments in XML document.
|
|
|
| CXmlWriteArchiveBase (const IVersionInfo *versionInfoPtr, const CArchiveTag &rootTag) |
|
bool | MakeIndent () |
|
bool | WriteXmlHeader () |
| Write XML header.
|
|
bool | WriteXmlFooter () |
| Write XML footer.
|
|
bool | WriteTextNode (const QByteArray &text) |
| Write single unformatted text node.
|
|
virtual bool | WriteString (const QByteArray &value)=0 |
|
| CTextWriteArchiveBase (const IVersionInfo *versionInfoPtr) |
|
| CWriteArchiveBase (const IVersionInfo *versionInfoPtr) |
| Constructor.
|
|
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.
|
|
Base class for XML storing archives.
Definition at line 21 of file CXmlWriteArchiveBase.h.
◆ BaseClass
◆ CXmlWriteArchiveBase()
iser::CXmlWriteArchiveBase::CXmlWriteArchiveBase |
( |
const IVersionInfo * | versionInfoPtr, |
|
|
const CArchiveTag & | rootTag ) |
|
protected |
◆ BeginMultiTag()
virtual bool iser::CXmlWriteArchiveBase::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
-
tag | main tag. |
subTag | type of subelement tag. |
count | number of subelements. If it is read archive this value will be set. If it storing archive this is input value. |
useTagSkipping | flag 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.
Reimplemented from iser::CArchiveBase.
◆ BeginTag()
virtual bool iser::CXmlWriteArchiveBase::BeginTag |
( |
const CArchiveTag & | tag | ) |
|
|
virtual |
Begin of archive tag.
- Parameters
-
tag | tag object. |
useTagSkipping | flag signalling that support of tag skipping should be enabled. |
Implements iser::IArchive.
◆ EndTag()
virtual bool iser::CXmlWriteArchiveBase::EndTag |
( |
const CArchiveTag & | tag | ) |
|
|
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.
- See also
- IsTagSkippingSupported.
Implements iser::IArchive.
◆ IsTagSkippingSupported()
virtual bool iser::CXmlWriteArchiveBase::IsTagSkippingSupported |
( |
| ) |
const |
|
virtual |
◆ MakeIndent()
bool iser::CXmlWriteArchiveBase::MakeIndent |
( |
| ) |
|
|
protected |
◆ Process() [1/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
bool & | value | ) |
|
|
virtual |
◆ Process() [2/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
char & | value | ) |
|
|
virtual |
◆ Process() [3/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
double & | value | ) |
|
|
virtual |
◆ Process() [4/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
float & | value | ) |
|
|
virtual |
◆ Process() [5/14]
virtual bool iser::CXmlWriteArchiveBase::Process |
( |
QByteArray & | value | ) |
|
|
virtual |
◆ Process() [6/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
qint16 & | value | ) |
|
|
virtual |
◆ Process() [7/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
qint32 & | value | ) |
|
|
virtual |
◆ Process() [8/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
qint64 & | value | ) |
|
|
virtual |
◆ Process() [9/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
qint8 & | value | ) |
|
|
virtual |
◆ Process() [10/14]
virtual bool iser::CXmlWriteArchiveBase::Process |
( |
QString & | value | ) |
|
|
virtual |
◆ Process() [11/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
quint16 & | value | ) |
|
|
virtual |
◆ Process() [12/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
quint32 & | value | ) |
|
|
virtual |
◆ Process() [13/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
quint64 & | value | ) |
|
|
virtual |
◆ Process() [14/14]
virtual bool iser::CTextWriteArchiveBase::Process |
( |
quint8 & | value | ) |
|
|
virtual |
◆ WriteString()
virtual bool iser::CXmlWriteArchiveBase::WriteString |
( |
const QByteArray & | value | ) |
|
|
protectedpure virtual |
◆ WriteTextNode()
bool iser::CXmlWriteArchiveBase::WriteTextNode |
( |
const QByteArray & | text | ) |
|
|
protectedvirtual |
◆ WriteXmlFooter()
bool iser::CXmlWriteArchiveBase::WriteXmlFooter |
( |
| ) |
|
|
protected |
◆ WriteXmlHeader()
bool iser::CXmlWriteArchiveBase::WriteXmlHeader |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: