/[PAMELA software]/yoda/techmodel/techmodelreader.cpp
ViewVC logotype

Diff of /yoda/techmodel/techmodelreader.cpp

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

revision 2.1 by kusanagi, Fri Dec 3 22:08:01 2004 UTC revision 2.1.2.1 by kusanagi, Fri Mar 4 10:29:26 2005 UTC
# Line 14  Line 14 
14  #include <cstdlib>  #include <cstdlib>
15  #include <iostream>  #include <iostream>
16  #include <time.h>  #include <time.h>
17    #include "Exception.h"
18    
19  extern "C" {  extern "C" {
20  //#include "DirectoryStructure.h"  //#include "DirectoryStructure.h"
21  #include <dirent.h>  #include <dirent.h>
# Line 35  int main(int argc, char* argv[]) { Line 37  int main(int argc, char* argv[]) {
37      char nomeFileLog[L_tmpnam];      char nomeFileLog[L_tmpnam];
38      tmpnam(nomeFileLog);      tmpnam(nomeFileLog);
39      DIR *dirp;      DIR *dirp;
40      string pathDir((char*)getenv("YODA_DATA"));  
41        // check if yoda_DATA exist!!!!
42        char *outDir;
43        try {
44        outDir = getenv("YODA_DATA");
45        if (getenv("YODA_DATA") == NULL) throw NotFoundEnvironmentVarException("The variable YODA_DATA has not been found.");
46        } catch (NotFoundEnvironmentVarException exc) {
47         cout << "The variable YODA_DATA has not been found. \n";
48         cout << "Please check your environment variables \n";
49         oss.str("");
50         oss << exc.print();
51         logger->fatal(oss.str().c_str());
52         exit(1);
53        }
54    
55        string pathDir(outDir);
56    
57      string pathLog = nomeFileLog;      string pathLog = nomeFileLog;
58      bool ANALIZE = false;      bool ANALIZE = false;
59      //---------------- Log4cxx configuration-----------------------------------------------      //---------------- Log4cxx configuration-----------------------------------------------

Legend:
Removed from v.2.1  
changed lines
  Added in v.2.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.23