19 #ifndef OB_MOLECULEFORMAT_H 20 #define OB_MOLECULEFORMAT_H 23 #include <unordered_map> 27 #ifdef _LIBCPP_VERSION 28 #include <unordered_map> 29 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 1 30 #include <tr1/unordered_map> 31 #elif defined(USE_BOOST) 32 #include <boost/tr1/unordered_map.hpp> 35 #include <openbabel/babelconfig.h> 44 #ifdef HAVE_SHARED_POINTER 76 if(!OptionsRegistered)
78 OptionsRegistered=
true;
116 {
return ReadChemObjectImpl(pConv,
this);}
120 {
return WriteChemObjectImpl(pConv,
this);}
133 static bool DeleteDeferredMols();
138 #ifdef HAVE_SHARED_POINTER 139 static bool OutputMolsFromReaction
145 typedef std::tr1::unordered_map<std::string, unsigned>
NameIndexType;
146 #elif defined(_LIBCPP_VERSION) 147 typedef std::unordered_map<std::string, unsigned> NameIndexType;
148 #elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1 && !defined(__APPLE_CC__)) || defined (USE_BOOST) 149 typedef std::tr1::unordered_map<std::string, unsigned> NameIndexType;
155 static bool ReadNameIndex(NameIndexType& index,
const std::string& datafilename,
161 return typeid(
OBMol*);
166 static bool OptionsRegistered;
167 static std::map<std::string, OBMol*> IMols;
169 static std::vector<OBMol> MolArray;
170 static bool StoredMolsReady;
176 #endif //OB_MOLECULEFORMAT_H
Definition: obconversion.h:184
Class to convert from one format to another.
Definition: obconversion.h:59
Molecule Class.
Definition: mol.h:118
Used to store chemical reactions (i.e., reactants -> products)
Definition: reaction.h:37
static void RegisterOptionParam(std::string name, OBFormat *pFormat, int numberParams=0, Option_type typ=OUTOPTIONS)
For example -h takes 0 parameters; -f takes 1. Call in a format constructor.
Definition: obconversion.cpp:1637
Handle file conversions. Declaration of OBFormat, OBConversion.
Base class for molecular properties, descriptors or features.
Definition: descriptor.h:34
Base Class.
Definition: base.h:239
Definition: obconversion.h:184
Global namespace for all Open Babel code.
Definition: alias.h:22