19 #ifndef OST_IO_IO_PROFILE_HH
20 #define OST_IO_IO_PROFILE_HH
28 namespace ost {
namespace io {
35 dialect(d), fault_tolerant(ft), join_spread_atom_records(js),
36 no_hetatms(nh), calpha_only(co), read_conect(rc),
processor(proc)
41 join_spread_atom_records(false), no_hetatms(false),
42 calpha_only(false), read_conect(false),
processor()
54 return IOProfile(dialect, fault_tolerant, join_spread_atom_records,
55 no_hetatms, calpha_only, read_conect,
63 stream <<
"IOProfile(dialect='" << p.
dialect <<
", "
65 <<
"calpha_only=" << (p.
calpha_only ?
"True" :
"False") <<
", "
66 <<
"fault_tolerant=" << (p.
fault_tolerant ?
"True" :
"False") <<
", "
67 <<
"no_hetatms=" << (p.
no_hetatms ?
"True" :
"False") <<
", "
68 <<
"read_conect=" << (p.
read_conect ?
"True" :
"False") <<
", "
79 return profiles_[key];
84 profiles_[key]=profile;
89 if (IOProfileRegistry::alive) {
98 std::map<String, IOProfile> profiles_;
static void RemoveProfiles()
IOProfile & Get(const String &key)
static IOProfileRegistry & Instance()
void Set(const String &key, const IOProfile &profile)
boost::shared_ptr< Processor > ProcessorPtr
std::ostream & operator<<(std::ostream &stream, const FormattedLine &line)
conop::ProcessorPtr processor
bool join_spread_atom_records
IOProfile(String d, bool ft, bool js, bool nh, bool co, bool rc, conop::ProcessorPtr proc=conop::ProcessorPtr())