/[PAMELA software]/chewbacca/YodaProfiler/src/YodaProfiler.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/YodaProfiler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mocchiut, Mon Dec 22 10:38:15 2008 UTC revision 1.6 by mocchiut, Mon Jan 12 18:23:38 2009 UTC
# Line 25  void usage(){ Line 25  void usage(){
25    printf(" -s | --silent   print nothing on STDOUT\n");    printf(" -s | --silent   print nothing on STDOUT\n");
26    printf(" -g | --debug    be very verbose [default: no]\n");    printf(" -g | --debug    be very verbose [default: no]\n");
27    printf(" -p | --pedantic be strict in checks, exit with error if any problem is found [default: yes]\n");    printf(" -p | --pedantic be strict in checks, exit with error if any problem is found [default: yes]\n");
28      printf(" -r | --relaxed  do not perfrom some important checks, use it only if you know what you are doing [default: NO]\n");
29    printf(" -np | --no-pedantic do NOT be strict in checks, try to continue if any problem is found [default: no]\n");    printf(" -np | --no-pedantic do NOT be strict in checks, try to continue if any problem is found [default: no]\n");
30    printf(" -tag char       set the run tagging in _RUNID_GEN to \"char\" (four letters)[default = 'NONE']\n");    printf(" -tag char       set the run tagging in _RUNID_GEN to \"char\" (four letters)[default = 'NONE']\n");
31    printf(" -boot number    CPU boot number [default = taken from VarDump]\n");    printf(" -boot number    CPU boot number [default = taken from VarDump]\n");
# Line 132  int main(int numinp, char *inps[]){ Line 133  int main(int numinp, char *inps[]){
133    //    //
134    Bool_t pedantic = true;    Bool_t pedantic = true;
135    //    //
136      Bool_t relaxed = false;
137      //
138    Int_t i = 0;    Int_t i = 0;
139    //    //
140    if ( numinp > 1 ){    if ( numinp > 1 ){
# Line 305  int main(int numinp, char *inps[]){ Line 308  int main(int numinp, char *inps[]){
308        //        //
309        if ( !strcmp(inps[i],"-p") || !strcmp(inps[i],"--pedantic") ) pedantic = true;        if ( !strcmp(inps[i],"-p") || !strcmp(inps[i],"--pedantic") ) pedantic = true;
310        //        //
311          if ( !strcmp(inps[i],"-r") || !strcmp(inps[i],"--relaxed") ) relaxed = true;
312          //
313        if ( !strcmp(inps[i],"-np") || !strcmp(inps[i],"--no-pedantic") ) pedantic = false;        if ( !strcmp(inps[i],"-np") || !strcmp(inps[i],"--no-pedantic") ) pedantic = false;
314        //        //
315        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;
# Line 420  int main(int numinp, char *inps[]){ Line 425  int main(int numinp, char *inps[]){
425      pamDB->SetNoFrag(nofrag);      pamDB->SetNoFrag(nofrag);
426      pamDB->SetAutoBoot(autoboot);      pamDB->SetAutoBoot(autoboot);
427      pamDB->SetPedantic(pedantic);      pamDB->SetPedantic(pedantic);
428        pamDB->SetRelaxed(relaxed);
429      //      //
430      if ( remove ){      if ( remove ){
431        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23