OSgams2osil Class Reference

Creating a OSInstance from a GAMS model given as GAMS Modeling Object (GMO). More...

#include <OSgams2osil.hpp>

Collaboration diagram for OSgams2osil:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OSgams2osil (struct gmoRec *gmo_=NULL)
 OSgams2osil (std::string gamsControlFile)
 ~OSgams2osil ()
bool initGMO (const char *datfile)
bool createOSInstance ()
 Creates an OSInstance from the GAMS smag instance representation.
OSInstancetakeOverOSInstance ()
 Gives OSInstance and ownership to calling function.
OSInstancegetOSInstance ()
 Gives OSInstances but keeps ownership.

Public Attributes

OSInstanceosinstance

Private Member Functions

OSnLNodeparseGamsInstructions (int codelen, int *opcodes, int *fields, int constantlen, double *constants)

Private Attributes

struct gevRec * gev
struct gmoRec * gmo

Detailed Description

Creating a OSInstance from a GAMS model given as GAMS Modeling Object (GMO).

Definition at line 22 of file OSgams2osil.hpp.


Constructor & Destructor Documentation

OSgams2osil::OSgams2osil ( struct gmoRec *  gmo_ = NULL  ) 
OSgams2osil::OSgams2osil ( std::string  gamsControlFile  ) 

Definition at line 28 of file OSgams2osil.cpp.

OSgams2osil::~OSgams2osil (  ) 

Definition at line 34 of file OSgams2osil.cpp.


Member Function Documentation

OSnLNode * OSgams2osil::parseGamsInstructions ( int  codelen,
int *  opcodes,
int *  fields,
int  constantlen,
double *  constants 
) [private]

Definition at line 369 of file OSgams2osil.cpp.

bool OSgams2osil::initGMO ( const char *  datfile  ) 

Definition at line 46 of file OSgams2osil.cpp.

bool OSgams2osil::createOSInstance (  ) 

Creates an OSInstance from the GAMS smag instance representation.

Returns:
whether the instance is created successfully.

Definition at line 119 of file OSgams2osil.cpp.

OSInstance * OSgams2osil::takeOverOSInstance (  ) 

Gives OSInstance and ownership to calling function.

This object forgets about the created instance.

Definition at line 362 of file OSgams2osil.cpp.

OSInstance* OSgams2osil::getOSInstance (  )  [inline]

Gives OSInstances but keeps ownership.

Destruction will destruct OSInstance.

Definition at line 55 of file OSgams2osil.hpp.


Member Data Documentation

struct gevRec* OSgams2osil::gev [read, private]

Definition at line 25 of file OSgams2osil.hpp.

struct gmoRec* OSgams2osil::gmo [read, private]

Definition at line 26 of file OSgams2osil.hpp.

Definition at line 32 of file OSgams2osil.hpp.


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

Generated on 16 Feb 2012 by  doxygen 1.6.1