summaryrefslogtreecommitdiff
path: root/project2/sqlCheck.h
blob: 50132c1b3d2ac4df257524c9567bc6ad59d56c36 (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
#ifndef SQLCHECK_H
#define SQLCHECK_H

#include "paramChecker.h"
#include "iHaveParameters.h"

namespace DB { class SelectCommand; }

class SqlCheck : public IHaveParameters, public ParamChecker {
	public:
		SqlCheck(const xmlpp::Element * p);
		virtual ~SqlCheck();

		virtual void loadComplete(const CommonObjects *);
		bool performCheck() const;

		const Variable dataSource;
		const Glib::ustring sql;
		const std::string testOp;
		const double testValue;
	private:
		DB::SelectCommand * query;
};

#endif