MTK++ Latest version: 0.2.0

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

base class to all parsers More...

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

Inheritance diagram for MTKpp::baseParser:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 baseParser ()
 baseParser Constructor
virtual ~baseParser ()
 baseParser Destructor
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

std::ofstream outputFileStream
 Output File Stream.
bool bError
 Error occured.
std::string errorMessage
 Error message.
unsigned int NUM_INDENTS_PER_SPACE

Detailed Description

base class to all parsers

Author:
Martin Peters
Version:
0.1
Date:
2005

Constructor & Destructor Documentation

MTKpp::baseParser::baseParser ( )

baseParser Constructor

References bError, errorMessage, and NUM_INDENTS_PER_SPACE.

MTKpp::baseParser::~baseParser ( ) [virtual]

baseParser Destructor


Member Function Documentation

void MTKpp::baseParser::Read ( ) [virtual]

Read function.

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

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

Write function.

References outputFileStream.

Referenced by main().

std::string MTKpp::baseParser::determineElement ( std::string &  name)

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]
bool MTKpp::baseParser::getError ( ) [inline]

Error handling within dcParser.

Returns:
error

References bError.

Referenced by main().

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

Error handling within Parsers.

Returns:
error message

References errorMessage.

Referenced by main().


Member Data Documentation

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

Output File Stream.

Referenced by OpenFile().

bool MTKpp::baseParser::bError [protected]

Error occured.

Referenced by baseParser(), getError(), and setError().

std::string MTKpp::baseParser::errorMessage [protected]
unsigned int MTKpp::baseParser::NUM_INDENTS_PER_SPACE [protected]

Referenced by baseParser().


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

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