OpenWalnut
1.5.0dev
|
This class allows constraining properties to be existing filenames. More...
#include <WPropertyConstraintIsDirectory.h>
Public Member Functions | |
WPropertyConstraintIsDirectory () | |
Constructor. More... | |
virtual | ~WPropertyConstraintIsDirectory () |
Destructor. More... | |
virtual bool | accept (std::shared_ptr< WPropertyVariable< T > > property, const T &value) |
Checks whether the specified value is a directory or not. More... | |
virtual PROPERTYCONSTRAINT_TYPE | getType () |
Allows simple identification of the real constraint type. More... | |
virtual std::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > | clone () |
Method to clone the constraint and create a new one with the correct dynamic type. More... | |
Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint | |
PropertyConstraint () | |
Default constructor. More... | |
virtual | ~PropertyConstraint () |
Destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint | |
static std::shared_ptr< PropertyConstraint > | create (PROPERTYCONSTRAINT_TYPE type) |
This method creates a constraint using the specified type. More... | |
This class allows constraining properties to be existing filenames.
This is especially useful for WPropFilename.
Definition at line 37 of file WPropertyConstraintIsDirectory.h.
WPropertyConstraintIsDirectory< T >::WPropertyConstraintIsDirectory |
Constructor.
Definition at line 78 of file WPropertyConstraintIsDirectory.h.
|
virtual |
Destructor.
Definition at line 83 of file WPropertyConstraintIsDirectory.h.
|
virtual |
Checks whether the specified value is a directory or not.
property | the property whose new value should be set. |
value | the new value to check |
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 88 of file WPropertyConstraintIsDirectory.h.
|
virtual |
Method to clone the constraint and create a new one with the correct dynamic type.
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 100 of file WPropertyConstraintIsDirectory.h.
|
virtual |
Allows simple identification of the real constraint type.
Reimplemented from WPropertyVariable< T >::PropertyConstraint.
Definition at line 94 of file WPropertyConstraintIsDirectory.h.