Mobile API Reference  MicroStrategy 2019
WriteBlockStream.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : WriteBlockStream.h
3 // AUTHOR : Yi Luo
4 // PROJECT : PDSerialization
5 //
6 // CREATION : 2002-07-15
7 // Copyright (C) MicroStrategy, Inc. 2002
8 //==============================================================================================
9 #ifndef Serialization_WriteBlockStream_H
10 #define Serialization_WriteBlockStream_H
11 
12 #include "PDSerialization.h"
14 #ifndef __ANDROID__
16 #endif
17 namespace MSerialization
18 {
38  {
39  public:
41  virtual void StartList()=0;
42 
45  virtual void ContinueList()=0;
46 
47  protected:
48  virtual ~WriteListStream() throw() {};
49  };
50 
64  {
65  public:
66 
73  virtual void WriteBlockHeader(unsigned short iBlockType)=0;
74 
77  virtual void FinishWriteBlock()=0;
78 
83  virtual void FinishWriteBlock(unsigned short iBlockType)=0;
84 
85  protected:
86  virtual ~WriteBlockStream() throw() {};
87 
88  };
89 
91 
99  unsigned short iHeader = 1);
100 
110  unsigned short iHeader = 1);
111 
120  unsigned short iHeader = 1);
121 
135  unsigned short iHeader = 1);
136 
152  MDataType::BinaryCollection* ipBinaries,
153  MBase::MemoryContract* ipMemCon=0);
154 
169  unsigned short header=1);
171  unsigned short header=1);
173  unsigned short header=1);
175  unsigned short header=1);
176 
184 
185 #ifndef __ANDROID__
186 
190  unsigned short iHeader = 1,
192  const char* ipcKey=NULL);
197  unsigned short iHeader = 1,
199  const char* ipcKey=NULL);
200 #endif
201 }
202 
203 #endif // Serialization_WriteBlockStream_H
Definition: EncryptorDecryptor.h:31
Definition: BaseMemoryContract.h:40
EncryptionVersion
Encryption algorithm. For details, do a google search of RC4 and/or TEA.
Definition: EncryptorDecryptor.h:25
Definition: BinaryCollection.h:23
DLL_PDSERIALIZATION_EXIM WriteBlockStream * CreateRawWriteBlockStream(MBase::MemoryContract *ipMemCon=0, unsigned short iHeader=1)
DLL_PDSERIALIZATION_EXIM WriteBlockStream * ConvertFile2WriteBlockStream(MFileSystem::UpdateableFile::Ptr &iFilePtr, unsigned short header=1)
DLL_PDSERIALIZATION_EXIM WriteBlockStream * CreateSafeRawWriteBlockStream(MBase::MemoryContract *ipMemCon=0, unsigned short iHeader=1)
DLL_PDSERIALIZATION_EXIM WriteBlockStream * ConvertBinaries2WriteBlockStream(MDataType::BinaryCollection *ipBinaries, MBase::MemoryContract *ipMemCon=0)
MBase::StrongPtr< WriteBlockStream, MBase::DeleteOperatorGeneric< WriteBlockStream > > WriteBlockStreamPtr
Definition: WriteBlockStream.h:90
DLL_PDSERIALIZATION_EXIM WriteBlockStream * CreateSafeWriteBlockStream(MBase::MemoryContract *ipMemCon=0, unsigned short iHeader=1)
virtual ~WriteBlockStream()
Definition: WriteBlockStream.h:86
Definition: WriteBlockStream.h:63
DLL_PDSERIALIZATION_EXIM WriteBlockStream * CreatePartialEncryptedSafeWriteBlockStream(MBase::MemoryContract *ipMemCon=0, unsigned short iHeader=1, MEncryptor::EncryptionVersion iEncryptionVersion=MEncryptor::AES, const char *ipcKey=NULL)
Definition: WriteBlockStream.h:37
Definition: StrongPtr.h:50
#define DLL_PDSERIALIZATION_EXIM
Definition: PDSerialization.h:21
DLL_PDSERIALIZATION_EXIM WriteBlockStream * CreateWriteBlockStream(MBase::MemoryContract *ipMemCon=0, unsigned short iHeader=1)
Definition: WriteDataStream.h:55
Definition: MultiReadStream.h:23
#define NULL
Definition: Null.h:10
virtual ~WriteListStream()
Definition: WriteBlockStream.h:48