TStringLong.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: TStringLong.h 20877 2007-11-19 11:17:07Z rdm $
00002 // Author: Rene Brun   15/11/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TStringLong
00013 #define ROOT_TStringLong
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TStringLong                                                          //
00019 //                                                                      //
00020 // ATTENTION: this class is obsolete. It's functionality has been taken //
00021 // over by TString.                                                     //
00022 //                                                                      //
00023 // The long string class (unlimited number of chars in I/O).            //
00024 // Class TString can contain long strings, but it can read/write only   //
00025 // 255 characters.                                                      //
00026 //                                                                      //
00027 //////////////////////////////////////////////////////////////////////////
00028 
00029 #ifndef ROOT_TString
00030 #include "TString.h"
00031 #endif
00032 
00033 class TStringLong : public TString {
00034 
00035 public:
00036    TStringLong();                       // Null string
00037    TStringLong(Ssiz_t ic);              // Suggested capacity
00038    TStringLong(const TString& s);       // Copy constructor
00039 
00040    TStringLong(const char *s);              // Copy to embedded null
00041    TStringLong(const char *s, Ssiz_t n);    // Copy past any embedded nulls
00042    TStringLong(char c);
00043 
00044    TStringLong(char c, Ssiz_t s);
00045 
00046    TStringLong(const TSubString& sub);
00047    virtual ~TStringLong();
00048 
00049    // ROOT I/O interface
00050    virtual void     FillBuffer(char *&buffer);
00051    virtual void     ReadBuffer(char *&buffer);
00052    virtual Int_t    Sizeof() const;
00053 
00054    ClassDef(TStringLong,1)  //Long string class (more than 255 chars)
00055 };
00056 
00057 #endif

Generated on Tue Jul 5 14:10:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1