Main Page   Class Hierarchy   Compound List   File List   Compound Members  

TBuffer.hh

00001 #ifndef _T_BUFFER_HH
00002 #define _T_BUFFER_HH
00003 
00004 #include "TString.hh"
00005 
00006 
00015 class TBuffer
00016 {
00017 public:
00018   
00022   TBuffer ();
00023   
00027   TBuffer (const TBuffer& buf);
00028   
00032   ~TBuffer ();
00033   
00037   inline void Append (const char* cs)
00038   {
00039     Append (cs, TString::Length (cs));
00040   }
00041   
00045   void Append (const char* cs, int n);
00046   
00052   inline char* Data () const { return myMemory; }
00053   
00057   void Clear () { myUsedMemory = 0; }
00058   
00062   inline int Length () const { return myUsedMemory; }
00063   
00064 private:
00065   
00066   // Base pointer to memory
00067   char *myMemory;
00068   
00069   // Memory used
00070   int myUsedMemory;
00071   
00072   // Memory allocated
00073   int myAvailMemory;
00074 };
00075 
00076 #endif // _T_BUFFER_HH

Generated on Sat Feb 15 18:37:16 2003 for Tools by doxygen1.3-rc2