19 #ifndef OST_CONOP_DIAG_HH
20 #define OST_CONOP_DIAG_HH
27 namespace ost {
namespace conop {
50 atoms_.push_back(atom);
57 residues_.push_back(res);
63 chains_.push_back(chain);
69 ints_.push_back(int_val);
75 strings_.push_back(str);
81 assert(index<args_.size());
82 return atoms_[args_[index].index];
86 assert(index<args_.size());
87 return residues_[args_[index].index];
91 assert(index<args_.size());
92 return chains_[args_[index].index];
97 ArgDesc(
size_t i,
DiagArgType t): index(i), type(t) { }
106 std::vector<String> strings_;
107 std::vector<int> ints_;
108 std::vector<ArgDesc> args_;
129 for(std::vector<Diag*>::iterator
130 i=diags_.begin(), e=diags_.end(); i!=e;++i) {
137 diags_.push_back(
new Diag(type, fmt));
138 return *diags_.back();
146 std::vector<Diag*> diags_;
Diag & AddDiag(DiagType type, const char *fmt)
std::vector< Diag * >::const_iterator const_diag_iterator
Diag & AddAtom(mol::AtomHandle atom)
size_t diag_count() const
#define DLLEXPORT_OST_CONOP
const_diag_iterator diags_end() const
diag_iterator diags_begin()
boost::shared_ptr< Diagnostics > DiagnosticsPtr
DiagError(const Diag &diag)
std::vector< ResidueHandle > ResidueHandleList
Diag & AddString(const String &str)
std::vector< Diag * >::iterator diag_iterator
const_diag_iterator diags_begin() const
Diag & AddInt(int int_val)
Diag(DiagType typ, const char *fmt)
Diag & AddResidue(mol::ResidueHandle res)
std::vector< AtomHandle > AtomHandleList
mol::ChainHandle GetChain(size_t index) const
mol::ResidueHandle GetResidue(size_t index) const
Diag & AddChain(mol::ChainHandle chain)
mol::AtomHandle GetAtom(size_t index) const
std::vector< ChainHandle > ChainHandleList
diag_iterator diags_end()