My Project
OSrLParserData.h
Go to the documentation of this file.
1
15#ifndef OSRLPARSERDATA_H
16#define OSRLPARSERDATA_H
17
18#include "OSnLNode.h"
19#include <vector>
20#include <sstream>
21
22
23
32 std::string name;
33
37 std::string description;
38
42 std::string value;
43
47 int numberOfVar;
48
55 std::string *otherVarText;
56
57
64 int *otherVarIndex;
65
66};
67
68
81class OSrLParserData{
82public:
83
86
87 //** the OSrLParserData class destructor */
89
90
92 std::string statusType;
93
95 std::string statusDescription;
96
99 double timeValue;
100 std::string timeType;
101 std::string timeCategory;
102 std::string timeUnit;
103 std::string timeDescription;
104
107 int numberOfTimes;
108
110 std::string tmpOtherValue;
111 std::string tmpOtherName;
112 std::string tmpOtherDescription;
113
116 void* scanner;
117
120
123
126
129
131 int kounter;
132
134 int iOther;
135
137 int ivar;
138
140 double tempVal;
141
143 std::ostringstream outStr;
144
149
152
157
162
167
172
177
180
182 double **dualSolution;
183
184
185
186
189
191 std::vector<OtherVariableResultStruct*> otherVarVec;
192
196 char *errorText;
197};
198
199#endif /*OSRLPARSERDATA_H_*/
This file defines the OSnLNode class along with its derived classes.
The OSrLParserData Class.
int numberOfVariables
total number of variables in the model instance
int ivar
a temporary counter to count second-level objects
std::string tmpOtherName
double timeValue
the next few variables store a time measurement and associated attribute values
char * errorText
if the parser finds invalid text it is held here and we delete if the file was not valid
int numberOfOtherVariableResults
the number of types of variable results other than the value of the variable
double ** primalSolution
for each solution we have a pointer to each primal solution
int numberOfObjectives
total number of Objectives in the model instance
std::string statusDescription
the status Description of the solution
bool generalStatusTypePresent
set generalStatusTypePresent to true if there is a general status attribute parsed
std::string timeDescription
bool otherNamePresent
set otherNamePresent to true if there is a name attribute in anotherVarResult
std::string tmpOtherDescription
double tempVal
a temporary variable to hold an integer or double value
int * objectiveIdx
pointer to the array of objective function indexes in each solution
OSrLParserData()
the OSrLParserData class constructor
void * scanner
scanner is used to store data in a reentrant lexer we use this to pass an OSrLParserData object to th...
int iOther
a temporary counter to count other variable, objective and constraint results
int numberOfSolutions
number of result solutions
int numberOfConstraints
total number of constraints in the model instance
struct OtherVariableResultStruct * otherVarStruct
a pointer to an OtherVariableResultStruct structure
std::string timeUnit
std::string tmpOtherValue
Provide temporary storage for attribute values associated with an OtherVarResult.
double ** dualSolution
for each solution we have a pointer to each dual solution
int kounter
a temporary counter to count variables, number of attributes, etc.
std::vector< OtherVariableResultStruct * > otherVarVec
store a vector of pointers to otherVarVec structures
int solutionIdx
and index on which solution we have found
std::string statusType
the status type of the result
std::string timeCategory
std::string timeType
double ** objectiveValues
for each solution we have a pointer to the value of each objective function
int numberOfTimes
There could be more than one time measurement; numberOfTimes stores the number of them.
bool statusTypePresent
set statusTypePresent to true if there is a status attribute parsed
std::ostringstream outStr
a temporary variable to hold an output stream value
A structure to information about an OtherVariableResult element.
int * otherVarIndex
otherVarIndex is a pointer to an array with number of elements equal to the number of variables.
std::string name
name holds the text of the name attribute of the OtherVariableResult element
int numberOfVar
numberOfVar holds the number of variables in the array of the OtherVariableResult element
std::string * otherVarText
otherVarText is a pointer to an array with number of elements equal to the number of variables.
std::string value
value holds the text of the value attribute of the OtherVariableResult element
std::string description
description holds the text of the description attribute of the OtherVariableResult element