GAMSlinks  0.4
OSrL2Smag.hpp
Go to the documentation of this file.
1 // Copyright (C) GAMS Development 2007
2 // All Rights Reserved.
3 // This code is published under the Common Public License.
4 //
5 // $Id: OSrL2Smag.hpp 510 2008-08-16 19:31:27Z stefan $
6 //
7 // Authors: Stefan Vigerske
8 
9 #ifndef OSRL2SMAG_HPP_
10 #define OSRL2SMAG_HPP_
11 
12 #include "GAMSlinksConfig.h"
13 
14 #ifdef HAVE_CSTDLIB
15 #include <cstdlib>
16 #else
17 #ifdef HAVE_STDLIB_H
18 #include <stdlib.h>
19 #else
20 #error "don't have header file for stdlib"
21 #endif
22 #endif
23 
24 #ifdef HAVE_CSTDIO
25 #include <cstdio>
26 #else
27 #ifdef HAVE_STDIO_H
28 #include <stdio.h>
29 #else
30 #error "don't have header file for stdio"
31 #endif
32 #endif
33 
34 struct smagRec;
35 class OSResult;
36 
39 class OSrL2Smag {
40 public:
44  OSrL2Smag(struct smagRec* smag_);
45 
49 
53  void writeSolution(OSResult& osresult);
54 
58  void writeSolution(std::string& osrl);
59 
60 private:
61  struct smagRec* smag;
62 };
63 
64 
65 #endif /*OSRL2SMAG_HPP_*/
struct smagRec * smag
Definition: OSrL2Smag.hpp:61
void writeSolution(OSResult &osresult)
Writes a GAMS solution file with the result given as OSResult object.
OSrL2Smag(struct smagRec *smag_)
Constructor.
Reads an optimization result and writes it into a gams solution file using the SMAG I/O library...
Definition: OSrL2Smag.hpp:39
~OSrL2Smag()
Destructor.
Definition: OSrL2Smag.hpp:48