| 1 |
#include "GuiWindowDef.h" |
| 2 |
|
| 3 |
#include "parser/DefTokeniser.h" |
| 4 |
#include "string/convert.h" |
| 5 |
#include "itextstream.h" |
| 6 |
|
| 7 |
#include <limits> |
| 8 |
#include "string/split.h" |
| 9 |
#include "string/trim.h" |
| 10 |
#include "string/case_conv.h" |
| 11 |
#include "string/replace.h" |
| 12 |
#include "string/predicate.h" |
| 13 |
|
| 14 |
#include "GuiScript.h" |
| 15 |
|
| 16 |
namespace gui |
| 17 |
{ |
| 18 |
|
| 19 |
namespace |
| 20 |
{ |
| 21 |
|
| 22 |
void skipBlock(parser::DefTokeniser& tokeniser) |
| 23 |
{ |
| 24 |
tokeniser.assertNextToken("{"); |
| 25 |
|
| 26 |
std::size_t level = 1; |
| 27 |
|
| 28 |
while (tokeniser.hasMoreTokens()) |
| 29 |
{ |
| 30 |
std::string token = tokeniser.nextToken(); |
| 31 |
|
| 32 |
if (token == "{") level++; |
| 33 |
if (token == "}") level--; |
| 34 |
|
| 35 |
if (level == 0) return; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
} |
| 40 |
|
| 41 |
GuiWindowDef::GuiWindowDef(IGui& owner) : |
| 42 |
_owner(owner), |
| 43 |
_renderableText(*this) |
| 44 |
{ |
| 45 |
visible.setValue(true); |
| 46 |
forecolor.setValue(Vector4(1, 1, 1, 1)); |
| 47 |
hovercolor.setValue(Vector4(1, 1, 1, 1)); |
| 48 |
backcolor.setValue(Vector4(0, 0, 0, 0)); |
| 49 |
bordercolor.setValue(Vector4(0, 0, 0, 0)); |
| 50 |
bordersize.setValue(0.0f); |
| 51 |
matcolor.setValue(Vector4(1, 1, 1, 1)); |
| 52 |
rotate.setValue(0.0f); |
| 53 |
textscale.setValue(1.0f); |
| 54 |
textalign.setValue(0); |
| 55 |
textalignx.setValue(0.0f); |
| 56 |
textaligny.setValue(0.0f); |
| 57 |
forceaspectwidth.setValue(640.0f); |
| 58 |
forceaspectheight.setValue(480.0f); |
| 59 |
noclip.setValue(false); |
| 60 |
notime.setValue(false); |
| 61 |
nocursor.setValue(false); |
| 62 |
nowrap.setValue(false); |
| 63 |
time = 0; |
| 64 |
|
| 65 |
_textChanged = true; |
| 66 |
text.signal_variableChanged().connect([this]() { _textChanged = true; }); |
| 67 |
|
| 68 |
// Clear the shader if the background variable changes |
| 69 |
background.signal_variableChanged().connect([this]() { backgroundShader.reset(); }); |
| 70 |
} |
| 71 |
|
| 72 |
IGui& GuiWindowDef::getGui() const |
| 73 |
{ |
| 74 |
return _owner; |
| 75 |
} |
| 76 |
|
| 77 |
// Returns a GUI expression, which can be a number, a string or a formula ("gui::objVisible" == 1). |
| 78 |
GuiExpressionPtr GuiWindowDef::getExpression(parser::DefTokeniser& tokeniser) |
| 79 |
{ |
| 80 |
return GuiExpression::CreateFromTokens(_owner, tokeniser); |
| 81 |
} |
| 82 |
|
| 83 |
std::shared_ptr<IGuiExpression<Vector4>> GuiWindowDef::parseVector4(parser::DefTokeniser& tokeniser) |
| 84 |
{ |
| 85 |
// Collect tokens until all four components are parsed |
| 86 |
std::vector<GuiExpressionPtr> comp; |
| 87 |
|
| 88 |
while (comp.size() < 4 && tokeniser.hasMoreTokens()) |
| 89 |
{ |
| 90 |
std::string token = tokeniser.peek(); |
| 91 |
|
| 92 |
if (token == ",") |
| 93 |
{ |
| 94 |
tokeniser.nextToken(); |
| 95 |
continue; |
| 96 |
} |
| 97 |
|
| 98 |
GuiExpressionPtr expr = getExpression(tokeniser); |
| 99 |
|
| 100 |
comp.push_back(expr); |
| 101 |
} |
| 102 |
|
| 103 |
if (comp.size() != 4) |
| 104 |
{ |
| 105 |
throw parser::ParseException("Couldn't parse Vector4, not enough components found."); |
| 106 |
} |
| 107 |
|
| 108 |
return std::make_shared<Vector4Expression>(comp[0], comp[1], comp[2], comp[3]); |
| 109 |
} |
| 110 |
|
| 111 |
std::shared_ptr<IGuiExpression<float>> GuiWindowDef::parseFloat(parser::DefTokeniser& tokeniser) |
| 112 |
{ |
| 113 |
GuiExpressionPtr expr = getExpression(tokeniser); |
| 114 |
|
| 115 |
if (!expr) |
| 116 |
{ |
| 117 |
throw parser::ParseException("Failed to parse float expression."); |
| 118 |
} |
| 119 |
|
| 120 |
return std::make_shared<TypedExpression<float>>(expr); |
| 121 |
} |
| 122 |
|
| 123 |
std::shared_ptr<IGuiExpression<int>> GuiWindowDef::parseInt(parser::DefTokeniser& tokeniser) |
| 124 |
{ |
| 125 |
GuiExpressionPtr expr = getExpression(tokeniser); |
| 126 |
|
| 127 |
if (!expr) |
| 128 |
{ |
| 129 |
throw parser::ParseException("Failed to parse integer expression."); |
| 130 |
} |
| 131 |
|
| 132 |
return std::make_shared<TypedExpression<int>>(expr); |
| 133 |
} |
| 134 |
|
| 135 |
std::shared_ptr<IGuiExpression<std::string>> GuiWindowDef::parseString(parser::DefTokeniser& tokeniser) |
| 136 |
{ |
| 137 |
std::string token = tokeniser.peek(); |
| 138 |
GuiExpressionPtr expr; |
| 139 |
|
| 140 |
if (string::starts_with(token, "gui::")) |
| 141 |
{ |
| 142 |
expr = std::make_shared<GuiStateVariableExpression>(_owner, tokeniser.nextToken().substr(5)); |
| 143 |
} |
| 144 |
else |
| 145 |
{ |
| 146 |
expr = std::make_shared<StringExpression>(tokeniser.nextToken()); |
| 147 |
} |
| 148 |
|
| 149 |
return std::make_shared<TypedExpression<std::string>>(expr); |
| 150 |
} |
| 151 |
|
| 152 |
std::shared_ptr<IGuiExpression<bool>> GuiWindowDef::parseBool(parser::DefTokeniser& tokeniser) |
| 153 |
{ |
| 154 |
GuiExpressionPtr expr = getExpression(tokeniser); |
| 155 |
|
| 156 |
if (!expr) |
| 157 |
{ |
| 158 |
throw parser::ParseException("Failed to parse integer expression."); |
| 159 |
} |
| 160 |
|
| 161 |
return std::make_shared<TypedExpression<bool>>(expr); |
| 162 |
} |
| 163 |
|
| 164 |
void GuiWindowDef::addWindow(const IGuiWindowDefPtr& window) |
| 165 |
{ |
| 166 |
children.push_back(window); |
| 167 |
} |
| 168 |
|
| 169 |
void GuiWindowDef::constructFromTokens(parser::DefTokeniser& tokeniser) |
| 170 |
{ |
| 171 |
// The windowDef keyword has already been parsed, so expect a name plus an opening brace here |
| 172 |
name = tokeniser.nextToken(); |
| 173 |
|
| 174 |
tokeniser.assertNextToken("{"); |
| 175 |
|
| 176 |
while (tokeniser.hasMoreTokens()) |
| 177 |
{ |
| 178 |
std::string token = tokeniser.nextToken(); |
| 179 |
string::to_lower(token); |
| 180 |
|
| 181 |
if (token == ";") |
| 182 |
{ |
| 183 |
continue; // ignore stray semicolons |
| 184 |
} |
| 185 |
|
| 186 |
if (token == "rect") |
| 187 |
{ |
| 188 |
rect.setValue(parseVector4(tokeniser)); |
| 189 |
} |
| 190 |
else if (token == "visible") |
| 191 |
{ |
| 192 |
visible.setValue(parseBool(tokeniser)); |
| 193 |
} |
| 194 |
else if (token == "notime") |
| 195 |
{ |
| 196 |
notime.setValue(parseBool(tokeniser)); |
| 197 |
} |
| 198 |
else if (token == "forecolor") |
| 199 |
{ |
| 200 |
forecolor.setValue(parseVector4(tokeniser)); |
| 201 |
} |
| 202 |
else if (token == "hovercolor") |
| 203 |
{ |
| 204 |
hovercolor.setValue(parseVector4(tokeniser)); |
| 205 |
} |
| 206 |
else if (token == "backcolor") |
| 207 |
{ |
| 208 |
backcolor.setValue(parseVector4(tokeniser)); |
| 209 |
} |
| 210 |
else if (token == "bordercolor") |
| 211 |
{ |
| 212 |
bordercolor.setValue(parseVector4(tokeniser)); |
| 213 |
} |
| 214 |
else if (token == "matcolor") |
| 215 |
{ |
| 216 |
matcolor.setValue(parseVector4(tokeniser)); |
| 217 |
} |
| 218 |
else if (token == "rotate") |
| 219 |
{ |
| 220 |
rotate.setValue(parseFloat(tokeniser)); |
| 221 |
} |
| 222 |
else if (token == "text") |
| 223 |
{ |
| 224 |
text.setValue(parseString(tokeniser)); |
| 225 |
} |
| 226 |
else if (token == "font") |
| 227 |
{ |
| 228 |
font.setValue(parseString(tokeniser)); |
| 229 |
} |
| 230 |
else if (token == "textscale") |
| 231 |
{ |
| 232 |
textscale.setValue(parseFloat(tokeniser)); |
| 233 |
} |
| 234 |
else if (token == "textalign") |
| 235 |
{ |
| 236 |
textalign.setValue(parseInt(tokeniser)); |
| 237 |
} |
| 238 |
else if (token == "textalignx") |
| 239 |
{ |
| 240 |
textalignx.setValue(parseFloat(tokeniser)); |
| 241 |
} |
| 242 |
else if (token == "textaligny") |
| 243 |
{ |
| 244 |
textaligny.setValue(parseFloat(tokeniser)); |
| 245 |
} |
| 246 |
else if (token == "forceaspectwidth") |
| 247 |
{ |
| 248 |
forceaspectwidth.setValue(parseFloat(tokeniser)); |
| 249 |
} |
| 250 |
else if (token == "forceaspectheight") |
| 251 |
{ |
| 252 |
forceaspectheight.setValue(parseFloat(tokeniser)); |
| 253 |
} |
| 254 |
else if (token == "background") |
| 255 |
{ |
| 256 |
background.setValue(parseString(tokeniser)); |
| 257 |
} |
| 258 |
else if (token == "noevents") |
| 259 |
{ |
| 260 |
noevents.setValue(parseBool(tokeniser)); |
| 261 |
} |
| 262 |
else if (token == "nocursor") |
| 263 |
{ |
| 264 |
nocursor.setValue(parseBool(tokeniser)); |
| 265 |
} |
| 266 |
else if (token == "noclip") |
| 267 |
{ |
| 268 |
noclip.setValue(parseBool(tokeniser)); |
| 269 |
} |
| 270 |
else if (token == "nowrap") |
| 271 |
{ |
| 272 |
nowrap.setValue(parseBool(tokeniser)); |
| 273 |
} |
| 274 |
else if (token == "modal") |
| 275 |
{ |
| 276 |
noevents.setValue(parseBool(tokeniser)); |
| 277 |
} |
| 278 |
else if (token == "menugui") |
| 279 |
{ |
| 280 |
menugui.setValue(parseBool(tokeniser)); |
| 281 |
} |
| 282 |
else if (token == "windowdef" || token == "indowdef") // yes, there's a syntax error in the TDM GUI |
| 283 |
{ |
| 284 |
// Child windowdef |
| 285 |
GuiWindowDefPtr window(new GuiWindowDef(_owner)); |
| 286 |
window->constructFromTokens(tokeniser); |
| 287 |
|
| 288 |
addWindow(window); |
| 289 |
} |
| 290 |
else if (token == "ontime") |
| 291 |
{ |
| 292 |
std::string timeStr = tokeniser.nextToken(); |
| 293 |
|
| 294 |
// Check the time for validity |
| 295 |
std::size_t onTime = string::convert<std::size_t>( |
| 296 |
timeStr, std::numeric_limits<std::size_t>::max() |
| 297 |
); |
| 298 |
|
| 299 |
if (onTime == std::numeric_limits<std::size_t>::max()) |
| 300 |
{ |
| 301 |
rWarning() << "Invalid time encountered in onTime event in " |
| 302 |
<< name << ": " << timeStr << std::endl; |
| 303 |
} |
| 304 |
|
| 305 |
// Allocate a new GuiScript |
| 306 |
GuiScriptPtr script(new GuiScript(*this)); |
| 307 |
|
| 308 |
script->constructFromTokens(tokeniser); |
| 309 |
|
| 310 |
_timedEvents.insert(TimedEventMap::value_type(onTime, script)); |
| 311 |
} |
| 312 |
else if (token == "onnamedevent") |
| 313 |
{ |
| 314 |
std::string eventName = tokeniser.nextToken(); |
| 315 |
|
| 316 |
// Parse the script |
| 317 |
GuiScriptPtr script(new GuiScript(*this)); |
| 318 |
script->constructFromTokens(tokeniser); |
| 319 |
|
| 320 |
// TODO: Save event |
| 321 |
} |
| 322 |
else if (token == "onevent") |
| 323 |
{ |
| 324 |
GuiScriptPtr script(new GuiScript(*this)); |
| 325 |
script->constructFromTokens(tokeniser); |
| 326 |
|
| 327 |
// TODO |
| 328 |
} |
| 329 |
else if (token == "onesc" || token == "onactivate") |
| 330 |
{ |
| 331 |
GuiScriptPtr script(new GuiScript(*this)); |
| 332 |
script->constructFromTokens(tokeniser); |
| 333 |
|
| 334 |
// TODO |
| 335 |
} |
| 336 |
else if (token == "onmouseenter" || token == "onmouseexit") |
| 337 |
{ |
| 338 |
GuiScriptPtr script(new GuiScript(*this)); |
| 339 |
script->constructFromTokens(tokeniser); |
| 340 |
|
| 341 |
// TODO |
| 342 |
} |
| 343 |
else if (token == "onaction") |
| 344 |
{ |
| 345 |
GuiScriptPtr script(new GuiScript(*this)); |
| 346 |
script->constructFromTokens(tokeniser); |
| 347 |
|
| 348 |
// TODO |
| 349 |
} |
| 350 |
else if (token == "onactionrelease") |
| 351 |
{ |
| 352 |
GuiScriptPtr script(new GuiScript(*this)); |
| 353 |
script->constructFromTokens(tokeniser); |
| 354 |
|
| 355 |
// TODO |
| 356 |
} |
| 357 |
else if (token == "float" || token == "definefloat") |
| 358 |
{ |
| 359 |
// Add variable |
| 360 |
std::string variableName = tokeniser.nextToken(); |
| 361 |
|
| 362 |
// Initial value |
| 363 |
float value = 0.0f; |
| 364 |
|
| 365 |
// try to check if the next token is a numeric initialisation value |
| 366 |
// We parse it, but we won't make use of it, see the comment on iddevnet: |
| 367 |
// "Note you cannot set the initial value for the variable (it will always be 0). |
| 368 |
// There are guis in Doom 3 that specify an initial value, but it is ignored." |
| 369 |
try |
| 370 |
{ |
| 371 |
std::stof(tokeniser.peek()); |
| 372 |
|
| 373 |
// Success, load the value |
| 374 |
tokeniser.nextToken(); |
| 375 |
} |
| 376 |
catch (std::invalid_argument&) |
| 377 |
{ |
| 378 |
// Not a number, ignore and continue |
| 379 |
} |
| 380 |
|
| 381 |
WindowVariable<float>::Ptr windowVar = std::make_shared<WindowVariable<float>>(); |
| 382 |
windowVar->setValue(value); |
| 383 |
|
| 384 |
std::pair<NamedVariables::iterator, bool> result = variables.insert( |
| 385 |
std::make_pair(variableName, windowVar)); |
| 386 |
|
| 387 |
if (!result.second) |
| 388 |
{ |
| 389 |
rWarning() << "Duplicate float variable defined in windowDef " << name << ": " << variableName << std::endl; |
| 390 |
} |
| 391 |
} |
| 392 |
else if (token == "definevec4") |
| 393 |
{ |
| 394 |
// Add variable |
| 395 |
std::string variableName = tokeniser.nextToken(); |
| 396 |
|
| 397 |
// Initial value (will be ignored, but anyway) |
| 398 |
IGuiExpression<Vector4>::Ptr value = parseVector4(tokeniser); |
| 399 |
|
| 400 |
Vector4 actualValue; |
| 401 |
|
| 402 |
WindowVariable<Vector4>::Ptr windowVar = std::make_shared<WindowVariable<Vector4>>(); |
| 403 |
windowVar->setValue(actualValue); |
| 404 |
|
| 405 |
std::pair<NamedVariables::iterator, bool> result = variables.insert( |
| 406 |
std::make_pair(variableName, windowVar)); |
| 407 |
|
| 408 |
if (!result.second) |
| 409 |
{ |
| 410 |
rWarning() << "Duplicate vec4 variable defined in windowDef " << name << ": " << variableName << std::endl; |
| 411 |
} |
| 412 |
} |
| 413 |
else if (token == "listdef" || token == "choicedef" || token == "binddef" || |
| 414 |
token == "editdef" || token == "sliderdef" || token == "renderdef") |
| 415 |
{ |
| 416 |
tokeniser.nextToken(); // def name |
| 417 |
skipBlock(tokeniser); |
| 418 |
} |
| 419 |
else if (token == "bordersize") |
| 420 |
{ |
| 421 |
bordersize.setValue(parseFloat(tokeniser)); |
| 422 |
} |
| 423 |
else if (token == "choicetype") |
| 424 |
{ |
| 425 |
rWarning() << "'choiceType' token encountered in windowDef block in " << name << std::endl; |
| 426 |
tokeniser.nextToken(); // the choicetype value |
| 427 |
} |
| 428 |
else if (token == "matscalex" || token == "matscaley") |
| 429 |
{ |
| 430 |
tokeniser.nextToken(); // value |
| 431 |
} |
| 432 |
else if (token == "}") |
| 433 |
{ |
| 434 |
break; |
| 435 |
} |
| 436 |
else |
| 437 |
{ |
| 438 |
rWarning() << "Unknown token encountered in GUI: " << token << std::endl; |
| 439 |
} |
| 440 |
} |
| 441 |
} |
| 442 |
|
| 443 |
IRenderableText& GuiWindowDef::getRenderableText() |
| 444 |
{ |
| 445 |
if (_textChanged) |
| 446 |
{ |
| 447 |
// Text has changed, refresh the renderable |
| 448 |
_textChanged = false; |
| 449 |
|
| 450 |
// (Re-)compile the renderable |
| 451 |
_renderableText.recompile(); |
| 452 |
} |
| 453 |
|
| 454 |
return _renderableText; |
| 455 |
} |
| 456 |
|
| 457 |
void GuiWindowDef::update(const std::size_t timeStep, bool updateChildren) |
| 458 |
{ |
| 459 |
if (!notime) |
| 460 |
{ |
| 461 |
std::size_t oldTime = time; |
| 462 |
|
| 463 |
// Update this windowDef's time |
| 464 |
time += timeStep; |
| 465 |
|
| 466 |
// Be sure to include the ontime 0 event the first time |
| 467 |
if (oldTime > 0) |
| 468 |
{ |
| 469 |
oldTime++; |
| 470 |
} |
| 471 |
|
| 472 |
// Check events whose time is within [oldTime..time] |
| 473 |
for (TimedEventMap::const_iterator i = _timedEvents.lower_bound(oldTime); |
| 474 |
i != _timedEvents.end() && i != _timedEvents.upper_bound(time); ++i) |
| 475 |
{ |
| 476 |
i->second->execute(); |
| 477 |
} |
| 478 |
} |
| 479 |
|
| 480 |
// Update children regardless of this windowDef's notime setting |
| 481 |
if (updateChildren) |
| 482 |
{ |
| 483 |
for (ChildWindows::const_iterator i = children.begin(); i != children.end(); ++i) |
| 484 |
{ |
| 485 |
(*i)->update(timeStep, updateChildren); |
| 486 |
} |
| 487 |
} |
| 488 |
} |
| 489 |
|
| 490 |
void GuiWindowDef::initTime(const std::size_t toTime, bool updateChildren) |
| 491 |
{ |
| 492 |
this->time = toTime; |
| 493 |
|
| 494 |
if (updateChildren) |
| 495 |
{ |
| 496 |
for (ChildWindows::const_iterator i = children.begin(); i != children.end(); ++i) |
| 497 |
{ |
| 498 |
(*i)->initTime(toTime, updateChildren); |
| 499 |
} |
| 500 |
} |
| 501 |
} |
| 502 |
|
| 503 |
IGuiWindowDefPtr GuiWindowDef::findWindowDef(const std::string& windowName) |
| 504 |
{ |
| 505 |
// First look at all direct children |
| 506 |
for (ChildWindows::const_iterator i = children.begin(); i != children.end(); ++i) |
| 507 |
{ |
| 508 |
if ((*i)->name == windowName) |
| 509 |
{ |
| 510 |
return (*i); |
| 511 |
} |
| 512 |
} |
| 513 |
|
| 514 |
// Not found, ask each child to search for the windowDef |
| 515 |
for (ChildWindows::const_iterator i = children.begin(); i != children.end(); ++i) |
| 516 |
{ |
| 517 |
IGuiWindowDefPtr window = (*i)->findWindowDef(windowName); |
| 518 |
|
| 519 |
if (window != NULL) return window; |
| 520 |
} |
| 521 |
|
| 522 |
// Not found |
| 523 |
return IGuiWindowDefPtr(); |
| 524 |
} |
| 525 |
|
| 526 |
void GuiWindowDef::pepareRendering(bool prepareChildren) |
| 527 |
{ |
| 528 |
// Triggers a re-compilation of the text VBOs, if necessary |
| 529 |
getRenderableText(); |
| 530 |
|
| 531 |
if (!prepareChildren) return; |
| 532 |
|
| 533 |
for (ChildWindows::const_iterator i = children.begin(); i != children.end(); ++i) |
| 534 |
{ |
| 535 |
(*i)->pepareRendering(prepareChildren); |
| 536 |
} |
| 537 |
} |
| 538 |
|
| 539 |
IWindowVariable& GuiWindowDef::findVariableByName(const std::string& varName) |
| 540 |
{ |
| 541 |
if (varName == "text") return text; |
| 542 |
if (varName == "rect") return rect; |
| 543 |
if (varName == "visible") return visible; |
| 544 |
if (varName == "text") return text; |
| 545 |
if (varName == "menugui") return menugui; |
| 546 |
if (varName == "forecolor") return forecolor; |
| 547 |
if (varName == "hovercolor") return hovercolor; |
| 548 |
if (varName == "backcolor") return backcolor; |
| 549 |
if (varName == "bordercolor") return bordercolor; |
| 550 |
if (varName == "bordersize") return bordersize; |
| 551 |
if (varName == "matcolor") return matcolor; |
| 552 |
if (varName == "rotate") return rotate; |
| 553 |
if (varName == "background") return background; |
| 554 |
if (varName == "font") return font; |
| 555 |
if (varName == "textscale") return textscale; |
| 556 |
if (varName == "textalign") return textalign; |
| 557 |
if (varName == "textalignx") return textalignx; |
| 558 |
if (varName == "textaligny") return textaligny; |
| 559 |
if (varName == "forceaspectwidth") return forceaspectwidth; |
| 560 |
if (varName == "forceaspectheight") return forceaspectheight; |
| 561 |
if (varName == "noevents") return noevents; |
| 562 |
if (varName == "noclip") return noclip; |
| 563 |
if (varName == "notime") return notime; |
| 564 |
if (varName == "nocursor") return nocursor; |
| 565 |
if (varName == "nowrap") return nowrap; |
| 566 |
|
| 567 |
// Check the user-defined variables |
| 568 |
NamedVariables::const_iterator i = variables.find(varName); |
| 569 |
if (i != variables.end()) |
| 570 |
{ |
| 571 |
return *(i->second); |
| 572 |
} |
| 573 |
|
| 574 |
throw std::invalid_argument("Cannot find variable with name " + varName); |
| 575 |
} |
| 576 |
|
| 577 |
} // namespace |