CBinaryReadArchiveBase.h
Go to the documentation of this file.
1 #ifndef iser_CBinaryReadArchiveBase_included
2 #define iser_CBinaryReadArchiveBase_included
3 
4 
5 // ACF includes
7 
8 
9 namespace iser
10 {
11 
12 
17 {
18 public:
20 
21  enum MessageId
22  {
23  MI_STRING_TOO_LONG = 0x3f320b0
24  };
25 
26  // reimplemented (iser::IArchive)
27  virtual bool BeginTag(const CArchiveTag& tag);
28  virtual bool EndTag(const CArchiveTag& tag);
29  virtual bool Process(bool& value);
30  virtual bool Process(char& value);
31  virtual bool Process(quint8& value);
32  virtual bool Process(qint8& value);
33  virtual bool Process(quint16& value);
34  virtual bool Process(qint16& value);
35  virtual bool Process(quint32& value);
36  virtual bool Process(qint32& value);
37  virtual bool Process(quint64& value);
38  virtual bool Process(qint64& value);
39  virtual bool Process(float& value);
40  virtual bool Process(double& value);
41  virtual bool Process(QByteArray& value);
42  virtual bool Process(QString& value);
43 
44 protected:
48  virtual int GetMaxStringLength() const;
49 };
50 
51 
52 } // namespace iser
53 
54 
55 #endif // !iser_CBinaryReadArchiveBase_included
56 
virtual bool EndTag(const CArchiveTag &tag)
End of archive tag.
virtual int GetMaxStringLength() const
Get maximal allowed string size.
Basic implementation of an abstract archive for data reading.
Base class for archive implementations reading data based on its binary representation.
virtual bool BeginTag(const CArchiveTag &tag)
Begin of archive tag.
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21
virtual bool Process(bool &value)
Process primitive type.

© 2007-2017 Witold Gantzke and Kirill Lepskiy