#include <vector>
#include <functional>
#include <set>
-
+#include <string>
+
#include <simgear/props/condition.hxx>
#include <simgear/props/props.hxx>
#include <simgear/math/interpolater.hxx>
{
struct ParseError : public sg_exception
{
- ParseError(const string& message = std::string())
+ ParseError(const std::string& message = std::string())
: sg_exception(message) {}
};
{
public:
size_t addBinding(const std::string& name, expression::Type type);
- bool findBinding(const string& name, VariableBinding& result) const;
+ bool findBinding(const std::string& name, VariableBinding& result) const;
std::vector<VariableBinding> bindings;
};
ParserMap& map = getParserMap();
ParserMap::iterator itr = map.find(exp->getName());
if (itr == map.end())
- throw ParseError(string("unknown expression ") + exp->getName());
+ throw ParseError(std::string("unknown expression ") + exp->getName());
exp_parser parser = itr->second;
return (*parser)(exp, this);
}