-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCondition.h
39 lines (23 loc) · 916 Bytes
/
Condition.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
#ifndef _CONDITION_H_
#define _CONDITION_H_
#include "Basic.h"
#include "Filereader.h"
#include "Type.h"
class Condition {
public:
virtual ~Condition() {}
virtual void print( std::ostream & stream ) const = 0;
virtual void PDDLPrint( std::ostream & s, unsigned indent, const TokenStruct< std::string > & ts, Domain & d ) = 0;
virtual void parse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) = 0;
virtual void SHOPparse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) = 0;
virtual void addParams( int m, unsigned n ) = 0;
virtual Condition * copy( Domain & d ) = 0;
};
inline std::ostream & operator<<( std::ostream & stream, const Condition * c ) {
c->print( stream );
return stream;
}
typedef std::vector< Condition * > CondVec;
Condition * createCondition( Filereader & f, Domain & d );
Condition * createSHOPCondition( Filereader & f, Domain & d );
#endif