00001 // Copyright (C) 2008 GAMS Development and others 00002 // All Rights Reserved. 00003 // This code is published under the Common Public License. 00004 // 00005 // $Id: GamsGDX.hpp 510 2008-08-16 19:31:27Z stefan $ 00006 // 00007 // Author: Stefan Vigerske 00008 00009 #ifndef GAMSGDX_HPP_ 00010 #define GAMSGDX_HPP_ 00011 00012 #include "GAMSlinksConfig.h" 00013 00014 #include "GamsHandler.hpp" 00015 #include "GamsDictionary.hpp" 00016 00017 extern "C" { 00018 struct dictRec; 00019 struct gdxRec; 00020 } 00021 00024 class GamsGDX { 00025 private: 00026 GamsHandler& gams; 00027 GamsDictionary& dict; 00028 00029 struct gdxRec* gdx; 00030 00031 void reportError(int n) const; 00032 00033 public: 00038 GamsGDX(GamsHandler& gams_, GamsDictionary& dict_); 00039 00042 ~GamsGDX(); 00043 00047 bool init(); 00048 00056 bool writePoint(const double* x, const double* rc, double objval, const char* filename) const; 00057 00058 }; 00059 00060 00061 #endif /*GAMSGDX_HPP_*/