// $Revision: 1.5 $ #ifndef TaligentSamples_XBM #define TaligentSamples_XBM //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: XBM.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_STANDARDEXCEPTION #include #endif class TStream; class TModifiableImage; //============================================================================= // TXBMConverter class TXBMConverter { public: class TXBMConverterException : public TStandardException { public: TaligentTypeExtensionDeclarationsMacro(TXBMConverter::TXBMConverterException) public: enum ErrorCode { kNotXBM = 0, kBadData = 1 }; TXBMConverterException(); TXBMConverterException(ErrorCode); TXBMConverterException(const TXBMConverterException&); virtual ~TXBMConverterException(); virtual void GetDescription(TText &); ErrorCode GetErrorCode() const; virtual TStream& operator >>=(TStream &toStream) const; virtual TStream& operator <<=(TStream &fromStream); virtual void Throw() const; private: ErrorCode fCode; }; TXBMConverter(); TModifiableImage* CreateFrom(TStream& XBMStream); }; #endif