JG ROOT Tools libraries  version 5.0 - august 2014
RString.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RString.hh
3  *
4  * Include file for class RString.
5  */
6 //======================================================================
7 
8 
9 #ifndef R_STRING_HH
10 #define R_STRING_HH
11 
12 #include <string>
13 #include <iostream>
14 #include <sstream>
15 #include "GString.hh"
16 
17 #include <Rtypes.h>
18 #include <TColor.h>
19 #include <TAttFill.h>
20 
21 #include "GStringFunctions.hh"
22 #include "RBaseFunctions.hh"
23 
24 //======================================================================
25 /*! \class RString
26  *
27  * Class defining new functions for the Gtring class.
28  */
29 class RString : public GString
30 {
31  //------------------------------------------------------------
32  /*! \object_doc{RString} */
34  //------------------------------------------------------------
35 
36  protected:
37 
38  public:
39  //------------------------------------------------------------
40  // Constructors / affectation / destructor
41  RString ( ); // inline
42  RString ( const string &s ); // inline
43  RString ( const char *s ); // inline
44  RString ( const RString &s ); // inline
45 
46  virtual ~RString ();
47 
48  RString & operator = ( const RString &s );
49  RString & operator = ( const string &s );
50  RString & operator = ( const char *s );
51 
52  //------------------------------------------------------------
53  // Numerical values read from string
54  Color_t ReadColor ( const Color_t default_val = 0 ) const; // inline
55 
56  Color_t ReadSubColor ( size_t & ifirst,
57  size_t & ilast,
58  const size_t index = 0,
59  const Color_t default_val = 0,
60  const string & separ = GSTRING_DEFAULT_SPACE ) const;
61 
62  //------------------------------------------------------------
63  /*! For ROOT dictionary.*/
64  ClassDef(RString,0);
65 } ;
66 
67 //----------------------------------------------------------------------
68 // Inline functions
69 #include "icc/RString.icc"
70 
71 
72 //======================================================================
73 #endif
Definition: RString.hh:29
RString()
Definition: RString.icc:11
RString & operator=(const RString &s)
Definition: RString.icc:35
GObject(RString)
ClassDef(RString, 0)
Color_t ReadColor(const Color_t default_val=0) const
Definition: RString.icc:64
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
Definition: RString.cpp:25
virtual ~RString()
Definition: RString.icc:54