| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

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)
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)
const std::string & name () const
 property name
const std::string & documentation () const
 property documentation
const std::type_info * type_info () const
 property type-info
std::string type () const
 property type
const PropertyCallbackFunctorreadCallBack () const
 Call-back functor at reading: the functor is ownered by property!
const PropertyCallbackFunctorupdateCallBack () const
 Call-back functor for update: the funtor is ownered by property!
virtual void declareReadHandler (PropertyCallbackFunctor *pf)
 set new callback for reading
template<class HT>
void declareReadHandler (void(HT::*MF)(Property &), HT *instance)
virtual void declareUpdateHandler (PropertyCallbackFunctor *pf)
 set new callback for update
template<class HT>
void declareUpdateHandler (void(HT::*MF)(Property &), HT *instance)
virtual void useReadHandler () const
 use the call-back function at reading
virtual void useUpdateHandler ()
 use the call-back function at update
void setName (const std::string &value)
 set the new value for the property name
void setDocumentation (const std::string &documentation)
 set the documentation string
virtual std::ostream & fillStream (std::ostream &) const
 the printout of the property value

Protected Attributes

PropertyCallbackFunctorm_readCallBack
PropertyCallbackFunctorm_updateCallBack

Private Attributes

GaudiHandleArrayBasem_pValue
 Pointer to the real property.

Detailed Description

Definition at line 812 of file Property.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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

Definition at line 844 of file Property.h.

00844                                                                                                         {
00845   setValue( value );
00846   return *this;
00847 }

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

clone: "virtual constructor"

Implements Property.

Definition at line 849 of file Property.h.

00849                                                                        {
00850   return new GaudiHandleArrayProperty( *this );
00851 }

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

export the property value to the destination

Implements Property.

Definition at line 853 of file Property.h.

00853                                                                         {
00854   return destination.assign( *this );
00855 }

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

import the property value form the source

Implements Property.

Definition at line 857 of file Property.h.

00857                                                                      {
00858   return fromString( source.toString() ) != 0;
00859 }

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

value -> string

Implements Property.

virtual StatusCode GaudiHandleArrayProperty::fromString ( const std::string &  s  )  [virtual]

string -> value

Implements Property.

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

Definition at line 861 of file Property.h.

00861                                                                          {
00862   useReadHandler();
00863   return *m_pValue;
00864 }

bool GaudiHandleArrayProperty::setValue ( const GaudiHandleArrayBase value  ) 

const std::string& Property::name (  )  const [inline, inherited]

property name

Definition at line 50 of file Property.h.

00050 { return m_name             ; } ;

const std::string& Property::documentation (  )  const [inline, inherited]

property documentation

Definition at line 52 of file Property.h.

00052 { return m_documentation; };

const std::type_info* Property::type_info (  )  const [inline, inherited]

property type-info

Definition at line 54 of file Property.h.

00054 { return m_typeinfo         ; } ;

std::string Property::type (  )  const [inline, inherited]

property type

Definition at line 56 of file Property.h.

00056 { return m_typeinfo->name() ; } ;

const PropertyCallbackFunctor* Property::readCallBack (  )  const [inherited]

Call-back functor at reading: the functor is ownered by property!

const PropertyCallbackFunctor* Property::updateCallBack (  )  const [inherited]

Call-back functor for update: the funtor is ownered by property!

virtual void Property::declareReadHandler ( PropertyCallbackFunctor pf  )  [virtual, inherited]

set new callback for reading

template<class HT>
void Property::declareReadHandler ( void(HT::*)(Property &)  MF,
HT *  instance 
) [inline, inherited]

Definition at line 131 of file Property.h.

virtual void Property::declareUpdateHandler ( PropertyCallbackFunctor pf  )  [virtual, inherited]

set new callback for update

template<class HT>
void Property::declareUpdateHandler ( void(HT::*)(Property &)  MF,
HT *  instance 
) [inline, inherited]

Definition at line 136 of file Property.h.

virtual void Property::useReadHandler (  )  const [virtual, inherited]

use the call-back function at reading

virtual void Property::useUpdateHandler (  )  [virtual, inherited]

use the call-back function at update

void Property::setName ( const std::string &  value  )  [inline, inherited]

set the new value for the property name

Definition at line 91 of file Property.h.

00091 { m_name = value ; }

void Property::setDocumentation ( const std::string &  documentation  )  [inline, inherited]

set the documentation string

Definition at line 93 of file Property.h.

00093                                                           {
00094     m_documentation = documentation; };

virtual std::ostream& Property::fillStream ( std::ostream &   )  const [virtual, inherited]

the printout of the property value


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

PropertyCallbackFunctor* Property::m_readCallBack [mutable, protected, inherited]

Definition at line 122 of file Property.h.

PropertyCallbackFunctor* Property::m_updateCallBack [protected, inherited]

Definition at line 124 of file Property.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:07 2011 for GaudiKernel by doxygen 1.4.7