Logo ROOT   6.16/01
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#include "TString.h"
30
31class TStringLong : public TString {
32
33public:
34 TStringLong(); // Null string
35 TStringLong(Ssiz_t ic); // Suggested capacity
36 TStringLong(const TString& s); // Copy constructor
37
38 TStringLong(const char *s); // Copy to embedded null
39 TStringLong(const char *s, Ssiz_t n); // Copy past any embedded nulls
40 TStringLong(char c);
41
42 TStringLong(char c, Ssiz_t s);
43
44 TStringLong(const TSubString& sub);
45 virtual ~TStringLong();
46
47 // ROOT I/O interface
48 virtual void FillBuffer(char *&buffer) const;
49 virtual void ReadBuffer(char *&buffer);
50 virtual Int_t Sizeof() const;
51
52 ClassDef(TStringLong,1) //Long string class (more than 255 chars)
53};
54
55#endif
#define c(i)
Definition: RSha256.hxx:101
int Int_t
Definition: RtypesCore.h:41
int Ssiz_t
Definition: RtypesCore.h:63
#define ClassDef(name, id)
Definition: Rtypes.h:324
ATTENTION: this class is obsolete.
Definition: TStringLong.h:31
virtual ~TStringLong()
destructor
Definition: TStringLong.cxx:88
virtual void FillBuffer(char *&buffer) const
Fill buffer.
Definition: TStringLong.cxx:95
TStringLong()
constructor
Definition: TStringLong.cxx:32
virtual void ReadBuffer(char *&buffer)
Read this string from the buffer.
virtual Int_t Sizeof() const
Return the sizeof the string.
Basic string class.
Definition: TString.h:131
A zero length substring is legal.
Definition: TString.h:77
const Int_t n
Definition: legend1.C:16
static constexpr double s