14 std::ifstream myfile( textFileName.c_str() );
15 if ( !myfile.is_open() )
16 throw cms::Exception(
"FileAccess") <<
"Unable to open input text file";
18 while ( !myfile.eof() && myfile.good() )
24 firstchar = myfile.peek();
30 else if (firstchar ==
'!'){
33 myfile >> firststring >> structure;
35 getline(myfile,endofline);
39 myfile >> m_uId.first;
45 m_inputs.push_back( tmpInput );
48 getline(myfile,endofline);
52 if ( myfile.fail() )
break;
void readFile(const std::string &textFileName)
Read given text file.
static align::StructureType stringToId(const char *)
std::vector< Scalar > Scalars
std::pair< UniqueId, align::Scalars > PairType
std::pair< align::ID, align::StructureType > UniqueId