OSgams2osil.hpp
Go to the documentation of this file.
1 // Copyright (C) GAMS Development and others 2008-2009
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: OSgams2osil.hpp 4263 2011-09-09 20:19:26Z Gassmann $
6 //
7 // Author: Stefan Vigerske
8 
9 #ifndef OSGAMS2OSIL_HPP_
10 #define OSGAMS2OSIL_HPP_
11 
12 #include <string>
13 
14 class OSInstance;
15 class OSnLNode;
16 
17 struct gmoRec;
18 struct gevRec;
19 
23 {
24 private:
25  struct gevRec* gev;
26  struct gmoRec* gmo;
27 
28  OSnLNode* parseGamsInstructions(int codelen, int* opcodes, int* fields, int constantlen, double* constants);
29 
30 
31 public:
33 
34  OSgams2osil(struct gmoRec* gmo_ = NULL);
35 
36  OSgams2osil( std::string gamsControlFile);
37 
38  ~OSgams2osil();
39 
40  bool initGMO(const char* datfile);
41 
45  bool createOSInstance();
46 
51 
56  {
57  return osinstance;
58  }
59 };
60 
61 
62 #endif /*GAMS2OSIL_HPP_*/
struct gevRec * gev
Definition: OSgams2osil.hpp:25
OSnLNode * parseGamsInstructions(int codelen, int *opcodes, int *fields, int constantlen, double *constants)
OSInstance * takeOverOSInstance()
Gives OSInstance and ownership to calling function.
bool createOSInstance()
Creates an OSInstance from the GAMS smag instance representation.
OSInstance * osinstance
Definition: OSgams2osil.hpp:32
OSInstance * getOSInstance()
Gives OSInstances but keeps ownership.
Definition: OSgams2osil.hpp:55
bool initGMO(const char *datfile)
Definition: OSgams2osil.cpp:46
struct gmoRec * gmo
Definition: OSgams2osil.hpp:26
OSgams2osil(struct gmoRec *gmo_=NULL)
The in-memory representation of an OSiL instance..
Definition: OSInstance.h:2262
The OSnLNode Class for nonlinear expressions.
Definition: OSnLNode.h:179
Creating a OSInstance from a GAMS model given as GAMS Modeling Object (GMO).
Definition: OSgams2osil.hpp:22