| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# GaudiHandleArrayProperty Class Reference

`#include <Property.h>`

Inheritance diagram for GaudiHandleArrayProperty:

[legend]
Collaboration diagram for GaudiHandleArrayProperty:

[legend]

List of all members.

## Public Member Functions
| GaudiHandleArrayProperty (const std::string &name, GaudiHandleArrayBase &ref)
GaudiHandleArrayProperty & | operator= (const GaudiHandleArrayBase &value)
virtual GaudiHandleArrayProperty * | clone () const
| clone: "virtual constructor"
virtual bool | load (Property &destination) const
| export the property value to the destination
virtual bool | assign (const Property &source)
| import the property value form the source
virtual std::string | toString () const
| value -> string
virtual StatusCode | fromString (const std::string &s)
| string -> value
const GaudiHandleArrayBase & | value () const
bool | setValue (const GaudiHandleArrayBase &value)
## Private Attributes
GaudiHandleArrayBase * | m_pValue
| Pointer to the real property.

## Detailed Description

Definition at line 849 of file Property.h.

## Constructor & Destructor Documentation

GaudiHandleArrayProperty::GaudiHandleArrayProperty | ( | const std::string & | name,
|  | GaudiHandleArrayBase & | ref |
| ) |  |  |

Definition at line 269 of file Property.cpp.

    00270   : Property( name, typeid( GaudiHandleArrayBase ) ), m_pValue( &ref )
    00271 {
    00272   m_pValue->setPropertyName( name );
    00273 }

## Member Function Documentation

GaudiHandleArrayProperty & GaudiHandleArrayProperty::operator= | ( | const GaudiHandleArrayBase & | value | ) | `[inline]`

Definition at line 881 of file Property.h.

    00881                                                                                                         {
    00882   setValue( value );
    00883   return *this;
    00884 }

GaudiHandleArrayProperty * GaudiHandleArrayProperty::clone | ( |  | ) | const`[inline, virtual]`

clone: "virtual constructor"

Implements Property.

Definition at line 886 of file Property.h.

    00886                                                                        {
    00887   return new GaudiHandleArrayProperty( *this );
    00888 }

bool GaudiHandleArrayProperty::load | ( | Property & | dest | ) | const`[inline, virtual]`

export the property value to the destination

Implements Property.

Definition at line 890 of file Property.h.

    00890                                                                         {
    00891   return destination.assign( *this );
    00892 }

bool GaudiHandleArrayProperty::assign | ( | const Property & | source | ) | `[inline, virtual]`

import the property value form the source

Implements Property.

Definition at line 894 of file Property.h.

    00894                                                                      {
    00895   return fromString( source.toString() ) != 0;
    00896 }

std::string GaudiHandleArrayProperty::toString | ( |  | ) | const`[virtual]`

value -> string

Implements Property.

Definition at line 280 of file Property.cpp.

    00280                                                    {
    00281   // treat as if a StringArrayProperty
    00282   useReadHandler();
    00283   return Gaudi::Utils::toString( m_pValue->typesAndNames() );
    00284 }

StatusCode GaudiHandleArrayProperty::fromString | ( | const std::string & | value | ) | `[virtual]`

string -> value

Implements Property.

Definition at line 286 of file Property.cpp.

    00286                                                                          {
    00287   // treat as if a StringArrayProperty
    00288   std::vector< std::string > tmp;
    00289   StatusCode sc = Gaudi::Parsers::parse ( tmp , source );
    00290   if ( sc.isFailure() ) return sc;
    00291   if ( !m_pValue->setTypesAndNames( tmp ) ) return StatusCode::FAILURE;
    00292   return useUpdateHandler()?StatusCode::SUCCESS:StatusCode::FAILURE;
    00293 }

const GaudiHandleArrayBase & GaudiHandleArrayProperty::value | ( |  | ) | const`[inline]`

Definition at line 898 of file Property.h.

    00898                                                                          {
    00899   useReadHandler();
    00900   return *m_pValue;
    00901 }

bool GaudiHandleArrayProperty::setValue | ( | const GaudiHandleArrayBase & | value | ) |

Definition at line 275 of file Property.cpp.

    00275                                                                            {
    00276   m_pValue->setTypesAndNames( value.typesAndNames() );
    00277   return useUpdateHandler();
    00278 }

## Member Data Documentation

GaudiHandleArrayBase* GaudiHandleArrayProperty::m_pValue`[private]`

Pointer to the real property.

Reference would be better, but Reflex does not support references yet

Definition at line 873 of file Property.h.

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

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