Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
Public Member Functions | Private Member Functions | Private Attributes

Tuples::detail::ErrorHandler< OBJECT, FUNCTION > Class Template Reference

Concrete error handlers for dealing with classes, which supports member functions Error,Warning and Print ( e.g. More...

#include <TupleDetail.h>

Collaboration diagram for Tuples::detail::ErrorHandler< OBJECT, FUNCTION >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ErrorHandler (const OBJECT *obj, FUNCTION fun)
 constructor
StatusCode operator() (const std::string &msg, const StatusCode sc, const size_t mp=10) const
 the only one 'useful' method

Private Member Functions

 ErrorHandler ()

Private Attributes

const OBJECTm_obj
FUNCTION m_fun

Detailed Description

template<class OBJECT, class FUNCTION>
class Tuples::detail::ErrorHandler< OBJECT, FUNCTION >

Concrete error handlers for dealing with classes, which supports member functions Error,Warning and Print ( e.g.

class GaudiAlgorithm or class GaudiTool ) are provided

Author:
Vanya BELYAEV Ivan.Belyaev@itep.ru
Date:
2004-1-24

Definition at line 173 of file TupleDetail.h.


Constructor & Destructor Documentation

template<class OBJECT, class FUNCTION>
Tuples::detail::ErrorHandler< OBJECT, FUNCTION >::ErrorHandler ( const OBJECT obj,
FUNCTION  fun 
) [inline]

constructor

Definition at line 177 of file TupleDetail.h.

        : m_obj ( obj ) , m_fun ( fun ) {}
template<class OBJECT, class FUNCTION>
Tuples::detail::ErrorHandler< OBJECT, FUNCTION >::ErrorHandler (  ) [private]

Member Function Documentation

template<class OBJECT, class FUNCTION>
StatusCode Tuples::detail::ErrorHandler< OBJECT, FUNCTION >::operator() ( const std::string msg,
const StatusCode  sc,
const size_t  mp = 10 
) const [inline]

the only one 'useful' method

Definition at line 182 of file TupleDetail.h.

      {
        return (m_obj->*m_fun)( msg , sc , mp ) ;
      }

Member Data Documentation

template<class OBJECT, class FUNCTION>
FUNCTION Tuples::detail::ErrorHandler< OBJECT, FUNCTION >::m_fun [private]

Definition at line 193 of file TupleDetail.h.

template<class OBJECT, class FUNCTION>
const OBJECT* Tuples::detail::ErrorHandler< OBJECT, FUNCTION >::m_obj [private]

Definition at line 192 of file TupleDetail.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:55 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004