![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Write archive implementation for serialization based on QSettings. More...
#include <CSettingsWriteArchive.h>
Public Types | |
typedef iser::CTextWriteArchiveBase | BaseClass |
typedef ifile::CSettingsArchiveBase | BaseClass2 |
![]() | |
typedef CWriteArchiveBase | BaseClass |
![]() | |
enum | MessageId { MI_TAG_ERROR = 0x3f320a0 , MI_TAG_SKIPPED } |
![]() | |
typedef QSettings | BaseClass |
Public Member Functions | |
CSettingsWriteArchive (const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope, const iser::IVersionInfo *versionInfoPtr=nullptr) | |
Constructor. | |
virtual bool | BeginTag (const iser::CArchiveTag &tag) |
Begin of archive tag. | |
virtual bool | BeginMultiTag (const iser::CArchiveTag &tag, const iser::CArchiveTag &subTag, int &count) |
Begin of archive tag containing set of subelements of the same type. | |
virtual bool | EndTag (const iser::CArchiveTag &tag) |
End of archive tag. | |
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 | Process (QByteArray &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. | |
![]() | |
virtual bool | IsTagSkippingSupported () const |
Check if skiping to the end of tag on EndTag is supported. | |
![]() | |
![]() | |
CSettingsArchiveBase (const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope) | |
Constructor. | |
Protected Member Functions | |
bool | WriteTextNode (const QByteArray &text) |
Write single unformatted text node. | |
![]() | |
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. | |
![]() | |
bool | EnterTag (const QByteArray &tagId) |
bool | LeaveTag (const QByteArray &tagId) |
QString | GetCurrentCountKey () const |
QString | CreateNextValueKey () |
QString | GetBaseKey () const |
Additional Inherited Members | |
![]() | |
static const CArchiveTag & | GetAcfRootTag () |
![]() | |
typedef QList< TagInfo > | OpenTagsList |
![]() | |
OpenTagsList | m_openTagsList |
QString | m_rootKey |
int | m_valuesCount |
![]() | |
static CArchiveTag | s_acfRootTag |
Write archive implementation for serialization based on QSettings.
Definition at line 21 of file CSettingsWriteArchive.h.
Definition at line 24 of file CSettingsWriteArchive.h.
Definition at line 25 of file CSettingsWriteArchive.h.
ifile::CSettingsWriteArchive::CSettingsWriteArchive | ( | const QString & | organizationName, |
const QString & | applicationName, | ||
const QString & | rootKey, | ||
QSettings::Scope | settingsScope = QSettings::UserScope, | ||
const iser::IVersionInfo * | versionInfoPtr = nullptr ) |
Constructor.
organizationName | Name of the organization. |
applicationName | Name of the application. |
rootKey | The root key. |
settingsScope | (Optional) the settings scope. |
versionInfoPtr | (Optional) pointer to the version information instance. |
|
virtual |
Begin of archive tag containing set of subelements of the same type.
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. |
Reimplemented from iser::CArchiveBase.
|
virtual |
Begin of archive tag.
tag | tag object. |
useTagSkipping | flag signalling that support of tag skipping should be enabled. |
Implements iser::IArchive.
|
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.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Implements iser::IArchive.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
virtual |
Process primitive type.
Reimplemented from iser::CTextWriteArchiveBase.
|
protectedvirtual |
Write single unformatted text node.
Implements iser::CTextWriteArchiveBase.
© Witold Gantzke and Kirill Lepskiy