OS  2.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OSrLParserData.h
Go to the documentation of this file.
1 /* $Id: OSrLParserData.h 4948 2015-02-06 21:04:50Z tkr $ */
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 {
85 public:
86 
88  OSrLParserData( );
89 
90  //** the OSrLParserData class destructor */
91  ~OSrLParserData() ;
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;
115  std::string tmpOtherDescription;
116 
118  std::string itemContent;
119 
122  void* scanner;
123 
125  unsigned int numberOfSolutions;
126 
129 
132 
135 
140 
145 
150 
155 
157 
162 
164  int numberOf;
165 
167  int kounter;
168 
170  int iOther;
171 
173  int ivar;
174 
176  int idx;
177 
179  double tempVal;
180 
182  int tempInt;
183 
185  std::string tempStr;
186 
188  std::string name;
189 
191  std::ostringstream outStr;
192 
197 
202 
207 
209  unsigned int solutionIdx;
210 
212  int mult;
213 
215  int incr;
216 
245 
251  std::string categoryAttribute;
252  std::string descriptionAttribute;
253  std::string nameAttribute;
254  std::string typeAttribute;
255  std::string varTypeAttribute;
256  std::string objTypeAttribute;
257  std::string conTypeAttribute;
258  std::string enumTypeAttribute;
259  std::string unitAttribute;
260  std::string valueAttribute;
261 
262 
266 
279 
289 
299 
314 
317 
318 
322  std::vector<IndexValuePair*> primalVals;
323 
324 
328  std::vector<IndexValuePair*> objVals;
329 
330 
334  std::vector<IndexValuePair*> dualVals;
335 
336 
339 
341  std::vector<OtherVariableResultStruct*> otherVarVec;
342 
346  char *errorText;
347 
351  std::string parser_errors;
352 
356 };
357 
358 #endif /*OSRLPARSERDATA_H_*/
struct IndexValuePair * dualValPair
for each solution we will build a vector of index-value pairs of dual values
std::string tmpOtherName
double timeValue
the next few variables store a time measurement and associated attribute values
The OSrLParserData Class.
bool jobUsedDiskSpacePresent
bool categoryAttributePresent
std::string tmpOtherValue
Provide temporary storage for attribute values associated with an OtherVarResult. ...
bool generalInstanceNamePresent
bool numberOfObjIdxAttributePresent
int numberOfOtherObjectiveResults
the number of types of objective results other than the value of the objective
bool generalStatusPresent
set general...Present to true if the corresponding element (child of the &lt;general&gt; element) has been ...
bool generalMessagePresent
std::vector< OtherVariableResultStruct * > otherVarVec
store a vector of pointers to otherVarVec structures
std::string timeCategory
std::string categoryAttribute
many attributes, particularly those that return strings, are used multiple times, and the parser uses...
bool numberOfVarIdxAttributePresent
bool numberOfConAttributePresent
bool objTypeAttributePresent
std::string timeUnit
std::string nameAttribute
int kounter
a temporary counter to count variables, number of attributes, etc.
int numberOfObj
number of Objectives in a solution instance may change from solution to solution
int numberOfVar
numberOfVar holds the number of variables in the array of the OtherVariableResult element ...
char * errorText
if the parser finds invalid text it is held here and we delete if the file was not valid ...
bool systemAvailableDiskSpacePresent
std::string * otherVarText
otherVarText is a pointer to an array with number of elements equal to the number of variables...
bool otherServiceResultsPresent
std::string enumTypeAttribute
struct IndexValuePair * objValPair
for each solution we will build a vector of index-value pairs of objective function values ...
std::vector< IndexValuePair * > dualVals
bool numberOfVarAttributePresent
int ivar
a temporary counter to count second-level objects
bool weightedObjAttributePresent
bool numberOfEnumerationsAttributePresent
bool enumTypeAttributePresent
bool jobUsedCPUNumberPresent
bool generalSolverInvokedPresent
int * otherVarIndex
otherVarIndex is a pointer to an array with number of elements equal to the number of variables...
std::ostringstream outStr
a temporary variable to hold an output stream value
bool conTypeAttributePresent
unsigned int numberOfSolutions
number of result solutions
bool systemAvailableCPUSpeedPresent
bool suppressFurtherErrorMessages
bool jobTimingInformationPresent
bool otherGeneralResultsPresent
bool numberOfObjAttributePresent
std::string tempStr
a temporary variable to hold a string
int numberOf
a temporary variable to hold the number of entries in a list
bool jobStatusPresent
set job...Present to true if the corresponding element (child of the &lt;job&gt; element) has been parsed ...
int tempInt
a temporary variable to hold an integer value
std::string valueAttribute
int numberOfVar
number of variables in a solution instance, may change from solution to solution
int incr
an increment for compact representation of an array (used with mult)
void * scanner
scanner is used to store data in a reentrant lexer we use this to pass an OSrLParserData object to th...
std::string tmpOtherDescription
std::string statusDescription
the status Description of the solution
struct OtherVariableResultStruct * otherVarStruct
a pointer to an OtherVariableResultStruct structure
bool systemInformationPresent
set system...Present to true if the corresponding element (child of the &lt;system&gt; element) has been pa...
A structure to information about an OtherVariableResult element.
std::string timeType
std::vector< IndexValuePair * > primalVals
OSrLParserData()
the OSrLParserData class constructor
struct IndexValuePair * primalValPair
for each solution we will build a vector of index-value pairs of primal values
bool jobUsedCPUSpeedPresent
bool generalTimeStampPresent
std::string descriptionAttribute
bool numberOfConIdxAttributePresent
int numberOfVarIdx
number of variables indices in other variable result enumeration, may change from solution to solutio...
int iOther
a temporary counter to count other variable, objective and constraint results
std::string objTypeAttribute
int mult
a multiplier or repeat count for compact representation of an array
std::string statusType
the status type of the result
std::string description
description holds the text of the description attribute of the OtherVariableResult element ...
bool systemAvailableMemoryPresent
int numberOfTimes
There could be more than one time measurement; numberOfTimes stores the number of them...
double tempVal
a temporary variable to hold an integer or double value
bool numberAttributePresent
a number of boolean vriables to track which of the attributes have been found in the present list...
This file defines the OSnLNode class along with its derived classes.
std::string varTypeAttribute
bool serviceUtilizationPresent
A commonly used structure holding an index-value pair.
Definition: OSGeneral.h:630
std::string value
value holds the text of the value attribute of the OtherVariableResult element
int numberOfObjectives
total number of Objectives in the model instance
bool valueAttributePresent
std::string timeDescription
bool generalServiceURIPresent
std::string name
name holds the text of the name attribute of the OtherVariableResult element
int numberOfIdx
number of indexes in a category of basis elements, may change from category to category and solution ...
bool generalServiceNamePresent
std::string unitAttribute
int numberOfOtherVariableResults
the number of types of variable results other than the value of the variable
bool otherSystemResultsPresent
std::string name
a temporary variable to hold a variable, objective or constraint name
bool ignoreDataAfterErrors
two booleans to govern the behavior after an error has been encountered
bool scheduledStartTimePresent
int numberOfConstraints
total number of constraints in the model instance
int numberOfOtherConstraintResults
the number of types of constraint results other than the value of the constraint
unsigned int solutionIdx
an index of which solution we have found
bool serviceCurrentStatePresent
set service...Present to true if the corresponding element (child of the &lt;service&gt; element) has been ...
int numberOfCon
number of constraints in a solution instance, may change from solution to solution ...
std::string itemContent
Provide temporary storage for a single &lt;record&gt; contained in an OtherSolutionResult.
int idx
a temporary variable to hold an integer index value
std::string typeAttribute
bool timeServiceStartedPresent
bool varTypeAttributePresent
std::vector< IndexValuePair * > objVals
bool systemAvailableCPUNumberPresent
bool actualStartTimePresent
std::string parser_errors
used to accumulate error message so the parser does not die on the first error encountered ...
std::string conTypeAttribute
int numberOfVariables
total number of variables in the model instance
bool serviceCurrentJobCountPresent
bool descriptionAttributePresent
bool serviceTotalJobsSoFarPresent
bool otherJobResultsPresent