00001
00002
00003
00004
00005
00006
00007
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 };
00099
00100 #endif