Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TStringLong.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Rene Brun 15/11/95
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
30class TStringLong : public TString {
31
32public:
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
#define R__ALWAYS_SUGGEST_ALTERNATIVE(ALTERNATIVE)
Definition RConfig.hxx:527
#define c(i)
Definition RSha256.hxx:101
#define ClassDef(name, id)
Definition Rtypes.h:325
ATTENTION: this class is obsolete.
Definition TStringLong.h:30
virtual ~TStringLong()
destructor
virtual void FillBuffer(char *&buffer) const
Fill buffer.
TStringLong()
constructor
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:136
A zero length substring is legal.
Definition TString.h:82
const Int_t n
Definition legend1.C:16