#ifndef TextBuf_HH #define TextBuf_HH ////////////////////////////////////////////////////////////////////// //! file="amma/BasType/TextBuf.hh" //! lib=Mtype //! author="Radek Marik" //! docentry="Basic Types.IO" //! rcsid="$Id: TextBuf.hh,v 1.11 1999/08/10 15:05:14 ees1cg Exp $" //! date="06/08/95" #ifdef BORLAND #include #else #ifdef VISUAL_CPP #include #else #include #endif #endif //! userlevel=Obsolete //: The class TextBufferC serves as a text stream buffer. // Use OStrStreamC instead, see 'Basic Types.IO' class TextBufferC: public ostrstream { public: typedef int LenghtT; // the length of the buffer enum {MAX_LENGHT = 1000}; public: TextBufferC(LenghtT max = MAX_LENGHT); // Creates the buffer space. ~TextBufferC(); // Destructor. inline operator const char * () const; // Returns the pointer to the beginning of the buffer storing // an text message. // inline operator char * (); // Returns the pointer to the beginning of the buffer storing // an text message. void RewindToStart(); // Resets the textbuffer to be as just constructed. private: TextBufferC(const TextBufferC & msg); // It is not possible to create the copy of the message. const TextBufferC & operator=(const TextBufferC & msg); // It is not possible to assign to the message. private: char * buff; // The buffer containing the text of a message. }; //==================================================================== //======= TextBufferC ================================================ //==================================================================== inline TextBufferC::operator const char * () const //========================================= { return buff; } #if 0 inline TextBufferC::operator char * () //============================= { return buff; } #endif // IAPS - Image analysis program system. // End of include file TextBuf.hh #endif