My Project
OSrLParserData.h
Go to the documentation of this file.
1/* $Id$ */
14#ifndef OSRLPARSERDATA_H
15#define OSRLPARSERDATA_H
16
17#include "OSnLNode.h"
18#include "OSGeneral.h"
19
20#include <vector>
21#include <sstream>
22
23
24
30{
34 std::string name;
35
39 std::string description;
40
44 std::string value;
45
50
57 std::string *otherVarText;
58
59
67
68};
69
70
84{
85public:
86
89
90 //** the OSrLParserData class destructor */
92
93
95 std::string statusType;
96
98 std::string statusDescription;
99
102 double timeValue;
103 std::string timeType;
104 std::string timeCategory;
105 std::string timeUnit;
106 std::string timeDescription;
107
111
113 std::string tmpOtherValue;
114 std::string tmpOtherName;
116
118 std::string itemContent;
119
122 void* scanner;
123
125 unsigned int numberOfSolutions;
126
129
132
135
140
145
150
155
156
161
164
167
170
172 int ivar;
173
175 int idx;
176
178 double tempVal;
179
182
184 std::string tempStr;
185
187 std::string name;
188
190 std::ostringstream outStr;
191
196
201
206
211
216
218 unsigned int solutionIdx;
219
221 int mult;
222
224 int incr;
225
253
259 std::string categoryAttribute;
261 std::string nameAttribute;
262 std::string typeAttribute;
263 std::string varTypeAttribute;
264 std::string objTypeAttribute;
265 std::string conTypeAttribute;
266 std::string unitAttribute;
267 std::string valueAttribute;
268 std::string solverAttribute;
269
270
274
287
297
307
322
325
326
330 std::vector<IndexValuePair*> primalVals;
331
332
336 std::vector<IndexValuePair*> objVals;
337
338
342 std::vector<IndexValuePair*> dualVals;
343
344
347
349 std::vector<OtherVariableResultStruct*> otherVarVec;
350
355
359 std::string parser_errors;
360
364};
365
366#endif /*OSRLPARSERDATA_H_*/
This file defines the OSnLNode class along with its derived classes.
The OSrLParserData Class.
std::string itemContent
Provide temporary storage for a single <record> contained in an OtherSolutionResult.
bool systemAvailableCPUSpeedPresent
bool jobStatusPresent
set job...Present to true if the corresponding element (child of the <job> element) has been parsed
int numberOfVariables
total number of variables in the model instance
std::vector< IndexValuePair * > primalVals
int ivar
a temporary counter to count second-level objects
bool serviceCurrentStatePresent
set service...Present to true if the corresponding element (child of the <service> element) has been ...
std::string tmpOtherName
unsigned int numberOfSolutions
number of result solutions
double timeValue
the next few variables store a time measurement and associated attribute values
std::vector< IndexValuePair * > objVals
bool numberOfConIdxAttributePresent
bool serviceTotalJobsSoFarPresent
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
int idx
a temporary variable to hold an integer index value
bool numberOfObjAttributePresent
std::string valueAttribute
bool jobTimingInformationPresent
bool otherServiceResultsPresent
int numberOfObjectives
total number of Objectives in the model instance
int numberOfObj
number of Objectives in a solution instance may change from solution to solution
std::string statusDescription
the status Description of the solution
bool systemAvailableCPUNumberPresent
std::string timeDescription
bool numberOfConAttributePresent
bool generalSolverInvokedPresent
std::string varTypeAttribute
std::string tmpOtherDescription
bool categoryAttributePresent
std::string conTypeAttribute
double tempVal
a temporary variable to hold an integer or double value
bool descriptionAttributePresent
OSrLParserData()
the OSrLParserData class constructor
bool weightedObjAttributePresent
bool systemInformationPresent
set system...Present to true if the corresponding element (child of the <system> element) has been pa...
bool generalServiceNamePresent
void * scanner
scanner is used to store data in a reentrant lexer we use this to pass an OSrLParserData object to th...
bool suppressFurtherErrorMessages
int iOther
a temporary counter to count other variable, objective and constraint results
int mult
a multiplier or repeat count for compact representation of an array
int numberOfVar
number of variables in a solution instance, may change from solution to solution
std::string name
a temporary variable to hold a variable, objective or constraint name
int numberOfIdx
number of indexes in a category of basis elements, may change from category to category and solution ...
std::string parser_errors
used to accumulate error message so the parser does not die on the first error encountered
bool generalServiceURIPresent
int numberOfConstraints
total number of constraints in the model instance
bool generalStatusPresent
set general...Present to true if the corresponding element (child of the <general> element) has been ...
std::string categoryAttribute
many attributes, particularly those that return strings, are used multiple times, and the parser uses...
std::string descriptionAttribute
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.
int numberOfVarIdx
number of variables indices in other variable result enumeration, may change from solution to solutio...
int numberOfOtherConstraintResults
the number of types of constraint results other than the value of the constraint
bool scheduledStartTimePresent
std::string solverAttribute
bool systemAvailableDiskSpacePresent
bool numberAttributePresent
a number of boolean vriables to track which of the attributes have been found in the present list.
int numberOfOtherMatrixVariableResults
the number of types of matrix variable results other than the value of the matrix variable
int numberOfOtherMatrixProgrammingResults
the number of types of matrix programming results other than those associated with matrix variables,...
bool timeServiceStartedPresent
struct IndexValuePair * primalValPair
for each solution we will build a vector of index-value pairs of primal values
std::string nameAttribute
bool numberOfVarAttributePresent
bool numberOfObjIdxAttributePresent
int numberOfCon
number of constraints in a solution instance, may change from solution to solution
std::string objTypeAttribute
int tempInt
a temporary variable to hold an integer value
int kounter
a temporary counter to count variables, number of attributes, etc.
int incr
an increment for compact representation of an array (used with mult)
std::vector< OtherVariableResultStruct * > otherVarVec
store a vector of pointers to otherVarVec structures
std::string unitAttribute
bool numberOfVarIdxAttributePresent
bool serviceCurrentJobCountPresent
bool systemAvailableMemoryPresent
std::string statusType
the status type of the result
std::string timeCategory
int numberOfOtherObjectiveResults
the number of types of objective results other than the value of the objective
struct IndexValuePair * dualValPair
for each solution we will build a vector of index-value pairs of dual values
std::string timeType
int numberOf
a temporary variable to hold the number of entries in a list
std::string tempStr
a temporary variable to hold a string
std::vector< IndexValuePair * > dualVals
bool otherGeneralResultsPresent
bool serviceUtilizationPresent
struct IndexValuePair * objValPair
for each solution we will build a vector of index-value pairs of objective function values
unsigned int solutionIdx
an index of which solution we have found
bool generalInstanceNamePresent
bool ignoreDataAfterErrors
two booleans to govern the behavior after an error has been encountered
bool otherSystemResultsPresent
int numberOfTimes
There could be more than one time measurement; numberOfTimes stores the number of them.
std::ostringstream outStr
a temporary variable to hold an output stream value
std::string typeAttribute
A commonly used structure holding an index-value pair.
Definition OSGeneral.h:631
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