25 #ifndef WPROPERTYCONSTRAINTPATHEXISTS_H
26 #define WPROPERTYCONSTRAINTPATHEXISTS_H
30 #include "../WPropertyTypes.h"
31 #include "WPropertyConstraintTypes.h"
36 template <
typename T >
65 virtual PROPERTYCONSTRAINT_TYPE
getType();
72 virtual std::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint >
clone();
77 template <
typename T >
82 template <
typename T >
87 template <
typename T >
90 return boost::filesystem::exists( value );
93 template <
typename T >
99 template <
typename T >
This class allows constraining properties to be existing filenames.
virtual bool accept(std::shared_ptr< WPropertyVariable< T > > property, const T &value)
Checks whether the specified new value is larger or equal to the specified min value.
virtual std::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > clone()
Method to clone the constraint and create a new one with the correct dynamic type.
virtual PROPERTYCONSTRAINT_TYPE getType()
Allows simple identification of the real constraint type.
WPropertyConstraintPathExists()
Constructor.
virtual ~WPropertyConstraintPathExists()
Destructor.
PropertyConstraint()
Default constructor.
A named property class with a concrete type.