CTextReadArchiveBase.h
Go to the documentation of this file.
1 #ifndef iser_CTextReadArchiveBase_included
2 #define iser_CTextReadArchiveBase_included
3 
4 
5 // Qt includes
6 #include <QtCore/QTextStream>
7 
8 // ACF includes
10 
11 
12 namespace iser
13 {
14 
15 
20 {
21 public:
23 
24  // reimplemented (iser::IArchive)
25  using BaseClass::Process;
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:
45  virtual bool ReadTextNode(QByteArray& text) = 0;
46 };
47 
48 
49 } // namespace iser
50 
51 
52 #endif // !iser_CTextReadArchiveBase_included
53 
54 
Basic implementation of an abstract archive for data reading.
virtual bool Process(bool &value)
Process primitive type.
virtual bool ProcessData(void *dataPtr, int size)
Process binary data block.
virtual bool ReadTextNode(QByteArray &text)=0
Read single unformatted text node.
virtual bool Process(bool &value)=0
Process primitive type.
Common archive implementation of text-based reading archives.

© 2007-2017 Witold Gantzke and Kirill Lepskiy