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

This class allows constraining selection properties to not allow selection of multiple items. More...

#include <WPropertyConstraintSelectOnlyOne.h>

+ Inheritance diagram for WPropertyConstraintSelectOnlyOne< T >:

List of all members.

Public Member Functions

 WPropertyConstraintSelectOnlyOne ()
 Constructor.
virtual ~WPropertyConstraintSelectOnlyOne ()
 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 WPropertyConstraintSelectOnlyOne< T >

This class allows constraining selection properties to not allow selection of multiple items.

Definition at line 35 of file WPropertyConstraintSelectOnlyOne.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 76 of file WPropertyConstraintSelectOnlyOne.h.

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

Destructor.

Definition at line 81 of file WPropertyConstraintSelectOnlyOne.h.


Member Function Documentation

template<typename T >
bool WPropertyConstraintSelectOnlyOne< 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 WPropertyConstraintSelectOnlyOne.h.

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

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


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