|
Gaudi Framework, version v21r8 |
| Home | Generated: 17 Mar 2010 |
#include <Property.h>


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. | |
Definition at line 849 of file Property.h.
| 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 }
| 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 }
export the property value to the destination
Implements Property.
Definition at line 890 of file Property.h.
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 }
Pointer to the real property.
Reference would be better, but Reflex does not support references yet
Definition at line 873 of file Property.h.