ChemdictParser Class Reference

#include <chemdict_parser.hh>

Inherits ost::io::StarParser, and ost::io::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)

Detailed Description

Definition at line 41 of file chemdict_parser.hh.


Constructor & Destructor Documentation

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

Definition at line 43 of file chemdict_parser.hh.

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

Definition at line 43 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:
header describes the row format
columns contains 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:
header describes the row format
columns contains 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 62 of file chemdict_parser.hh.

void SetCompoundLib ( const conop::CompoundLibPtr lib  )  [inline]

Definition at line 62 of file chemdict_parser.hh.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1