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 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)
53
54#endif
#define R__ALWAYS_SUGGEST_ALTERNATIVE(ALTERNATIVE)
Definition RConfig.hxx:530
#define c(i)
Definition RSha256.hxx:101
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
ATTENTION: this class is obsolete.
Definition TStringLong.h:30
virtual ~TStringLong()
destructor
void FillBuffer(char *&buffer) const override
Fill buffer.
TStringLong()
constructor
Int_t Sizeof() const override
Return the sizeof the string.
void ReadBuffer(char *&buffer) override
Read this string from the buffer.
Basic string class.
Definition TString.h:139
A zero length substring is legal.
Definition TString.h:85
const Int_t n
Definition legend1.C:16