11 #ifndef EVENT_STRING_TOOLS_HH
12 #define EVENT_STRING_TOOLS_HH
15 #include "RPointerList.hh"
22 string read_string ( FILE *fptr, Int_t &error,
const string &line_com =
"//",
const bool skip_empty =
true,
const UInt_t maxlen = 4096 );
23 string read_string ( istream &is, Int_t &error,
const string &line_com =
"//",
const bool skip_empty =
true );
32 string FileExt (
const string &name );
35 string SetFileExt (
const string &name,
const string &ext );
49 template <
class T>
string PtrListNames (
const RPointerList &list,
const string sep =
" " )
52 RPointerListIter iter = list.Begin();
54 if (iter != list.Null())
56 T *ptr = (T *) (iter->GetPointer());
57 result = ptr->GNamed::GetName();
60 while (iter != list.Null())
62 ptr = (T *) (iter->GetPointer());
64 result += sep + ptr->GNamed::GetName();