| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# Gaudi::Utils::GetData< TYPE > Struct Template Reference

Helper structure for implementation of "get"-functions for GaudiCommon<BASE>. More...

`#include <GetData.h>`

Inheritance diagram for Gaudi::Utils::GetData< TYPE >:

[legend]

List of all members.

## Public Types
typedef TYPE | Type
typedef _GetType< Type > ::return_type | return_type
| the actual return type
## Public Member Functions
template<class COMMON>
return_type | operator() (const COMMON &common, IDataProviderSvc *service, const std::string &location) const
| the only one essential method

## Detailed Description

### template<class TYPE>
struct Gaudi::Utils::GetData< TYPE >

Helper structure for implementation of "get"-functions for GaudiCommon<BASE>.

Author:
  Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Date:
  2008-07-22

Definition at line 67 of file GetData.h.

## Member Typedef Documentation

template<class TYPE>

typedef TYPE Gaudi::Utils::GetData< TYPE >::Type

Definition at line 71 of file GetData.h.

template<class TYPE>

typedef _GetType<Type>::return_type Gaudi::Utils::GetData< TYPE >::return_type

the actual return type

Definition at line 73 of file GetData.h.

## Member Function Documentation

template<class TYPE>
template<class COMMON>

return_type Gaudi::Utils::GetData< TYPE >::operator() | ( | const COMMON & | common,
|  | IDataProviderSvc * | service,
|  | const std::string & | location |
| ) |  |  | const`[inline]`

the only one essential method

Parameters:

  | common | the actual "worker"
  | service | pointer to Data Provider Service
  | location | location of objects in TES

Returns:
  the data

use Data Provider Service

check the data

debug printout

Definition at line 85 of file GetData.h.

    00088       {
    00090         SmartDataPtr<TYPE> obj ( service , location ) ;
    00091         return_type aux = obj ;
    00093         common.Assert ( !(!aux) , "get():: No valid data at '" + location + "'"  ) ;
    00095         if ( common.msgLevel ( MSG::DEBUG ) )
    00096         { common.debug() << "The object of type '"
    00097                          << System::typeinfoName(typeid(aux))
    00098                          << "' has been retrieved from TS at address '"
    00099                          << location << "'" << endmsg ; }
    00100         // return located *VALID* data
    00101         return aux ;
    00102         // ======================================================================
    00103       }

The documentation for this struct was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiAlg/GaudiAlg/GetData.h