19 #include <basic/Tracer.hh>
20 #include <utility/io/izstream.hh>
21 #include <basic/database/open.hh>
28 #include <utility/vector1.hh>
36 "core.scoring.saxs.FormFactorManager");
50 utility::io::izstream input(file_name.c_str());
53 while( getline( input, line ) ) {
54 if ( line.substr(0,1) ==
"#" )
continue;
55 std::istringstream line_stream( line );
59 line_stream >> n >> f >> g;
62 trFormFactorManager.Debug <<
"Form factor for atom >"<<n<<
"< loaded from a file: "<<f<<std::endl;
69 utility::io::izstream input(file_name.c_str());
72 while( getline( input, line ) ) {
73 if ( line.substr(0,1) ==
"#" )
continue;
74 std::istringstream line_stream( line );
78 line_stream >> n >> f >> g;
81 trFormFactorManager.Warning <<
"Form factor for atom >"<<n<<
"< loaded from a minirosetta database file: "<<f<<std::endl;
92 ff_map_.insert( std::pair<std::string,FormFactorOP> (atom_name,new_ff) );
102 assert( atom_name.size() > 0 );
114 return ff_map_.find(atom_name)->second;
117 trFormFactorManager.Debug <<
"The manager knows nothing about this atom: "<<atom_name<<std::endl;