25 #ifndef WPROPERTYCONSTRAINTISDIRECTORY_H
26 #define WPROPERTYCONSTRAINTISDIRECTORY_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::is_directory( value );
91 template <
typename T >
94 return PC_ISDIRECTORY;
97 template <
typename T >
104 #endif // WPROPERTYCONSTRAINTISDIRECTORY_H
A named property class with a concrete type.
virtual bool accept(boost::shared_ptr< WPropertyVariable< T > > property, const T &value)
Checks whether the specified value is a directory or not.
virtual PROPERTYCONSTRAINT_TYPE getType()
Allows simple identification of the real constraint type.
virtual ~WPropertyConstraintIsDirectory()
Destructor.
This class allows constraining properties to be existing filenames.
WPropertyConstraintIsDirectory()
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.
PropertyConstraint()
Default constructor.