19 #ifndef OST_CONOP_COMPOUND_HH
20 #define OST_CONOP_COMPOUND_HH
23 #include <boost/shared_ptr.hpp>
30 namespace ost {
namespace conop {
55 std::vector<StringRef> parts=str.
split(
'-');
56 assert(parts.size()==3);
57 std::pair<bool, int>
year=parts[0].to_int();
58 std::pair<bool, int>
month=parts[1].to_int();
59 std::pair<bool, int>
day=parts[2].to_int();
60 assert(year.first); assert(month.first); assert(day.first);
61 return Date(year.second, month.second, day.second);
126 : olc_(
'?'), tlc_(id), chem_class_(), chem_type_(), dialect_(
Compound::PDB){
165 chem_class_=chem_class;
173 chem_type_=chem_type;
185 return chem_class_.IsPeptideLinking();
189 return chem_class_.IsNucleotideLinking();
193 atom_specs_.push_back(atom);
197 bond_specs_.push_back(bond);
204 int GetAtomSpecIndex(
const String& name)
const;
213 const Date& GetModificationDate()
const
217 const Date& GetCreationDate()
const
219 return creation_date_;
222 void SetModificationDate(
const Date& mod_date)
227 void SetCreationDate(
const Date& creation_date)
229 creation_date_=creation_date;