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
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
30class R__DEPRECATED(7, 00, "Use TString instead") 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 void FillBuffer(char *&buffer) const override;
48 void ReadBuffer(char *&buffer) override;
49 Int_t Sizeof() const override;
50
51 ClassDefOverride(TStringLong,1) //Long string class (more than 255 chars)
52};
53
54#endif
#define R__DEPRECATED(MAJOR, MINOR, REASON)
Definition RConfig.hxx:504
#define c(i)
Definition RSha256.hxx:101
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:59
int Ssiz_t
String size (currently int)
Definition RtypesCore.h:81
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ATTENTION: this class is obsolete.
Basic string class.
Definition TString.h:138
friend class TStringLong
Definition TString.h:140
virtual void FillBuffer(char *&buffer) const
Copy string into I/O buffer.
Definition TString.cxx:1316
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Definition TString.cxx:1407
virtual void ReadBuffer(char *&buffer)
Read string from I/O buffer.
Definition TString.cxx:1337
A zero length substring is legal.
Definition TString.h:84
const Int_t n
Definition legend1.C:16