-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rule.h
39 lines (29 loc) · 624 Bytes
/
Rule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Rule.h
// Project2
//
// Created by Michael Bird on 7/3/14.
// Copyright (c) 2014 Michael Bird. All rights reserved.
//
#ifndef __Project2__Rule__
#define __Project2__Rule__
#include <iostream>
#include <vector>
#include "Predicate.h"
using namespace std;
class Rule{
public:
Rule();
~Rule();
void add_rule(Predicate rule_pred);
string toString();
void add_id(string id);
string id;
void clear();
void add_head(Predicate head);
string head;
private:
Predicate rule_head;
vector<Predicate> rule_body;
};
#endif /* defined(__Project2__Rule__) */