CSettingsReadArchive.h
Go to the documentation of this file.
1 #ifndef iqt_CSettingsReadArchive_included
2 #define iqt_CSettingsReadArchive_included
3 
4 
5 // ACF includes
8 
9 
10 namespace iqt
11 {
12 
19 {
20 public:
23 
33  const QString& organizationName,
34  const QString& applicationName,
35  const QString& rootKey,
36  QSettings::Scope settingsScope = QSettings::UserScope);
37 
38  // reimplemented (iser::IArchive)
39  using BaseClass::Process;
40 
41  virtual bool BeginTag(const iser::CArchiveTag& tag);
42  virtual bool BeginMultiTag(const iser::CArchiveTag& tag, const iser::CArchiveTag& subTag, int& count);
43  virtual bool EndTag(const iser::CArchiveTag& tag);
44  virtual bool Process(QString& value);
45 
46 protected:
47  bool ReadStringNode(QString& text);
48 
49  // reimplemented (iser::CTextReadArchiveBase)
50  virtual bool ReadTextNode(QByteArray& text);
51 };
52 
53 
54 } // namespace iqt
55 
56 
57 #endif // !iqt_CSettingsReadArchive_included
58 
59 
The read archive used global system settings mechansim (by example Windows registry or INI file) as m...
virtual bool EndTag(const iser::CArchiveTag &tag)
End of archive tag.
virtual bool Process(bool &value)
Process primitive type.
CSettingsReadArchive(const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope)
Constructor.
bool ReadStringNode(QString &text)
Basic implementation for an archive used Qt settings implementation as persistence medium...
virtual bool ReadTextNode(QByteArray &text)
Read single unformatted text node.
Common archive implementation of text-based reading archives.
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 Process(QString &value)
Process primitive type.
virtual bool BeginTag(const iser::CArchiveTag &tag)
Begin of archive tag.
CSettingsArchiveBase BaseClass2
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21
iser::CTextReadArchiveBase BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy