8 const unsigned IO::sLinesize = 1000;
10 IO::IO(
const char* filepattern) : fCurline(0) {
14 cout<<
"------ Reading User Parameters : "<<filepattern<<endl;
19 string err =
"IO::IO : no files verify pattern ";
24 for(
unsigned i=0;
i<files.size();
i++) {
27 cout<<
"------ Reading User Parameters : DONE ---------"<<endl;
33 cout<<
"file : "<<filename<<
"\t\t";
35 std::ifstream
in(filename);
37 cout<<
"unreadable"<<endl;
51 if(
string(s).
empty()) {
60 if(!strncmp(tag.c_str(),
"//",2))
continue;
64 fAllLines.push_back(pair<string, string>(tag, data));
99 string readkey; in>>readkey;
111 if(found)
return string(data);
130 string readkey; in>>readkey;
140 if(found)
return string(data);
149 istringstream
in(data);
156 int pos = value.find_first_not_of(
" \t");
157 value = value.substr(pos);
159 pos = value.find_last_not_of(
" \t");
160 value = value.substr(0,pos+1);
162 if(!value.empty())
return true;
U second(std::pair< T, U > const &p)
char data[epos_bytes_allocation]