22 #include "TObjArray.h"
23 #include "TObjString.h"
71 while ( ( o = static_cast<TObjString*>(next()) ) )
73 TString& os(o->String());
75 if (b->GetEntries()==2)
77 m->Add(b->At(0),b->At(1));
93 TPair* p =
static_cast<TPair*
>(m.FindObject(skey));
96 value = (
static_cast<TObjString*
>(p->Value()))->String();
114 if ( str.Length() == 0 )
125 for ( Int_t i = 0; i < ranges->GetEntriesFast(); ++i )
131 TString& s = ((TObjString*)ranges->At(i))->String();
136 theList.Set(theList.GetSize()+1);
137 theList[theList.GetSize()-1] = m;
149 Int_t& incr, Int_t& n)
158 Ssiz_t pos = str.First(
'-');
168 end = TString(str(pos+1,str.Length()-pos)).Atoi();
189 if ( rv.Length() <= 0 )
return TString();
191 while ( rv[0] ==
' ' )
195 while ( rv[rv.Length()-1] ==
' ' )
197 rv.Remove(rv.Length()-1,1);
201 for ( i = 0; i < rv.Length(); ++i )
Helper class to parse slat mapping ascii files.
static TString Normalize(const char *line)
static void GetRange(const char *str, Int_t &begin, Int_t &end, Int_t &incr, Int_t &n)
static TMap * Decode(const TString &s)
static void DecodeName(const char *manus, char sep, TArrayI &theList)