Logo ROOT  
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 // 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)
53 
54 #endif
c
#define c(i)
Definition: RSha256.hxx:101
TStringLong
ATTENTION: this class is obsolete.
Definition: TStringLong.h:30
n
const Int_t n
Definition: legend1.C:16
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
TStringLong::Sizeof
virtual Int_t Sizeof() const
Return the sizeof the string.
Definition: TStringLong.cxx:124
TString
Basic string class.
Definition: TString.h:136
TString.h
TStringLong::ReadBuffer
virtual void ReadBuffer(char *&buffer)
Read this string from the buffer.
Definition: TStringLong.cxx:108
TSubString
A zero length substring is legal.
Definition: TString.h:82
R__ALWAYS_SUGGEST_ALTERNATIVE
TStringLong TString R__ALWAYS_SUGGEST_ALTERNATIVE("TString")
TStringLong::TStringLong
TStringLong()
constructor
Definition: TStringLong.cxx:33
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TStringLong::FillBuffer
virtual void FillBuffer(char *&buffer) const
Fill buffer.
Definition: TStringLong.cxx:96
TStringLong::~TStringLong
virtual ~TStringLong()
destructor
Definition: TStringLong.cxx:89
int