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

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

#include <WPropertyConstraintPathExists.h>

+ Inheritance diagram for WPropertyConstraintPathExists< T >:

List of all members.

Public Member Functions

 WPropertyConstraintPathExists ()
 Constructor.
virtual ~WPropertyConstraintPathExists ()
 Destructor.
virtual bool accept (boost::shared_ptr< WPropertyVariable< T > > property, const T &value)
 Checks whether the specified new value is larger or equal to the specified min value.
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 WPropertyConstraintPathExists< T >

This class allows constraining properties to be existing filenames.

This is especially useful for WPropFilename.

Definition at line 35 of file WPropertyConstraintPathExists.h.


Constructor & Destructor Documentation

template<typename T >
WPropertyConstraintPathExists< T >::WPropertyConstraintPathExists ( ) [explicit]

Constructor.

Definition at line 76 of file WPropertyConstraintPathExists.h.

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

Destructor.

Definition at line 81 of file WPropertyConstraintPathExists.h.


Member Function Documentation

template<typename T >
bool WPropertyConstraintPathExists< T >::accept ( boost::shared_ptr< WPropertyVariable< T > >  property,
const T &  value 
) [virtual]

Checks whether the specified new value is larger or equal to the specified min value.

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

Implements WPropertyVariable< T >::PropertyConstraint.

Definition at line 86 of file WPropertyConstraintPathExists.h.

template<typename T >
boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > WPropertyConstraintPathExists< 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 WPropertyConstraintPathExists.h.

template<typename T >
PROPERTYCONSTRAINT_TYPE WPropertyConstraintPathExists< 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 WPropertyConstraintPathExists.h.


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