Class to provide access to a GAMS dictionary.
More...
#include <GamsDictionary.hpp>
|
| GamsDictionary (GamsHandler &gams_) |
| Constructor. More...
|
|
| ~GamsDictionary () |
| Destructor. More...
|
|
bool | readDictionary () |
| Reads the GAMS dictionary. More...
|
|
bool | haveNames () |
| Indicates whether a dictionary has been successfully read. More...
|
|
char * | getColName (int colnr, char *buffer, int bufLen) |
| The name of a column. More...
|
|
char * | getRowName (int rownr, char *buffer, int bufLen) |
| The name of a row. More...
|
|
char * | getObjName (char *buffer, int bufLen) |
| The name of the objective. More...
|
|
char * | getColText (int colnr, char *buffer, int bufLen) |
| The descriptive text of a column. More...
|
|
char * | getRowText (int rownr, char *buffer, int bufLen) |
| The descriptive text of a row. More...
|
|
char * | getObjText (char *buffer, int bufLen) |
| The descriptive text of the objective. More...
|
|
|
char * | constructName (char *buffer, int bufLen, int lSym, int *uelIndices, int nIndices) |
|
Class to provide access to a GAMS dictionary.
Definition at line 23 of file GamsDictionary.hpp.
Constructor.
- Parameters
-
gams_ | A GamsHandler that gives access to the GAMS dictionary file. |
GamsDictionary::~GamsDictionary |
( |
| ) |
|
char* GamsDictionary::constructName |
( |
char * |
buffer, |
|
|
int |
bufLen, |
|
|
int |
lSym, |
|
|
int * |
uelIndices, |
|
|
int |
nIndices |
|
) |
| |
|
private |
bool GamsDictionary::readDictionary |
( |
| ) |
|
Reads the GAMS dictionary.
- Returns
- True if successfull, false otherwise.
bool GamsDictionary::haveNames |
( |
| ) |
|
|
inline |
Indicates whether a dictionary has been successfully read.
Definition at line 50 of file GamsDictionary.hpp.
References dict.
char* GamsDictionary::getColName |
( |
int |
colnr, |
|
|
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The name of a column.
@param colnr column index
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
char* GamsDictionary::getRowName |
( |
int |
rownr, |
|
|
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The name of a row.
@param rownr row index
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
char* GamsDictionary::getObjName |
( |
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The name of the objective.
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
char* GamsDictionary::getColText |
( |
int |
colnr, |
|
|
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The descriptive text of a column.
@param colnr col index
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
char* GamsDictionary::getRowText |
( |
int |
rownr, |
|
|
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The descriptive text of a row.
@param rownr row index
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
char* GamsDictionary::getObjText |
( |
char * |
buffer, |
|
|
int |
bufLen |
|
) |
| |
The descriptive text of the objective.
@param buffer a buffer for writing the name in
@param bufLen length of the buffer
- Returns
- buffer on success, NULL on failure
struct dictRec* GamsDictionary::dict |
|
private |
The documentation for this class was generated from the following file: