Refactored interface for parsing Types.

This commit is contained in:
2016-05-31 14:01:18 +02:00
parent 1395b62e60
commit cf1c66a085
3 changed files with 34 additions and 30 deletions

View File

@@ -29,7 +29,8 @@ using TypeHashMap = std::unordered_map<std::string, Type>;
class Type
{
public:
static void parsePDDL(utils::Parser &parser, Context &context);
static Type &parse(utils::Parser &parser, Context &context);
static Type &parseWithInheritance(utils::Parser &parser, Context &context);
public:
const std::string &name() const;