summaryrefslogtreecommitdiff
path: root/project2/common/paramChecker.h
blob: d013fc4a1770e2169cbb780d394634494134d8e8 (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 std::string present;
};
typedef boost::intrusive_ptr<const ParamChecker> ParamCheckerCPtr;

#endif