AraWebPlotter/getDirFromConfig.cxx
00001 #include<iostream> 00002 #include<string.h> 00003 //ARA includes 00004 #include "AraWebPlotterConfig.h" 00005 00006 void usage(int argc, char **argv) 00007 { 00008 std::cout << "The ARA Web Plotter Config Directory Getter\n"; 00009 std::cout << "Usage instructions, call one of the following\n"; 00010 // std::cout << argv[0] << " --eventLinkDir\n"; 00011 // std::cout << argv[0] << " --hkLinkDir\n"; 00012 std::cout << argv[0] << " --rootFileDir\n"; 00013 std::cout << argv[0] << " --plotDir\n"; 00014 00015 } 00016 00017 00018 int main(int argc, char **argv) { 00019 //Step one is to read the config file. 00020 AraWebPlotterConfig *araConfig = new AraWebPlotterConfig(); 00021 00022 00023 if(argc==1) { 00024 usage(argc,argv); 00025 return -1; 00026 } 00027 // if(strcmp(argv[1],"--eventLinkDir")==0) { 00028 // std::cout << araConfig->getEventLinkDir() << "\n"; 00029 // return 0; 00030 // } 00031 // if(strcmp(argv[1],"--hkLinkDir")==0) { 00032 // std::cout << araConfig->getHkLinkDir() << "\n"; 00033 // return 0; 00034 // } 00035 if(strcmp(argv[1],"--rootFileDir")==0) { 00036 std::cout << araConfig->getRootFileDir() << "\n"; 00037 return 0; 00038 } 00039 if(strcmp(argv[1],"--plotDir")==0) { 00040 std::cout << araConfig->getPlotDir() << "\n"; 00041 return 0; 00042 } 00043 usage(argc,argv); 00044 return -1; 00045 00046 00047 }
Generated on Wed Aug 8 16:20:07 2012 for ARA ROOT Test Bed Software by
