summaryrefslogtreecommitdiff
path: root/project2/common/check.h
blob: dc97f8f58e0814581de05b14da124b882be69aed (plain)
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
#ifndef CHECK_H
#define CHECK_H

#include "sourceObject.h"
#include "variables.h"
#include "test.h"

class ExecContext;

/// Base class for Project2 compoments that perform checks
class Check : public SourceObject {
	public:
		Check(ScriptNodePtr p);
		virtual ~Check();

		bool performCheck(ExecContext *) const;

		const Variable message;
		const Variable group;
		const Variable present;
		TestPtr test;
};
typedef boost::intrusive_ptr<const Check> CheckCPtr;

#endif