Gaudi Framework, version v22r1

Home   Generated: Mon Feb 28 2011
Public Member Functions | Private Attributes

GaudiHandleArrayProperty Class Reference

#include <Property.h>

Inheritance diagram for GaudiHandleArrayProperty:
Inheritance graph
[legend]
Collaboration diagram for GaudiHandleArrayProperty:
Collaboration graph
[legend]

List of all members.

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.

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.


Member Function Documentation

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.

                                                                     {
  return fromString( source.toString() ) != 0;
}
GaudiHandleArrayProperty * GaudiHandleArrayProperty::clone (  ) const [inline, virtual]

clone: "virtual constructor"

Implements Property.

Definition at line 886 of file Property.h.

                                                                       {
  return new GaudiHandleArrayProperty( *this );
}
StatusCode GaudiHandleArrayProperty::fromString ( const std::string value ) [virtual]

string -> value

Implements Property.

Definition at line 286 of file Property.cpp.

                                                                         {
  // treat as if a StringArrayProperty
  std::vector< std::string > tmp;
  StatusCode sc = Gaudi::Parsers::parse ( tmp , source );
  if ( sc.isFailure() ) return sc;
  if ( !m_pValue->setTypesAndNames( tmp ) ) return StatusCode::FAILURE;
  return useUpdateHandler()?StatusCode::SUCCESS:StatusCode::FAILURE;
}
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.

                                                                        {
  return destination.assign( *this );
}
GaudiHandleArrayProperty & GaudiHandleArrayProperty::operator= ( const GaudiHandleArrayBase value ) [inline]

Definition at line 881 of file Property.h.

                                                                                                        {
  setValue( value );
  return *this;
}
bool GaudiHandleArrayProperty::setValue ( const GaudiHandleArrayBase value )

Definition at line 275 of file Property.cpp.

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

value -> string

Implements Property.

Definition at line 280 of file Property.cpp.

                                                   {
  // treat as if a StringArrayProperty
  useReadHandler();
  return Gaudi::Utils::toString( m_pValue->typesAndNames() );
}
const GaudiHandleArrayBase & GaudiHandleArrayProperty::value (  ) const [inline]

Definition at line 898 of file Property.h.

                                                                         {
  useReadHandler();
  return *m_pValue;
}

Member Data Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Feb 28 2011 18:28:05 for Gaudi Framework, version v22r1 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004