/[PAMELA software]/quicklook/dataToXML/RunHeaderToXML.cpp
ViewVC logotype

Diff of /quicklook/dataToXML/RunHeaderToXML.cpp

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

revision 1.1.1.1 by kusanagi, Tue Apr 25 09:00:20 2006 UTC revision 1.2 by mocchiut, Fri Jan 17 15:10:33 2014 UTC
# Line 20  Line 20 
20  #include <PscuHeader.h>  #include <PscuHeader.h>
21  #include <EventHeader.h>  #include <EventHeader.h>
22  #include <fstream>  #include <fstream>
23    #include <cstdlib>
24    #include <sys/stat.h>
25  #include <TFile.h>  #include <TFile.h>
26  #include <TObjString.h>  #include <TObjString.h>
27  #include <TString.h>  #include <TString.h>
# Line 28  Line 29 
29    
30  void RunHeaderToXML(TString base, TString outDirectory = "", TString xslPath = ""){  void RunHeaderToXML(TString base, TString outDirectory = "", TString xslPath = ""){
31        
32    Int_t         tmpSize;    //  Int_t     tmpSize;
33    ofstream      outputFile;    ofstream      outputFile;
34    stringstream  oss;    stringstream  oss;
35        
# Line 121  int main(int argc, char* argv[]){ Line 122  int main(int argc, char* argv[]){
122          }          }
123      }      }
124    
125      if (!strcmp(argv[i], "-xslPath"))      if (!strcmp(argv[i], "-xslPath")){
126          if (++i >= argc){        if (++i >= argc){
127              printf( "-xslPath needs arguments. \n");          printf( "-xslPath needs arguments. \n");
128              printf( "Try '--help' for more information. \n");          printf( "Try '--help' for more information. \n");
129              exit(1);              exit(1);
130          } else {        } else {
131                  xslPath = argv[i];          xslPath = argv[i];
132                  continue;          continue;
133          }        }
134        }
135      }      }
136          RunHeaderToXML(argv[1], outDir, xslPath);          RunHeaderToXML(argv[1], outDir, xslPath);
137  }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23