OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WPropertyConstraintIsDirectory< T > Class Template Reference

This class allows constraining properties to be existing filenames. More...

#include <WPropertyConstraintIsDirectory.h>

+ Inheritance diagram for WPropertyConstraintIsDirectory< T >:
+ Collaboration diagram for WPropertyConstraintIsDirectory< T >:

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 >::PropertyConstraintclone ()
 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< PropertyConstraintcreate (PROPERTYCONSTRAINT_TYPE type)
 This method creates a constraint using the specified type. More...
 

Detailed Description

template<typename T>
class WPropertyConstraintIsDirectory< T >

This class allows constraining properties to be existing filenames.

This is especially useful for WPropFilename.

Definition at line 37 of file WPropertyConstraintIsDirectory.h.

Constructor & Destructor Documentation

◆ WPropertyConstraintIsDirectory()

Constructor.

Definition at line 78 of file WPropertyConstraintIsDirectory.h.

◆ ~WPropertyConstraintIsDirectory()

template<typename T >
WPropertyConstraintIsDirectory< T >::~WPropertyConstraintIsDirectory
virtual

Destructor.

Definition at line 83 of file WPropertyConstraintIsDirectory.h.

Member Function Documentation

◆ accept()

template<typename T >
bool WPropertyConstraintIsDirectory< T >::accept ( std::shared_ptr< WPropertyVariable< T > >  property,
const T &  value 
)
virtual

Checks whether the specified value is a directory or not.

Parameters
propertythe property whose new value should be set.
valuethe new value to check
Returns
true if the file/path is a directory

Implements WPropertyVariable< T >::PropertyConstraint.

Definition at line 88 of file WPropertyConstraintIsDirectory.h.

◆ clone()

template<typename T >
std::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > WPropertyConstraintIsDirectory< T >::clone
virtual

Method to clone the constraint and create a new one with the correct dynamic type.

Returns
the constraint.

Implements WPropertyVariable< T >::PropertyConstraint.

Definition at line 100 of file WPropertyConstraintIsDirectory.h.

◆ getType()

template<typename T >
PROPERTYCONSTRAINT_TYPE WPropertyConstraintIsDirectory< T >::getType
virtual

Allows simple identification of the real constraint type.

Returns
the type

Reimplemented from WPropertyVariable< T >::PropertyConstraint.

Definition at line 94 of file WPropertyConstraintIsDirectory.h.


The documentation for this class was generated from the following file: