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_;
DiagError(const Diag &diag)
Diag & AddInt(int int_val)
mol::AtomHandle GetAtom(size_t index) const
Diag & AddChain(mol::ChainHandle chain)
mol::ResidueHandle GetResidue(size_t index) const
Diag & AddResidue(mol::ResidueHandle res)
Diag(DiagType typ, const char *fmt)
String Format(bool colored=true) const
mol::ChainHandle GetChain(size_t index) const
Diag & AddAtom(mol::AtomHandle atom)
Diag & AddString(const String &str)
size_t diag_count() const
Diag & AddDiag(DiagType type, const char *fmt)
diag_iterator diags_end()
std::vector< Diag * >::const_iterator const_diag_iterator
const_diag_iterator diags_end() const
std::vector< Diag * >::iterator diag_iterator
diag_iterator diags_begin()
const_diag_iterator diags_begin() const
#define DLLEXPORT_OST_CONOP
boost::shared_ptr< Diagnostics > DiagnosticsPtr
std::vector< AtomHandle > AtomHandleList
std::vector< ChainHandle > ChainHandleList
std::vector< ResidueHandle > ResidueHandleList