ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TObjString.h
Go to the documentation of this file.
1
// @(#)root/base:$Id$
2
// Author: Fons Rademakers 12/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_TObjString
13
#define ROOT_TObjString
14
15
16
//////////////////////////////////////////////////////////////////////////
17
// //
18
// TObjString //
19
// //
20
// Collectable string class. This is a TObject containing a TString. //
21
// //
22
//////////////////////////////////////////////////////////////////////////
23
24
#include "
TObject.h
"
25
#include "
TString.h
"
26
27
28
class
TObjString :
public
TObject {
29
30
private
:
31
TString fString;
// wrapped TString
32
33
public
:
34
TObjString(
const
char
*s =
""
) : fString(s) { }
35
~TObjString();
36
Int_t Compare(
const
TObject *obj)
const
;
37
TString CopyString()
const
{
return
fString; }
38
const
char
*GetName()
const
{
return
fString; }
39
ULong_t Hash()
const
{
return
fString.Hash(); }
40
void
FillBuffer(
char
*&buffer) { fString.FillBuffer(buffer); }
41
void
Print(Option_t *)
const
{ Printf(
"TObjString = %s"
, (
const
char
*)fString); }
42
Bool_t IsSortable()
const
{
return
kTRUE; }
43
Bool_t IsEqual(
const
TObject *obj)
const
;
44
void
ReadBuffer(
char
*&buffer) { fString.ReadBuffer(buffer); }
45
void
SetString(
const
char
*s) { fString = s; }
46
const
TString &GetString()
const
{
return
fString; }
47
Int_t Sizeof()
const
{
return
fString.Sizeof(); }
48
TString &String() {
return
fString; }
49
50
ClassDef(TObjString,1)
//Collectable string class
51
};
52
53
#endif
54
TString.h
TObject.h
core
base
inc
TObjString.h
Generated on Tue May 5 2020 14:02:19 for ROOT by
1.8.5