OSoLReader Class Reference

Used to read an OSoL string. More...

#include <OSoLReader.h>

Collaboration diagram for OSoLReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OSoLReader ()
 Default constructor.
 ~OSoLReader ()
 Class destructor.
OSOptionreadOSoL (const std::string &osol) throw (ErrorClass)
 parse the OSoL solver options.

Private Attributes

OSOptionm_osoption
 m_osoption is the OSOption object returned by the OSoLReader
OSoLParserDatam_parserData
 m_parserData is the object used in the parser to temporarily store data

Detailed Description

Used to read an OSoL string.

Remarks:
This class wraps around the OSoL parser and sends the parser an OSoL string and is returned an OSOption object.

Definition at line 38 of file OSoLReader.h.


Constructor & Destructor Documentation

OSoLReader::OSoLReader (  ) 

Default constructor.

Definition at line 34 of file OSoLReader.cpp.

References m_osoption, m_parserData, osollex_init(), osolset_extra(), and OSoLParserData::scanner.

OSoLReader::~OSoLReader (  ) 

Class destructor.

Definition at line 58 of file OSoLReader.cpp.

References m_osoption, m_parserData, osollex_destroy(), and OSoLParserData::scanner.


Member Function Documentation

OSOption * OSoLReader::readOSoL ( const std::string &  osol  )  throw (ErrorClass)

parse the OSoL solver options.

Parameters:
osol is a string that holds the solver options.
Returns:
the instance as an OSOption object.

Definition at line 67 of file OSoLReader.cpp.

References ErrorClass::errormsg, and yygetOSOption().

Referenced by main(), OS_DipInterface::readOSoL(), IpoptSolver::setSolverOptions(), CouenneSolver::setSolverOptions(), CoinSolver::setSolverOptions(), BonminSolver::setSolverOptions(), and CouenneSolver::solve().


Member Data Documentation

OSOption* OSoLReader::m_osoption [private]

m_osoption is the OSOption object returned by the OSoLReader

Definition at line 66 of file OSoLReader.h.

Referenced by OSoLReader(), and ~OSoLReader().

OSoLParserData* OSoLReader::m_parserData [private]

m_parserData is the object used in the parser to temporarily store data

Definition at line 70 of file OSoLReader.h.

Referenced by OSoLReader(), and ~OSoLReader().


The documentation for this class was generated from the following files:
Generated on Sun Jan 2 03:06:36 2011 by  doxygen 1.4.7