00001
00014 #include "OSgLParserData.h"
00015 #include <stdio.h>
00016
00017
00018 OSgLParserData::~OSgLParserData()
00019 {
00020 if (osglIntArray != NULL)
00021 delete[] osglIntArray;
00022 osglIntArray = NULL;
00023 if (osglDblArray != NULL)
00024 delete[] osglDblArray;
00025 osglDblArray = NULL;
00026 if (osglValArray != NULL)
00027 delete[] osglValArray;
00028 osglValArray = NULL;
00029 }
00030
00031
00032 OSgLParserData::OSgLParserData() :
00033 osglIntArray(NULL),
00034 osglCounter(0),
00035 osglTempint(0),
00036 osglDblArray(NULL),
00037 osglValArray(NULL),
00038
00039 fileName(""),
00040 source(""),
00041 fileCreator(""),
00042 licence(""),
00043 fileNamePresent(false),
00044 sourcePresent(false),
00045 fileCreatorPresent(false),
00046 licencePresent(false),
00047
00048 parser_errors(""),
00049 ignoreDataAfterErrors(false),
00050 suppressFurtherErrorMessages(false),
00051 matrix(NULL),
00052 matrixWithMatrixVarIdx(NULL),
00053 matrixWithMatrixObjIdx(NULL),
00054 matrixWithMatrixConIdx(NULL),
00055 matrixVarIndexes(NULL),
00056 matrixObjIndexes(NULL),
00057 matrixConIndexes(NULL),
00058 matrixCounter(0),
00059 nonzeroCounter(0),
00060 tempC(NULL),
00061
00062 numberOfBlocksPresent(false),
00063 numberOfColumnsPresent(false),
00064 numberOfConPresent(false),
00065 numberOfConIdxPresent(false),
00066 numberOfConstraintsPresent(false),
00067 numberOfElPresent(false),
00068 numberOfEnumerationsPresent(false),
00069 numberOfItemsPresent(false),
00070 numberOfMatricesPresent(false),
00071 numberOfMatrixConPresent(false),
00072 numberOfMatrixObjPresent(false),
00073 numberOfMatrixVarPresent(false),
00074 numberOfObjPresent(false),
00075 numberOfObjIdxPresent(false),
00076 numberOfObjectivesPresent(false),
00077 numberOfRowsPresent(false),
00078 numberOfValuesPresent(false),
00079 numberOfVarPresent(false),
00080 numberOfVarIdxPresent(false),
00081 numberOfVariablesPresent(false),
00082
00083 base64SizePresent(false),
00084 baseMatrixIdxPresent(false),
00085 baseMatrixStartRowPresent(false),
00086 baseMatrixStartColPresent(false),
00087 baseMatrixEndRowPresent(false),
00088 baseMatrixEndColPresent(false),
00089 blockRowIdxPresent(false),
00090 blockColIdxPresent(false),
00091 coefPresent(false),
00092 constantPresent(false),
00093 idxPresent(false),
00094 incrPresent(false),
00095 matrixConIdxPresent(false),
00096 matrixObjIdxPresent(false),
00097 matrixVarIdxPresent(false),
00098 multPresent(false),
00099 scalarMultiplierPresent(false),
00100 targetMatrixFirstRowPresent(false),
00101 targetMatrixFirstColPresent(false),
00102
00103 numberOfBlocks(-1),
00104 numberOfColumns(-1),
00105 numberOfCon(-1),
00106 numberOfConIdx(-1),
00107 numberOfConstraints(-1),
00108 numberOfEl(-1),
00109 numberOfEnumerations(-1),
00110 numberOfItems(-1),
00111 numberOfMatrices(-1),
00112 numberOfMatrixCon(-1),
00113 numberOfMatrixObj(1),
00114 numberOfMatrixVar(-1),
00115 numberOfObj(1),
00116 numberOfObjIdx(-1),
00117 numberOfObjectives(-1),
00118 numberOfRows(-1),
00119 numberOfValues(-1),
00120 numberOfVar(-1),
00121 numberOfVarIdx(-1),
00122 numberOfVariables(-1),
00123
00124 base64Size(0),
00125 baseMatrixIdx(-1),
00126 baseMatrixStartRow(0),
00127 baseMatrixStartCol(0),
00128 baseMatrixEndRow(-1),
00129 baseMatrixEndCol(-1),
00130 blockRowIdx(-1),
00131 blockColIdx(-1),
00132 coef(0.0),
00133 constant(0.0),
00134 idx(-1),
00135 incr(1),
00136 matrixConIdx(-1),
00137 matrixObjIdx(-1),
00138 matrixVarIdx(-1),
00139 mult(1),
00140 scalarMultiplier(1.),
00141 targetMatrixFirstRow(0),
00142 targetMatrixFirstCol(0),
00143
00144 baseTransposePresent(false),
00145 categoryPresent(false),
00146 conTypePresent(false),
00147 descriptionPresent(false),
00148 enumTypePresent(false),
00149 matrixConTypePresent(false),
00150 matrixNamePresent(false),
00151 matrixObjTypePresent(false),
00152 matrixTypePresent(false),
00153 matrixVarTypePresent(false),
00154 namePresent(false),
00155 objTypePresent(false),
00156 rowMajorPresent(false),
00157 shapePresent(false),
00158 solverPresent(false),
00159 symmetryPresent(false),
00160 typePresent(false),
00161 unitPresent(false),
00162 valuePresent(false),
00163 valueTypePresent(false),
00164 varTypePresent(false),
00165
00166 baseTranspose(""),
00167 category(""),
00168 conType(""),
00169 description(""),
00170 enumType(""),
00171 matrixConType(""),
00172 matrixName(""),
00173 matrixObjType(""),
00174 matrixType(""),
00175 matrixVarType(""),
00176 name(""),
00177 objType(""),
00178 rowMajor(""),
00179 shape(""),
00180 solver(""),
00181 symmetry(""),
00182 type(""),
00183 unit(""),
00184 value(""),
00185 valueType(""),
00186 varType("")
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264 {
00265 }
00266