int optionsCreate const char *  optionsFile,
map< string, string > &  options
 

parse the options file provided as input to tt OptionsCreate takes a string and a character map and maps options file names to their values to be parsed later

Definition at line 32 of file tt.cpp.

Referenced by main().

00033 {
00034   options.clear();
00035   ifstream fileIn(optionsFile);
00036   if(fileIn.good()==false) {
00037          cerr<<"wrong option file"<<endl;        exit(1);
00038   }
00039   string name;  fileIn>>name;
00040   while(fileIn.good()) {
00041          char content[100];      fileIn.getline(content, 99);
00042          options[name] = string(content);
00043          fileIn>>name;
00044   }
00045   fileIn.close();
00046   return 0;
00047 }


Generated on Sun Dec 4 19:24:40 2005 for fmm3d by  doxygen 1.4.5