11 #ifndef __FREECHEMICALFEATURE_H_13012005_1023__ 12 #define __FREECHEMICALFEATURE_H_13012005_1023__ 27 : d_id(id), d_family(family), d_type(type), d_position(loc) {}
31 : d_id(-1), d_family(family), d_type(
""), d_position(loc) {}
38 d_position(
RDGeom::Point3D(0.0, 0.0, 0.0)) {}
41 this->initFromString(pickle);
45 : d_id(other.getId()),
46 d_family(other.getFamily()),
47 d_type(other.getType()),
48 d_position(other.getPos()) {}
53 int getId()
const {
return d_id; }
56 const std::string &
getFamily()
const {
return d_family; }
59 const std::string &
getType()
const {
return d_type; }
65 void setId(
const int id) { d_id = id; }
68 void setFamily(
const std::string &family) { d_family = family; }
71 void setType(
const std::string &type) { d_type = type; }
82 std::string toString()
const;
84 void initFromString(
const std::string &
pickle);
#define RDKIT_CHEMICALFEATURES_EXPORT
Class for chemical features that do not orignate from molecules.
RDKIT_CHEMREACTIONS_EXPORT void pickle(const boost::shared_ptr< EnumerationStrategyBase > &enumerator, std::ostream &ss)
pickles a EnumerationStrategy and adds the results to a stream ss
FreeChemicalFeature(const std::string &family, std::string type, const RDGeom::Point3D &loc, int id=-1)
start with everything specified
FreeChemicalFeature(const std::string &pickle)
void setFamily(const std::string &family)
set our family
RDGeom::Point3D getPos() const
return our position
int getId() const
return our id
abstract base class for chemical feature
const std::string & getType() const
return our type
void setId(const int id)
set our id
const std::string & getFamily() const
return our family
void setPos(const RDGeom::Point3D &loc)
set our position
void setType(const std::string &type)
set our type
FreeChemicalFeature(const FreeChemicalFeature &other)
FreeChemicalFeature(const std::string &family, const RDGeom::Point3D &loc)
start with family and location specified, leave the type blank
FreeChemicalFeature()
start with everything blank