GamsDictionary.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2008
00002 // All Rights Reserved.
00003 // This code is published under the Common Public License.
00004 //
00005 // $Id: GamsDictionary.hpp 510 2008-08-16 19:31:27Z stefan $
00006 //
00007 // Author: Stefan Vigerske
00008 
00009 #ifndef GAMSDICTIONARY_HPP_
00010 #define GAMSDICTIONARY_HPP_
00011 
00012 #include "GAMSlinksConfig.h"
00013 
00014 #include "GamsHandler.hpp"
00015 
00016 extern "C" struct dictRec;
00017 
00018 class GamsBCH;
00019 class GamsGDX;
00020 
00023 class GamsDictionary {
00024         friend class GamsBCH;
00025         friend class GamsGDX;
00026 private:
00027         GamsHandler& gams;
00028         
00029         struct dictRec* dict;
00030         
00031         char* constructName(char* buffer, int bufLen, int lSym, int* uelIndices, int nIndices);
00032 
00033 public:
00037         GamsDictionary(GamsHandler& gams_);
00038         
00041         ~GamsDictionary();
00042         
00046         bool readDictionary();
00047         
00050         bool haveNames() { return dict; }
00051         
00058         char* getColName(int colnr, char *buffer, int bufLen);
00059 
00066         char* getRowName(int rownr, char *buffer, int bufLen);
00067         
00073         char* getObjName(char* buffer, int bufLen);
00074         
00081         char* getColText(int colnr, char* buffer, int bufLen);
00082         
00089         char* getRowText(int rownr, char* buffer, int bufLen);
00090 
00096         char* getObjText(char* buffer, int bufLen);
00097 
00098 }; // class GamsDictionary
00099 
00100 #endif /*GAMSDICTIONARY_HPP_*/

Generated on Tue Dec 30 03:01:24 2008 for GAMSlinks by  doxygen 1.4.7