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-21 02:03:45 +02:00
|
|
|
#ifndef __SAS__PREDICATE_H
|
|
|
|
#define __SAS__PREDICATE_H
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace sas
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Predicate
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-05-22 16:00:58 +02:00
|
|
|
class Predicate
|
2016-05-21 02:03:45 +02:00
|
|
|
{
|
2016-05-22 16:00:58 +02:00
|
|
|
public:
|
|
|
|
static Predicate fromSAS(std::istream &istream);
|
2016-05-21 02:03:45 +02:00
|
|
|
|
2016-05-22 16:00:58 +02:00
|
|
|
using Arguments = std::vector<std::string>;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void printAsSAS(std::ostream &ostream) const;
|
|
|
|
void printAsASP(std::ostream &ostream) const;
|
2016-05-21 02:03:45 +02:00
|
|
|
|
2016-05-22 16:00:58 +02:00
|
|
|
const std::string &name() const;
|
|
|
|
const Arguments &arguments() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string m_name;
|
|
|
|
std::vector<std::string> m_arguments;
|
|
|
|
};
|
2016-05-21 02:03:45 +02:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|