15#ifndef OSRLPARSERDATA_H
16#define OSRLPARSERDATA_H
143 std::ostringstream
outStr;
191 std::vector<OtherVariableResultStruct*>
otherVarVec;
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
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 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
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