summaryrefslogtreecommitdiff
path: root/project2/common/paramChecker.h
blob: b0940c99aa311163d84442d0124e13755ab27dec (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
#ifndef PARAMCHECKER_H
#define PARAMCHECKER_H

#include <libxml/tree.h>
#include "sourceObject.h"
#include "variables.h"

/// Base class for Project2 compoments that perform tests/checks
class ParamChecker : public SourceObject {
	public:
		ParamChecker(const xmlpp::Element * p);
		virtual ~ParamChecker();

		virtual bool performCheck() const = 0;

		const Variable message;
		const Variable group;
		const Variable present;
};
typedef boost::intrusive_ptr<const ParamChecker> ParamCheckerCPtr;

#endif