MTK++ Latest version: 0.2.0

Public Member Functions | Protected Attributes
MTKpp::stdLibParser Class Reference

#include <mtkpp/src/Parsers/stdLibParser.h>

Inheritance diagram for MTKpp::stdLibParser:
Inheritance graph
[legend]
Collaboration diagram for MTKpp::stdLibParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 stdLibParser (collection *c, stdLibrary *s, parameters *p)
 baseParser Constructor
 stdLibParser (stdLibrary *s, parameters *p)
 baseParser Constructor
 stdLibParser (stdLibrary *s)
 baseParser Constructor
virtual ~stdLibParser ()
 baseParser Destructor
void Read (std::string i)
 Read standard library xml file.
void Write (std::string i)
 Write standard library xml file.
void Write (std::string i, std::string g)
 Write standard library xml file.
void Write (std::string i, std::string g, std::string f)
 Write standard library xml file.
virtual void Read ()
 Read function.
virtual void Write ()
 Write function.
std::ofstream & OpenFile (std::string fileName)
 Write function.
std::string determineElement (std::string &name)
 Preceive element symbol from the atom name.
void setError (int i)
 Error handling within Parsers.
bool getError ()
 Error handling within dcParser.
void setErrorMessage (std::string s)
 Error handling within Parsers.
std::string getErrorMessage ()
 Error handling within Parsers.

Protected Attributes

collectionpCollection
 collection pointer
stdLibrarypStdLibrary
 stdLibrary pointer
parameterspParameters
 parameters pointer
stdGrouppStdGroup
 stdGroup pointer
stdFragpStdFrag
 stdFrag pointer
stdAtompStdAtom
 stdAtom pointer
stdBondpStdBond
 stdBond pointer
stdImproperpStdImproper
 stdImproper pointer
stdLooppStdLoop
 stdLoop pointer
stdAliaspStdAlias
 stdAlias pointer
stdRingpStdRing
 stdRing pointer
stdFeaturepStdFeature
 stdFeature pointer
stdFuncGrouppStdFuncGroup
 stdFuncGroup pointer
std::ofstream outputFileStream
 Output File Stream.
bool bError
 Error occured.
std::string errorMessage
 Error message.
unsigned int NUM_INDENTS_PER_SPACE

Constructor & Destructor Documentation

MTKpp::stdLibParser::stdLibParser ( collection c,
stdLibrary s,
parameters p 
)

baseParser Constructor

Parameters:
ccollection pointer
sstdLibrary pointer
pparameters pointer

References MTKpp::baseParser::errorMessage, pCollection, pParameters, pStdLibrary, MTKpp::baseParser::setError(), and MTKpp::baseParser::setErrorMessage().

MTKpp::stdLibParser::stdLibParser ( stdLibrary s,
parameters p 
)
MTKpp::stdLibParser::stdLibParser ( stdLibrary s)
MTKpp::stdLibParser::~stdLibParser ( ) [virtual]

baseParser Destructor


Member Function Documentation

void MTKpp::stdLibParser::Read ( std::string  i)

Read standard library xml file.

Parameters:
iStandard library file

Referenced by main().

void MTKpp::stdLibParser::Write ( std::string  i)

Write standard library xml file.

Parameters:
iStandard library file

Referenced by main().

void MTKpp::stdLibParser::Write ( std::string  i,
std::string  g 
)

Write standard library xml file.

Parameters:
iStandard library file
ggroup name
void MTKpp::stdLibParser::Write ( std::string  i,
std::string  g,
std::string  f 
)

Write standard library xml file.

Parameters:
iStandard library file
ggroup name
ffragment name
void MTKpp::baseParser::Read ( ) [virtual, inherited]

Read function.

Referenced by MTKpp::acParser::Read(), and MTKpp::molParser::Read().

void MTKpp::baseParser::Write ( ) [virtual, inherited]
std::ofstream & MTKpp::baseParser::OpenFile ( std::string  fileName) [inherited]

Write function.

References MTKpp::baseParser::outputFileStream.

Referenced by main().

std::string MTKpp::baseParser::determineElement ( std::string &  name) [inherited]

Preceive element symbol from the atom name.

References MTKpp::GetAlphaChar(), and MTKpp::removeCharacter().

Referenced by MTKpp::pdbParser::Read(), and MTKpp::prepParser::readFragment().

void MTKpp::baseParser::setError ( int  i) [inline, inherited]
bool MTKpp::baseParser::getError ( ) [inline, inherited]

Error handling within dcParser.

Returns:
error

References MTKpp::baseParser::bError.

Referenced by main().

void MTKpp::baseParser::setErrorMessage ( std::string  s) [inline, inherited]
std::string MTKpp::baseParser::getErrorMessage ( ) [inline, inherited]

Error handling within Parsers.

Returns:
error message

References MTKpp::baseParser::errorMessage.

Referenced by main().


Member Data Documentation

collection pointer

Referenced by stdLibParser().

stdLibrary pointer

Referenced by stdLibParser().

parameters pointer

Referenced by stdLibParser().

stdGroup pointer

stdFrag pointer

stdAtom pointer

stdBond pointer

stdImproper pointer

stdLoop pointer

stdAlias pointer

stdRing pointer

stdFeature pointer

stdFuncGroup pointer

std::ofstream MTKpp::baseParser::outputFileStream [protected, inherited]

Output File Stream.

Referenced by MTKpp::baseParser::OpenFile().

bool MTKpp::baseParser::bError [protected, inherited]
std::string MTKpp::baseParser::errorMessage [protected, inherited]
unsigned int MTKpp::baseParser::NUM_INDENTS_PER_SPACE [protected, inherited]

The documentation for this class was generated from the following files:

Generated on Fri Dec 23 2011 09:28:58 for MTK++ by Doxygen 1.7.5.1