CSettingsWriteArchive.h
Go to the documentation of this file.
1 #ifndef iqt_CSettingsWriteArchive_included
2 #define iqt_CSettingsWriteArchive_included
3 
4 
5 // ACF includes
8 
9 
10 namespace iqt
11 {
12 
13 
20 {
21 public:
24 
35  const QString& organizationName,
36  const QString& applicationName,
37  const QString& rootKey,
38  QSettings::Scope settingsScope = QSettings::UserScope,
39  const iser::IVersionInfo* versionInfoPtr = NULL);
40 
41  // reimplemented (iser::IArchive)
42  using BaseClass::Process;
43  virtual bool BeginTag(const iser::CArchiveTag& tag);
44  virtual bool BeginMultiTag(const iser::CArchiveTag& tag, const iser::CArchiveTag& subTag, int& count);
45  virtual bool EndTag(const iser::CArchiveTag& tag);
46  virtual bool Process(QString& value);
47 
48 protected:
49  // reimplemented (iser::CTextWriteArchiveBase)
50  bool WriteTextNode(const QByteArray& text);
51 };
52 
53 
54 } // namespace iqt
55 
56 
57 #endif // !iqt_CSettingsWriteArchive_included
58 
59 
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.
iqt::CSettingsArchiveBase BaseClass2
virtual bool BeginTag(const iser::CArchiveTag &tag)
Begin of archive tag.
Write archive implementation for serialization based on QSettings.
Provides access to version information.
Definition: IVersionInfo.h:22
iser::CTextWriteArchiveBase BaseClass
virtual bool Process(QString &value)
Process primitive type.
CSettingsWriteArchive(const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope, const iser::IVersionInfo *versionInfoPtr=NULL)
Constructor.
Basic implementation for an archive used Qt settings implementation as persistence medium...
bool WriteTextNode(const QByteArray &text)
Write single unformatted text node.
#define NULL
Definition: istd.h:64
virtual bool EndTag(const iser::CArchiveTag &tag)
End of archive tag.
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21
virtual bool Process(bool &value)
Process primitive type.
Common archive implementation of text-based storing archives.

© 2007-2017 Witold Gantzke and Kirill Lepskiy