OpenWalnut  1.4.0
Public Member Functions
WPropertyConstraintIsDirectory< T > Class Template Reference

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

#include <WPropertyConstraintIsDirectory.h>

+ Inheritance diagram for WPropertyConstraintIsDirectory< T >:

List of all members.

Public Member Functions

 WPropertyConstraintIsDirectory ()
 Constructor.
virtual ~WPropertyConstraintIsDirectory ()
 Destructor.
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 boost::shared_ptr
< typename WPropertyVariable
< T >::PropertyConstraint
clone ()
 Method to clone the constraint and create a new one with the correct dynamic type.

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 35 of file WPropertyConstraintIsDirectory.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 76 of file WPropertyConstraintIsDirectory.h.

template<typename T >
WPropertyConstraintIsDirectory< T >::~WPropertyConstraintIsDirectory ( ) [virtual]

Destructor.

Definition at line 81 of file WPropertyConstraintIsDirectory.h.


Member Function Documentation

template<typename T >
bool WPropertyConstraintIsDirectory< T >::accept ( boost::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 86 of file WPropertyConstraintIsDirectory.h.

template<typename T >
boost::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 98 of file WPropertyConstraintIsDirectory.h.

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 92 of file WPropertyConstraintIsDirectory.h.


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