30 #include <boost/variant.hpp>
31 #include <boost/logic/tribool.hpp>
41 namespace ost {
namespace mol {
125 if (name.find(
'\'') != String::npos) {
126 if (name.find(
'"') != String::npos) {
127 throw Error(
"Cannot quote chain name " + name +
" because it contains "
128 "both ' and \" in its name.");
133 if (name[name.length() - 1] ==
'\\') {
134 throw Error(
"Cannot quote chain name " + name +
" because it ends in \\.");
136 return quote + name + quote;
bool IsChainSelected(const ChainHandle &chain) const
whether chain fulfills the query
const String & GetQueryString() const
Get String.
const QueryErrorDesc & GetErrorDescription() const
Query(const impl::QueryImplP &impl)
internally used constructor
Query(const String &query_string="")
Construct new query object.
QueryState CreateQueryState(const EntityHandle &view) const
create new query state to be used for a given entity
QueryState CreateQueryState(const EntityView &view) const
create new query state to be used for a given entity
const impl::QueryImplP & Impl() const
bool IsResidueSelected(const ResidueHandle &residue) const
whether residue fulfills the query
bool IsAtomSelected(const AtomHandle &ah) const
whether atom fulfills the query
Holds state used during query evaluation.
#define DLLEXPORT_OST_MOL
boost::shared_ptr< QueryImpl > QueryImplP
String DLLEXPORT_OST_MOL QueryQuoteName(const String &name)