This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-29 16:27:11 +02:00
|
|
|
#ifndef __PLASP__PDDL__DESCRIPTION_H
|
|
|
|
#define __PLASP__PDDL__DESCRIPTION_H
|
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <plasp/pddl/Domain.h>
|
|
|
|
#include <plasp/utils/Parser.h>
|
|
|
|
|
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace pddl
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Description
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class Description
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Description fromStream(std::istream &istream);
|
|
|
|
static Description fromFile(const boost::filesystem::path &path);
|
|
|
|
|
|
|
|
public:
|
2016-05-30 15:44:13 +02:00
|
|
|
const Domain &domain() const;
|
2016-05-29 16:27:11 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Description() = default;
|
|
|
|
|
|
|
|
void parseContent(utils::Parser &parser);
|
|
|
|
void parseSection(utils::Parser &parser);
|
|
|
|
|
2016-05-31 01:06:57 +02:00
|
|
|
Context m_context;
|
2016-05-29 16:27:11 +02:00
|
|
|
std::unique_ptr<Domain> m_domain;
|
|
|
|
//std::unique_ptr<Problem> m_problem;
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|