| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# PropertyWithVerifier< TYPE, VERIFIER > Class Template Reference

Helper intermediate class which represent partly implemented property with value of concrete type and concrete verifier. More...

`#include <Property.h>`

Inheritance diagram for PropertyWithVerifier< TYPE, VERIFIER >:

[legend]
Collaboration diagram for PropertyWithVerifier< TYPE, VERIFIER >:

[legend]

List of all members.

## Public Member Functions
VERIFIER & | verifier ()
const VERIFIER & | verifier () const
bool | set (const TYPE &value)
| update the value of the property/check the verifier
virtual bool | setValue (const TYPE &value)
| implementation of PropertyWithValue::setValue
template<class OTHER, class OTHERVERIFIER>
PropertyWithVerifier & | operator= (const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right)
| templated assignment
template<class OTHER>
PropertyWithVerifier & | operator= (const PropertyWithValue< OTHER > &right)
| templated assignment
PropertyWithVerifier & | operator= (const TYPE &right)
| assignment
## Protected Member Functions
| PropertyWithVerifier (const std::string &name, typename Gaudi::Utils::PropertyTypeTraits< TYPE >::PVal value, const bool owner, const VERIFIER &verifier)
| the constructor with property name and value
virtual | ~PropertyWithVerifier ()
| virtual destructor
## Private Member Functions
| PropertyWithVerifier ()
| the default constructor is disabled
| PropertyWithVerifier (const PropertyWithVerifier &right)
| the copy constructor is disabled
## Private Attributes
VERIFIER | m_verifier
| the verifier itself

## Detailed Description

### template<class TYPE, class VERIFIER>
class PropertyWithVerifier< TYPE, VERIFIER >

Helper intermediate class which represent partly implemented property with value of concrete type and concrete verifier.

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-02-27

Definition at line 381 of file Property.h.

## Constructor & Destructor Documentation

template<class TYPE, class VERIFIER>

PropertyWithVerifier< TYPE, VERIFIER >::PropertyWithVerifier | ( | const std::string & | name,
|  | typename Gaudi::Utils::PropertyTypeTraits< TYPE >::PVal | value,
|  | const bool | owner,
|  | const VERIFIER & | verifier |
| ) |  |  | `[inline, protected]`

the constructor with property name and value

Definition at line 388 of file Property.h.

    00392     : PropertyWithValue<TYPE> ( name , value , owner )
    00393     , m_verifier ( verifier )
    00394   {}

template<class TYPE, class VERIFIER>

virtual PropertyWithVerifier< TYPE, VERIFIER >::~PropertyWithVerifier | ( |  | ) | `[inline, protected, virtual]`

virtual destructor

Definition at line 396 of file Property.h.

    00396 {};

template<class TYPE, class VERIFIER>

PropertyWithVerifier< TYPE, VERIFIER >::PropertyWithVerifier | ( |  | ) | `[private]`

the default constructor is disabled

template<class TYPE, class VERIFIER>

PropertyWithVerifier< TYPE, VERIFIER >::PropertyWithVerifier | ( | const PropertyWithVerifier< TYPE, VERIFIER > & | right | ) | `[private]`

the copy constructor is disabled

## Member Function Documentation

template<class TYPE, class VERIFIER>

VERIFIER& PropertyWithVerifier< TYPE, VERIFIER >::verifier | ( |  | ) | `[inline]`

Definition at line 400 of file Property.h.

    00400 { return m_verifier ; }

template<class TYPE, class VERIFIER>

const VERIFIER& PropertyWithVerifier< TYPE, VERIFIER >::verifier | ( |  | ) | const`[inline]`

Definition at line 401 of file Property.h.

    00401 { return m_verifier ; }

template<class TYPE, class VERIFIER>

bool PropertyWithVerifier< TYPE, VERIFIER >::set | ( | const TYPE & | value | ) | `[inline]`

update the value of the property/check the verifier

Implementation of PropertyWithVerifier::set.

use verifier!

update the value

invoke the update handler

Definition at line 434 of file Property.h.

    00435 {
    00437   if ( !m_verifier.isValid( &value ) ) { return false ; }
    00439   i_set( value ) ;
    00441   return this->useUpdateHandler() ;
    00442 }

template<class TYPE, class VERIFIER>

virtual bool PropertyWithVerifier< TYPE, VERIFIER >::setValue | ( | const TYPE & | value | ) | `[inline, virtual]`

implementation of PropertyWithValue::setValue

Implements PropertyWithValue< TYPE >.

Definition at line 405 of file Property.h.

    00405 { return set( value ) ; }

template<class TYPE, class VERIFIER>
template<class OTHER, class OTHERVERIFIER>

PropertyWithVerifier< TYPE, VERIFIER > & PropertyWithVerifier< TYPE, VERIFIER >::operator= | ( | const PropertyWithVerifier< OTHER, OTHERVERIFIER > & | right | ) | `[inline]`

templated assignment

template assignment

Definition at line 471 of file Property.h.

    00472 {
    00473   PropertyWithValue<TYPE>::operator=(right) ;
    00474   return *this ;
    00475 }

template<class TYPE, class VERIFIER>
template<class OTHER>

PropertyWithVerifier< TYPE, VERIFIER > & PropertyWithVerifier< TYPE, VERIFIER >::operator= | ( | const PropertyWithValue< OTHER > & | right | ) | `[inline]`

templated assignment

template assignment

Reimplemented from PropertyWithValue< TYPE >.

Reimplemented in SimpleProperty< TYPE, VERIFIER >, SimplePropertyRef< TYPE, VERIFIER >, SimpleProperty< double >, SimpleProperty< std::string >, SimpleProperty< std::vector< std::string > >, SimpleProperty< int >, SimpleProperty< unsigned int >, and SimpleProperty< char >.

Definition at line 459 of file Property.h.

    00460 {
    00461   PropertyWithValue<TYPE>::operator=(right) ;
    00462   return *this ;
    00463 }

template<class TYPE, class VERIFIER>

PropertyWithVerifier< TYPE, VERIFIER > & PropertyWithVerifier< TYPE, VERIFIER >::operator= | ( | const TYPE & | right | ) | `[inline]`

assignment

Reimplemented from PropertyWithValue< TYPE >.

Reimplemented in SimpleProperty< TYPE, VERIFIER >, and SimplePropertyRef< TYPE, VERIFIER >.

Definition at line 448 of file Property.h.

    00449 {
    00450   PropertyWithValue<TYPE>::operator=( right ) ;
    00451   return *this ;
    00452 }

## Member Data Documentation

template<class TYPE, class VERIFIER>

VERIFIER PropertyWithVerifier< TYPE, VERIFIER >::m_verifier`[private]`

the verifier itself

Definition at line 426 of file Property.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7/GaudiKernel/GaudiKernel/Property.h