| 102 |
|
} |
| 103 |
|
|
| 104 |
|
bool SelectionEvaluator::loadScriptFileInternal(const std::string & filename) { |
| 105 |
< |
ifstream ifs(filename.c_str()); |
| 105 |
> |
std::ifstream ifs(filename.c_str()); |
| 106 |
|
if (!ifs.is_open()) { |
| 107 |
|
return false; |
| 108 |
|
} |
| 300 |
|
|
| 301 |
|
std::string variable = boost::any_cast<std::string>(statement[1].value); |
| 302 |
|
|
| 303 |
< |
variables.insert(std::make_pair(variable, expression(statement, 2))); |
| 303 |
> |
variables.insert(VariablesType::value_type(variable, expression(statement, 2))); |
| 304 |
|
} |
| 305 |
|
|
| 306 |
|
|
| 319 |
|
int tok = statement[1].tok; |
| 320 |
|
if (tok == Token::identifier || (tok & Token::predefinedset) == Token::predefinedset) { |
| 321 |
|
std::string variable = boost::any_cast<std::string>(statement[1].value); |
| 322 |
< |
variables.insert(std::make_pair(variable, statement)); |
| 322 |
> |
variables.insert(VariablesType::value_type(variable, statement)); |
| 323 |
|
|
| 324 |
|
} else { |
| 325 |
|
evalError("invalid variable name:" + script); |