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

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

namespace ODBC { 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 std::string dataSource;
		const Glib::ustring sql;
		const std::string testOp;
		const double testValue;
	private:
		ODBC::SelectCommand * query;
};
typedef boost::intrusive_ptr<_SqlCheck> SqlCheck;
typedef std::map<std::string, SqlCheck> SqlChecks;

#endif