OSiLReader Class Reference

Used to read an OSiL string. More...

#include <OSiLReader.h>

Collaboration diagram for OSiLReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OSiLReader ()
 Default constructor.
 ~OSiLReader ()
 Class destructor.
OSInstancereadOSiL (std::string *osil) throw (ErrorClass)
 parse the OSiL model instance.

Private Attributes

OSInstancem_osinstance
 osintance is the OSInstance object returned by the OSiLReader

Detailed Description

Used to read an OSiL string.

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

Definition at line 38 of file OSiLReader.h.


Constructor & Destructor Documentation

OSiLReader::OSiLReader (  ) 

Default constructor.

Definition at line 21 of file OSiLReader.cpp.

OSiLReader::~OSiLReader (  ) 

Class destructor.

Definition at line 24 of file OSiLReader.cpp.

References m_osinstance.


Member Function Documentation

OSInstance * OSiLReader::readOSiL ( std::string *  osil  )  throw (ErrorClass)

parse the OSiL model instance.

Parameters:
osil a string that holds the problem instance.
Returns:
the instance as an OSInstance object.

Definition at line 29 of file OSiLReader.cpp.

References ErrorClass::errormsg, and yygetOSInstance().

Referenced by main(), LindoSolver::solve(), KnitroSolver::solve(), IpoptSolver::solve(), and CoinSolver::solve().


Member Data Documentation

OSInstance* OSiLReader::m_osinstance [private]

osintance is the OSInstance object returned by the OSiLReader

Definition at line 66 of file OSiLReader.h.

Referenced by ~OSiLReader().


The documentation for this class was generated from the following files:
Generated on Thu May 15 22:15:36 2008 by  doxygen 1.4.7