Mobile API Reference  MicroStrategy 2019
DataStreamHeader.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : DataStreamHeader.h
3 // AUTHOR : Yi Luo
4 // CREATION : 2002-09-05
5 //
6 // Copyright (C) MicroStrategy, Inc. 2002
7 //==============================================================================================
8 
9 #ifndef Serialization_DataStreamHeader_H
10 #define Serialization_DataStreamHeader_H
11 
14 
15 namespace MSerialization
16 {
17 
19 {
20 public:
21  DataStreamHeader() throw();
22  virtual ~DataStreamHeader() throw();
23 
24  void Load(unsigned char* ipReadMemory);
25  void Load(ReadByteStream * ipReadStream);
26  void Save(WriteByteStream * ipWriteStream) const;
27 
28  bool GetLongVersion() const throw();
29  bool GetRawFormat() const throw();
30  bool IsBigEndian() const throw();
31 
32  unsigned short GetHeaderValue() const throw();
33  void SetHeaderValue(unsigned short iValue) throw();
34 
35  Int32 GetHeaderSize() throw();
36 #ifndef __ANDROID__
37  MBase::ReturnString GetKey() const throw();
38  void SetKey(const char* ipcKey) throw();
39 #endif
40 private:
41 
42  void Write(unsigned short iValue, WriteByteStream * ipoStream) const;
43  unsigned short Read(unsigned char** ioppMemory);
44  unsigned short Read(ReadByteStream * ipReadStream);
45 
46  unsigned short mValue;
48 };
49 
50 };
51 
52 #endif // Serialization_DataStreamHeader_H
MBase::ReturnString GetKey() const
Definition: ReadByteStream.h:30
void Save(WriteByteStream *ipWriteStream) const
Definition: ReturnString.h:36
void Load(unsigned char *ipReadMemory)
void SetKey(const char *ipcKey)
#define Int32
Definition: BasicTypes.h:20
Definition: DataStreamHeader.h:18
unsigned short GetHeaderValue() const
void SetHeaderValue(unsigned short iValue)
Definition: MultiReadStream.h:23
Definition: WriteByteStream.h:51