44 stringstream errorMessage;
45 errorMessage <<
"MProperty::clear(): switch variable 'propertyType' with value " <<
propertyType
46 <<
" not matching any case." << endl;
47 mTerm(1, AT_, errorMessage.str());
67 for(
MInt i = 0; i < size; i++)
80 for(
MInt i = 0; i < size; i++)
93 for(
MInt i = 0; i < size; i++)
106 for(
MInt i = 0; i < size; i++)
116 stringstream errorMessage;
117 errorMessage <<
"Property " <<
name <<
" is requested as a String, but it is a ";
120 errorMessage <<
"INT!!";
124 errorMessage <<
"FLOAT!!";
128 errorMessage <<
"STRING!!";
132 errorMessage <<
"BOOL!!";
136 mTerm(1, AT_,
"MProperty::asString(): switch variable 'propertyType' not matching any case");
139 mTerm(1, AT_, errorMessage.str());
146 stringstream errorMessage;
147 errorMessage <<
"Property " <<
name <<
" is requested as a Bool, but it is a ";
150 errorMessage <<
"INT!!";
154 errorMessage <<
"FLOAT!!";
158 errorMessage <<
"STRING!!";
162 errorMessage <<
"BOOL!!";
166 mTerm(1, AT_,
"MProperty::asBool(): switch variable 'propertyType' not matching any case");
169 mTerm(1, AT_, errorMessage.str());
176 stringstream errorMessage;
177 errorMessage <<
"Property " <<
name <<
" is requested as a Int, but it is a ";
180 errorMessage <<
"INT!!";
184 errorMessage <<
"FLOAT!!";
188 errorMessage <<
"STRING!!";
192 errorMessage <<
"BOOL!!";
196 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
199 mTerm(1, AT_, errorMessage.str());
206 stringstream errorMessage;
207 errorMessage <<
"Property " <<
name <<
" is requested as a Float, but it is a ";
210 errorMessage <<
"INT!!";
214 errorMessage <<
"FLOAT!!";
218 errorMessage <<
"STRING!!";
222 errorMessage <<
"BOOL!!";
226 mTerm(1, AT_,
"MProperty::asFloat(): switch variable 'propertyType' not matching any case");
229 mTerm(1, AT_, errorMessage.str());
243 stringstream errorMessage;
244 errorMessage <<
"Property " <<
name <<
" is requested as a String, but it is a ";
247 errorMessage <<
"INT!!";
251 errorMessage <<
"FLOAT!!";
255 errorMessage <<
"STRING!!";
259 errorMessage <<
"BOOL!!";
263 mTerm(1, AT_,
"MProperty::asString(): switch variable 'propertyType' not matching any case");
266 mTerm(1, AT_, errorMessage.str());
269 stringstream errorMessage;
270 errorMessage <<
" MProperty::asString() for property " <<
name <<
" is requested index out of range! It has "
271 <<
elements <<
" ,but it is asked for the " << index + 1 <<
" element! " << endl;
272 mTerm(1, AT_, errorMessage.str());
279 stringstream errorMessage;
280 errorMessage <<
"Property " <<
name <<
" is requested as a Bool, but it is a ";
283 errorMessage <<
"INT!!";
287 errorMessage <<
"FLOAT!!";
291 errorMessage <<
"STRING!!";
295 errorMessage <<
"BOOL!!";
299 mTerm(1, AT_,
"MProperty::asBool(): switch variable 'propertyType' not matching any case");
302 mTerm(1, AT_, errorMessage.str());
305 stringstream errorMessage;
306 errorMessage <<
" MProperty::asBool() for property " <<
name <<
" is requested index out of range! It has "
307 <<
elements <<
" ,but it is asked for the " << index + 1 <<
" element! ";
308 mTerm(1, AT_, errorMessage.str());
316 stringstream errorMessage;
317 errorMessage <<
"Property " <<
name <<
" is requested as a Int, but it is a ";
320 errorMessage <<
"INT!!";
324 errorMessage <<
"FLOAT!!";
328 errorMessage <<
"STRING!!";
332 errorMessage <<
"BOOL!!";
336 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
339 mTerm(1, AT_, errorMessage.str());
342 stringstream errorMessage;
343 errorMessage <<
" MProperty::asInt() for property " <<
name <<
" is requested index out of range! It has "
344 <<
elements <<
" ,but it is asked for the " << index + 1 <<
" element! ";
345 mTerm(1, AT_, errorMessage.str());
355 stringstream errorMessage;
356 errorMessage <<
"Property " <<
name <<
" is requested as a float, but it is a ";
359 errorMessage <<
"INT!!";
363 errorMessage <<
"FLOAT!!";
367 errorMessage <<
"STRING!!";
371 errorMessage <<
"BOOL!!";
375 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
378 mTerm(1, AT_, errorMessage.str());
383 stringstream errorMessage;
384 errorMessage <<
" MProperty::asFloat() for property " <<
name <<
" is requested index out of range! It has "
385 <<
elements <<
" ,but it is asked for the " << index + 1 <<
" element! ";
386 mTerm(1, AT_, errorMessage.str());
VariableType propertyType
Parent class of all solvers This class is the base for all solvers. I.e. all solver class (e....
void mTerm(const MInt errorCode, const MString &location, const MString &message)
std::basic_string< char > MString