14 std::ifstream myfile( textFileName.c_str() );
15 if ( !myfile.is_open() )
16 throw cms::Exception(
"FileAccess") <<
"Unable to open input text file";
20 while ( !myfile.eof() && myfile.good() )
26 firstchar = myfile.peek();
32 else if (firstchar ==
'!'){
33 std::string firststring;
34 std::string structure;
35 myfile >> firststring >> structure;
36 std::string endofline;
37 getline(myfile,endofline);
38 m_uId.second = alignObjId.
nameToType(structure);
41 myfile >> m_uId.first;
47 m_inputs.push_back( tmpInput );
49 std::string endofline;
50 getline(myfile,endofline);
54 if ( myfile.fail() )
break;
void readFile(const std::string &textFileName)
Read given text file.
std::vector< Scalar > Scalars
Allows conversion between type and name, and vice-versa.
std::pair< UniqueId, align::Scalars > PairType
align::StructureType nameToType(const std::string &name) const
Convert name to type.
std::pair< align::ID, align::StructureType > UniqueId