Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TStringLong.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 15/11/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TStringLong
13 #define ROOT_TStringLong
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TStringLong //
18 // //
19 // ATTENTION: this class is obsolete. It's functionality has been taken //
20 // over by TString. //
21 // //
22 // The long string class (unlimited number of chars in I/O). //
23 // Class TString can contain long strings, but it can read/write only //
24 // 255 characters. //
25 // //
26 //////////////////////////////////////////////////////////////////////////
27 
28 #include "TString.h"
29 
30 class TStringLong : public TString {
31 
32 public:
33  TStringLong(); // Null string
34  TStringLong(Ssiz_t ic); // Suggested capacity
35  TStringLong(const TString& s); // Copy constructor
36 
37  TStringLong(const char *s); // Copy to embedded null
38  TStringLong(const char *s, Ssiz_t n); // Copy past any embedded nulls
39  TStringLong(char c);
40 
41  TStringLong(char c, Ssiz_t s);
42 
43  TStringLong(const TSubString& sub);
44  virtual ~TStringLong();
45 
46  // ROOT I/O interface
47  virtual void FillBuffer(char *&buffer) const;
48  virtual void ReadBuffer(char *&buffer);
49  virtual Int_t Sizeof() const;
50 
51  ClassDef(TStringLong,1) //Long string class (more than 255 chars)
52 } R__ALWAYS_SUGGEST_ALTERNATIVE("TString");
53 
54 #endif