47 TString st = s; Short_t nb, nb_unkown, nb_theo_left, nb_theo_right, nb_tenta_left, nb_tenta_right, nb_about;
50 nb = nb_unkown = nb_theo_left = nb_theo_right = nb_tenta_left = nb_tenta_right = nb_about = 0;
51 Int_t end = st.Length();
52 for( Int_t i = 0 ; i < end; i++ ){
53 if ( st[i] ==
'?' ) { nb_unkown++; nb++; }
54 if ( st[i] ==
'(' ) { nb_tenta_left++; nb++;} ;
if ( st[i] ==
')' ) { nb_tenta_right++; nb++;}
55 if ( st[i] ==
'[' ) { nb_theo_left++; nb++; } ;
if ( st[i] ==
']' ) { nb_theo_right++; nb++; }
56 if ( st[i] ==
'~' ) { nb_about++; nb++; }
60 if ( nb == 0 )
return kKnown;
63 if ( nb_about == 1 )
return kAbout;
67 if ( nb_tenta_left == 1 && nb_tenta_right == 1 )
return kTentative;
68 if ( nb_theo_left == 1 && nb_theo_right == 1 )
return kTheo;
static EData WhatIs(const char *)
It deduces from a string the kind of data.
EData
flags that qualify a given data
LogMessage & info(LogMessage &)
manipulator to modify the LogMessage
Base class to get/set some flag informations concerning any data.