cfgfile 0.2.11
Loading...
Searching...
No Matches
constraint.hpp
Go to the documentation of this file.
1
31#ifndef CFGFILE__CONSTRAINT_HPP__INCLUDED
32#define CFGFILE__CONSTRAINT_HPP__INCLUDED
33
34
35namespace cfgfile {
36
37//
38// constraint_t
39//
40
42template< class T >
44public:
47
48 virtual ~constraint_t() {}
49
57 virtual bool
58 check( const T & value ) const = 0;
59}; // class constraint_t
60
61} /* namespace cfgfile */
62
63#endif // CFGFILE__CONSTRAINT_HPP__INCLUDED
Base class for constraints.
Definition constraint.hpp:43
constraint_t()
Construct constraint.
Definition constraint.hpp:46
virtual ~constraint_t()
Definition constraint.hpp:48
virtual bool check(const T &value) const =0
Check value for correctness.
Definition const.hpp:38