// $Revision: 1.5 $ #ifndef TaligentSamples_MIMEDATASTREAM #define TaligentSamples_MIMEDATASTREAM //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: MIMEDataStream.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_FOREIGNDATA #include #endif #ifndef Taligent_MEMORY #include #endif //============================================================================= // TMIMEDataStream class TMIMEDataStream : public TForeignData { public: MCollectibleDeclarationsMacro(TMIMEDataStream); public: TMIMEDataStream(TChunkyStream* adoptStream, const TMIMEForeignDataType& type); virtual ~TMIMEDataStream(); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual const TForeignDataType* GetDataType() const; virtual TRandomAccessStream* CreateStreamForReading(TMemoryHeap* heap = 0) const; virtual TRandomAccessStream* CreateStreamForWriting(unsigned long initialSize = 0, TMemoryHeap* heap = 0); virtual TTranscoder* CreateDefaultTranscoder(TMemoryHeap* heap = 0) const; protected: TMIMEDataStream(); TMIMEDataStream(const TMIMEDataStream& source); TMIMEDataStream& operator=(const TMIMEDataStream& source); private: enum {kOriginalVersion}; TChunkyStream* fDataStream; TMIMEForeignDataType fDataType; }; #endif