RDKit
Open-source cheminformatics and machine learning.
FileParserUtils.h File Reference
#include <RDGeneral/export.h>
#include <string>
#include <iostream>
#include <RDGeneral/BoostStartInclude.h>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <RDGeneral/BoostEndInclude.h>

Go to the source code of this file.

Namespaces

 RDKit
 Std stuff.
 
 RDKit::FileParserUtils
 

Functions

template<typename T >
RDKit::FileParserUtils::stripSpacesAndCast (const std::string &input, bool acceptSpaces=false)
 
RDKIT_FILEPARSERS_EXPORT int RDKit::FileParserUtils::toInt (const std::string &input, bool acceptSpaces=false)
 
RDKIT_FILEPARSERS_EXPORT double RDKit::FileParserUtils::toDouble (const std::string &input, bool acceptSpaces=true)
 
RDKIT_FILEPARSERS_EXPORT std::string RDKit::FileParserUtils::getV3000Line (std::istream *inStream, unsigned int &line)
 
RDKIT_FILEPARSERS_EXPORT bool RDKit::FileParserUtils::ParseV3000CTAB (std::istream *inStream, unsigned int &line, RWMol *mol, Conformer *&conf, bool &chiralityPossible, unsigned int &nAtoms, unsigned int &nBonds, bool strictParsing=true, bool expectMEND=true)
 
RDKIT_FILEPARSERS_EXPORT bool RDKit::FileParserUtils::ParseV2000CTAB (std::istream *inStream, unsigned int &line, RWMol *mol, Conformer *&conf, bool &chiralityPossible, unsigned int &nAtoms, unsigned int &nBonds, bool strictParsing=true)
 
RDKIT_FILEPARSERS_EXPORT void RDKit::FileParserUtils::finishMolProcessing (RWMol *res, bool chiralityPossible, bool sanitize, bool removeHs)
 finishes up the processing (sanitization, etc.) of a molecule read from CTAB More...
 
RDKIT_FILEPARSERS_EXPORT Atom * RDKit::FileParserUtils::replaceAtomWithQueryAtom (RWMol *mol, Atom *atom)
 
template<typename T >
void RDKit::FileParserUtils::applyMolListPropToAtoms (ROMol &mol, const std::string &pn, const std::string &prefix, const std::string &missingValueMarker="n/a")
 applies a particular property to the atoms as an atom property list More...
 
template<typename T >
void RDKit::FileParserUtils::applyMolListPropsToAtoms (ROMol &mol, const std::string &prefix, const std::string missingValueMarker="n/a")
 applies all properties matching a particular prefix as an atom property list More...
 
void RDKit::FileParserUtils::processMolPropertyList (ROMol &mol, const std::string pn, const std::string &missingValueMarker="n/a")
 
void RDKit::FileParserUtils::processMolPropertyLists (ROMol &mol, const std::string &missingValueMarker="n/a")
 
template<typename T >
std::string RDKit::FileParserUtils::getAtomPropertyList (ROMol &mol, const std::string &atomPropName, std::string missingValueMarker="", unsigned int lineSize=190)
 
void RDKit::FileParserUtils::createAtomIntPropertyList (ROMol &mol, const std::string &atomPropName, const std::string &missingValueMarker="", unsigned int lineSize=190)
 
void RDKit::FileParserUtils::createAtomDoublePropertyList (ROMol &mol, const std::string &atomPropName, const std::string &missingValueMarker="", unsigned int lineSize=190)
 
void RDKit::FileParserUtils::createAtomBoolPropertyList (ROMol &mol, const std::string &atomPropName, const std::string &missingValueMarker="", unsigned int lineSize=190)
 
void RDKit::FileParserUtils::createAtomStringPropertyList (ROMol &mol, const std::string &atomPropName, const std::string &missingValueMarker="", unsigned int lineSize=190)
 

Variables

static const std::string RDKit::FileParserUtils::atomPropPrefix = "atom."