25 #ifndef WPROPERTYCONSTRAINTPATHEXISTS_H
26 #define WPROPERTYCONSTRAINTPATHEXISTS_H
28 #include "../WPropertyTypes.h"
29 #include "WPropertyConstraintTypes.h"
34 template <
typename T >
63 virtual PROPERTYCONSTRAINT_TYPE
getType();
70 virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint >
clone();
75 template <
typename T >
80 template <
typename T >
85 template <
typename T >
88 return boost::filesystem::exists( value );
91 template <
typename T >
97 template <
typename T >
103 #endif // WPROPERTYCONSTRAINTPATHEXISTS_H
virtual PROPERTYCONSTRAINT_TYPE getType()
Allows simple identification of the real constraint type.
This class allows constraining properties to be existing filenames.
A named property class with a concrete type.
WPropertyConstraintPathExists()
Constructor.
virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > clone()
Method to clone the constraint and create a new one with the correct dynamic type.
virtual ~WPropertyConstraintPathExists()
Destructor.
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.
PropertyConstraint()
Default constructor.