CTextWriteArchiveBase.h
Go to the documentation of this file.
1 #ifndef iser_CTextWriteArchiveBase_included
2 #define iser_CTextWriteArchiveBase_included
3 
4 
5 // Qt includes
6 #include <QtCore/QTextStream>
7 #include <QtCore/QIODevice>
8 
9 // ACF includes
10 #include <iser/CWriteArchiveBase.h>
11 
12 
13 namespace iser
14 {
15 
16 
21 {
22 public:
24 
25  // reimplemented (iser::IArchive)
26  virtual bool Process(bool& value);
27  virtual bool Process(char& value);
28  virtual bool Process(quint8& value);
29  virtual bool Process(qint8& value);
30  virtual bool Process(quint16& value);
31  virtual bool Process(qint16& value);
32  virtual bool Process(quint32& value);
33  virtual bool Process(qint32& value);
34  virtual bool Process(quint64& value);
35  virtual bool Process(qint64& value);
36  virtual bool Process(float& value);
37  virtual bool Process(double& value);
38  virtual bool Process(QByteArray& value);
39  virtual bool ProcessData(void* dataPtr, int size);
40 
41 protected:
42  explicit CTextWriteArchiveBase(const IVersionInfo* versionInfoPtr);
43 
47  virtual bool WriteTextNode(const QByteArray& text) = 0;
48 };
49 
50 
51 } // namespace iser
52 
53 
54 #endif // !iser_CTextWriteArchiveBase_included
55 
56 
Provides access to version information.
Definition: IVersionInfo.h:22
Basic implementation of an abstract archive for data writting.
virtual bool WriteTextNode(const QByteArray &text)=0
Write single unformatted text node.
virtual bool ProcessData(void *dataPtr, int size)
Process binary data block.
virtual bool Process(bool &value)
Process primitive type.
Common archive implementation of text-based storing archives.
CTextWriteArchiveBase(const IVersionInfo *versionInfoPtr)

© 2007-2017 Witold Gantzke and Kirill Lepskiy