8 #ifndef Serialization_WriteByteStream_H 9 #define Serialization_WriteByteStream_H 17 #include "PDCHeader/PDCvector" 24 class WriteByteStream;
25 class WriteByteStreamFileImpl;
26 class WriteByteStreamImpl;
59 virtual void Delete() throw() {
delete this; } ;
62 virtual void Write(
const unsigned char * pData,
unsigned Int32 cb,
ReservedPosition* ipReservedOffset = 0 ) = 0;
64 virtual void Abandon() = 0;
68 virtual void CommitStream() = 0;
72 virtual Int64 GetSize() throw() = 0;
74 virtual
void Pack() = 0;
76 virtual
void SetTimeout(
Int64 iTimeoutInMilliSeconds) = 0;
81 unsigned Int32 iBlockSize = 512,
82 MBase::MemoryContract* ipMemoryContract =
NULL);
87 unsigned Int32 iBlockSize = 1024);
93 #endif // Serialization_WriteByteStream_H virtual void Delete()
Definition: WriteByteStream.h:59
MBase::ReturnPtr< WriteByteStream, MBase::DeleteOperatorGeneric< WriteByteStream > > ReturnPtr
Definition: WriteByteStream.h:56
Definition: WriteByteStreamFileImpl.h:19
MBase::StrongPtr< WriteByteStream, MBase::DeleteOperatorGeneric< WriteByteStream > > Ptr
Definition: WriteByteStream.h:55
DLL_PDSERIALIZATION_EXIM WriteByteStream::ReturnPtr CreateWriteByteStream(MDataType::BinaryCollection *ipBins, unsigned Int32 iBlockSize=512, MBase::MemoryContract *ipMemoryContract=NULL)
StreamType
Enumeration of different stream types.
Definition: Facilities.h:40
#define Int64
Definition: BasicTypes.h:36
Definition: BigDecimal.h:18
friend class WriteSharedMemByteStreamImpl
Definition: WriteByteStream.h:37
~ReservedPosition()
Definition: WriteByteStream.h:32
#define Int32
Definition: BasicTypes.h:20
Definition: WriteByteStreamImpl.h:28
Definition: Allocator.h:47
void * mpAddr
Definition: WriteByteStream.h:41
Definition: StrongPtr.h:50
ULONG cb
Definition: Msi_objbase.h:25
#define DLL_PDSERIALIZATION_EXIM
Definition: PDSerialization.h:21
virtual ~WriteByteStream()
Definition: WriteByteStream.h:58
Definition: SharedMemory.h:59
Definition: MultiReadStream.h:23
Definition: WriteByteStream.h:51
Int64 mFilePos
Definition: WriteByteStream.h:42
#define NULL
Definition: Null.h:10
Definition: WriteByteStream.h:28
Definition: StrongObjects.h:21
Definition: ReturnPtr.h:22