JG ROOT Tools libraries  version 5.0 - august 2014
RString Class Reference

#include <RString.hh>

Inheritance diagram for RString:

Public Member Functions

 RString ()
 
 RString (const string &s)
 
 RString (const char *s)
 
 RString (const RString &s)
 
virtual ~RString ()
 
RStringoperator= (const RString &s)
 
RStringoperator= (const string &s)
 
RStringoperator= (const char *s)
 
Color_t ReadColor (const Color_t default_val=0) const
 
Color_t ReadSubColor (size_t &ifirst, size_t &ilast, const size_t index=0, const Color_t default_val=0, const string &separ=GSTRING_DEFAULT_SPACE) const
 
 ClassDef (RString, 0)
 

Private Member Functions

 GObject (RString)
 

Detailed Description

Class defining new functions for the Gtring class.

Constructor & Destructor Documentation

RString::RString ( )
inline

Default constructor: empty string.

Referenced by operator=().

RString::RString ( const string &  s)
inline

Constructor that copies a C++ string.

Parameters
sstring to copy
RString::RString ( const char *  s)
inline

Constructor that copies a C-like string.

Parameters
sC string
RString::RString ( const RString s)
inline

Copy constructor.

Parameters
sstring to copy
RString::~RString ( )
inlinevirtual

Destructor.

Member Function Documentation

RString::GObject ( RString  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RString & RString::operator= ( const RString s)
inline

Affectation operator.

Parameters
sstring to copy
RString & RString::operator= ( const string &  s)
inline

Affectation operator of a C++ string.

Parameters
sstring to copy
RString & RString::operator= ( const char *  s)
inline

Affectation operator of a character array.

Parameters
sstring to copy

References RString().

Color_t RString::ReadColor ( const Color_t  default_val = 0) const
inline

Read a ROOT color code in a string, either as an integer color code, either as a #RRGGBB code, where RR, GG and BB are the hexadecimal values for color components.

Parameters
default_valdefault value in case of error

References RGetColor().

Color_t RString::ReadSubColor ( size_t &  ifirst,
size_t &  ilast,
const size_t  index = 0,
const Color_t  default_val = 0,
const string &  separ = GSTRING_DEFAULT_SPACE 
) const

Read a ROOT color code in a word extracted from a string, either as an integer color code, either as a #RRGGBB code, where RR, GG and BB are the hexadecimal values for color components.

Parameters
default_valdefault value in case of error
ifirstposition of the first character of the color code (output)
ilastposition of the last character of the color code (output)
indexread start position
default_valdefault value in case of error
separstring containing separation characters

References RGetColor().

RString::ClassDef ( RString  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: