25 #ifndef WPROPERTYCONSTRAINTNOTEMPTY_H
26 #define WPROPERTYCONSTRAINTNOTEMPTY_H
28 #include "../WPropertyTypes.h"
29 #include "WPropertyConstraintTypes.h"
35 template<
typename T >
64 virtual PROPERTYCONSTRAINT_TYPE
getType();
71 virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint >
clone();
76 template <
typename T >
81 template <
typename T >
86 template <
typename T >
89 return !value.empty();
92 template <
typename T >
98 template <
typename T >
104 #endif // WPROPERTYCONSTRAINTNOTEMPTY_H
virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > clone()
Method to clone the constraint and create a new one with the correct dynamic type.
WPropertyConstraintNotEmpty()
Constructor.
virtual bool accept(boost::shared_ptr< WPropertyVariable< T > > property, const T &value)
Checks whether the specified new value is larger or equal to the specified min value.
A named property class with a concrete type.
virtual PROPERTYCONSTRAINT_TYPE getType()
Allows simple identification of the real constraint type.
virtual ~WPropertyConstraintNotEmpty()
Destructor.
This class allows constraining properties to be not empty.
PropertyConstraint()
Default constructor.