summaryrefslogtreecommitdiff
path: root/project2/common/test.h
blob: 73ce61a2c6a801a9e3b2421415222229cdffe6d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TEST_H
#define TEST_H

#include "sourceObject.h"
#include "scripts.h"
#include <visibility.h>

class ExecContext;

class DLL_PUBLIC Test : public virtual SourceObject {
	public:
		Test(ScriptNodePtr);
		virtual bool passes(ExecContext *) const = 0;
		virtual void reset() const;
};
typedef std::shared_ptr<const Test> TestPtr;
typedef AdHoc::Factory<Test, std::shared_ptr<const ScriptNode>> TestFactory; 

#endif