OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
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 >:

Public Member Functions

 WPropertyConstraintSelectOnlyOne ()
 Constructor.
virtual ~WPropertyConstraintSelectOnlyOne ()
 Destructor.
virtual bool accept (boost::shared_ptr< WPropertyVariable< T > > property, 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.
- Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint
 PropertyConstraint ()
 Default constructor.
virtual ~PropertyConstraint ()
 Destructor.

Additional Inherited Members

- Static Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint
static boost::shared_ptr
< PropertyConstraint
create (PROPERTYCONSTRAINT_TYPE type)
 This method creates a constraint using the specified 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,
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: