OpenStructure
Public Member Functions
ChemdictParser Class Reference

#include <chemdict_parser.hh>

Inherits StarParser, and StarParser.

Public Member Functions

 ChemdictParser (std::istream &stream, conop::Compound::Dialect dialect)
virtual bool OnBeginData (const StringRef &data_name)
virtual bool OnBeginLoop (const StarLoopDesc &header)
virtual void OnDataRow (const StarLoopDesc &header, const std::vector< StringRef > &columns)
virtual void OnDataItem (const StarDataItem &item)
virtual void OnEndData ()
void SetCompoundLib (const conop::CompoundLibPtr &lib)
 ChemdictParser (std::istream &stream, conop::Compound::Dialect dialect)
virtual bool OnBeginData (const StringRef &data_name)
virtual bool OnBeginLoop (const StarLoopDesc &header)
virtual void OnDataRow (const StarLoopDesc &header, const std::vector< StringRef > &columns)
virtual void OnDataItem (const StarDataItem &item)
virtual void OnEndData ()
void SetCompoundLib (const conop::CompoundLibPtr &lib)
- Public Member Functions inherited from StarParser
 StarParser (std::istream &istream)
virtual ~StarParser ()
virtual void OnEndLoop ()
void Parse ()
 StarParser (std::istream &istream)
virtual ~StarParser ()
virtual void OnEndLoop ()
void Parse ()

Additional Inherited Members

- Static Public Member Functions inherited from StarParser
static bool SplitLine (const StringRef &line, std::vector< StringRef > &parts, bool clear=true)
static bool SplitLine (const StringRef &line, std::vector< StringRef > &parts, bool clear=true)

Detailed Description

Definition at line 39 of file chemdict_parser.hh.


Constructor & Destructor Documentation

ChemdictParser ( std::istream &  stream,
conop::Compound::Dialect  dialect 
)
inline

Definition at line 41 of file chemdict_parser.hh.

ChemdictParser ( std::istream &  stream,
conop::Compound::Dialect  dialect 
)
inline

Definition at line 41 of file chemdict_parser.hh.


Member Function Documentation

virtual bool OnBeginData ( const StringRef data_name)
virtual

invoked when a new data control structure is encountered

Returns:
When true, for each data-item belonging to the data block, OnDataItem() is invoked. For every loop, OnBeginLoop() is called.

Reimplemented from StarParser.

virtual bool OnBeginData ( const StringRef data_name)
virtual

invoked when a new data control structure is encountered

Returns:
When true, for each data-item belonging to the data block, OnDataItem() is invoked. For every loop, OnBeginLoop() is called.

Reimplemented from StarParser.

virtual bool OnBeginLoop ( const StarLoopDesc header)
virtual

called when a loop is encountered

Returns:
When true, for each row in the loop, OnDataRow() is returned. If false, the loop is skipped.

Reimplemented from StarParser.

virtual bool OnBeginLoop ( const StarLoopDesc header)
virtual

called when a loop is encountered

Returns:
When true, for each row in the loop, OnDataRow() is returned. If false, the loop is skipped.

Reimplemented from StarParser.

virtual void OnDataItem ( const StarDataItem item)
virtual

invoked when a data item is encountered

Reimplemented from StarParser.

virtual void OnDataItem ( const StarDataItem item)
virtual

invoked when a data item is encountered

Reimplemented from StarParser.

virtual void OnDataRow ( const StarLoopDesc header,
const std::vector< StringRef > &  columns 
)
virtual

invoked when a data row in a loop is encountered.

Parameters:
headerdescribes the row format
columnscontains the data columns

Reimplemented from StarParser.

virtual void OnDataRow ( const StarLoopDesc header,
const std::vector< StringRef > &  columns 
)
virtual

invoked when a data row in a loop is encountered.

Parameters:
headerdescribes the row format
columnscontains the data columns

Reimplemented from StarParser.

virtual void OnEndData ( )
virtual

called when leaving a datasection. Will only be invoked when OnBeginData() returned true.

Reimplemented from StarParser.

virtual void OnEndData ( )
virtual

called when leaving a datasection. Will only be invoked when OnBeginData() returned true.

Reimplemented from StarParser.

void SetCompoundLib ( const conop::CompoundLibPtr lib)
inline

Definition at line 59 of file chemdict_parser.hh.

void SetCompoundLib ( const conop::CompoundLibPtr lib)
inline

Definition at line 59 of file chemdict_parser.hh.


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