Logo ROOT   6.08/07
Reference Guide
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 // //
18 // TStringLong //
19 // //
20 // ATTENTION: this class is obsolete. It's functionality has been taken //
21 // over by TString. //
22 // //
23 // The long string class (unlimited number of chars in I/O). //
24 // Class TString can contain long strings, but it can read/write only //
25 // 255 characters. //
26 // //
27 //////////////////////////////////////////////////////////////////////////
28 
29 #ifndef ROOT_TString
30 #include "TString.h"
31 #endif
32 
33 class TStringLong : public TString {
34 
35 public:
36  TStringLong(); // Null string
37  TStringLong(Ssiz_t ic); // Suggested capacity
38  TStringLong(const TString& s); // Copy constructor
39 
40  TStringLong(const char *s); // Copy to embedded null
41  TStringLong(const char *s, Ssiz_t n); // Copy past any embedded nulls
42  TStringLong(char c);
43 
44  TStringLong(char c, Ssiz_t s);
45 
46  TStringLong(const TSubString& sub);
47  virtual ~TStringLong();
48 
49  // ROOT I/O interface
50  virtual void FillBuffer(char *&buffer) const;
51  virtual void ReadBuffer(char *&buffer);
52  virtual Int_t Sizeof() const;
53 
54  ClassDef(TStringLong,1) //Long string class (more than 255 chars)
55 };
56 
57 #endif
A zero length substring is legal.
Definition: TString.h:83
return c
virtual Int_t Sizeof() const
Return the sizeof the string.
ATTENTION: this class is obsolete.
Definition: TStringLong.h:33
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
virtual void ReadBuffer(char *&buffer)
Read this string from the buffer.
#define ClassDef(name, id)
Definition: Rtypes.h:254
TStringLong()
constructor
Definition: TStringLong.cxx:32
int Ssiz_t
Definition: RtypesCore.h:63
virtual void FillBuffer(char *&buffer) const
Fill buffer.
Definition: TStringLong.cxx:95
virtual ~TStringLong()
destructor
Definition: TStringLong.cxx:88
const Int_t n
Definition: legend1.C:16