Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiHandleArrayProperty Class Reference

#include <Property.h>

Inheritance diagram for GaudiHandleArrayProperty:

Inheritance graph
[legend]
Collaboration diagram for GaudiHandleArrayProperty:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 808 of file Property.h.


Public Member Functions

 GaudiHandleArrayProperty (const std::string &name, GaudiHandleArrayBase &ref)
GaudiHandleArrayPropertyoperator= (const GaudiHandleArrayBase &value)
virtual GaudiHandleArrayPropertyclone () 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 GaudiHandleArrayBasevalue () const
bool setValue (const GaudiHandleArrayBase &value)

Private Attributes

GaudiHandleArrayBasem_pValue
 Pointer to the real property.

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 840 of file Property.h.

00840                                                                                                         {
00841   setValue( value );
00842   return *this;
00843 }

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

clone: "virtual constructor"

Implements Property.

Definition at line 845 of file Property.h.

00845                                                                        {
00846   return new GaudiHandleArrayProperty( *this );
00847 }

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

export the property value to the destination

Implements Property.

Definition at line 849 of file Property.h.

00849                                                                         {
00850   return destination.assign( *this );
00851 }

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

import the property value form the source

Implements Property.

Definition at line 853 of file Property.h.

00853                                                                      {
00854   return fromString( source.toString() ) != 0;
00855 }

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 857 of file Property.h.

00857                                                                          {
00858   useReadHandler();
00859   return *m_pValue;
00860 }

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

Pointer to the real property.

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

Definition at line 832 of file Property.h.


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

Generated at Mon Sep 7 18:18:16 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004