// $Revision: 1.1 $ // Copyright © 1995 Taligent, Inc. All rights reserved. // Taligent Confidential #ifndef Taligent_STREAMTOMEM #define Taligent_STREAMTOMEM // TStreamToMem: Will test Flatten and Resurrect for aClass. // if it fails it will individually check the streaming operators template class TStreamToMem { public: TStreamToMem(aClass *theObject, const TStandardText& className); virtual ~TStreamToMem(); aClass* Test(); void PrintError(const char*); protected: void WriteToMem(); aClass* ReadFromMem(); private: aClass *fObjectToBeStreamed; TGrowingChunkyStream fMemStream; const TStandardText fClassName; }; // A wrapper class which creates an intance of TStreamToMem and calls Test on it. template class TStreamCopyAssignmentTest { public: TStreamCopyAssignmentTest(aClass *theObject, TStandardText className); private: void PrintError(const char*, TStandardText); }; #ifndef Taligent_STREAMTOMemIMP #include "StreamToMemImp.h" #endif #endif