Templated helper functions allow to avoid heavy semantics of dealing with explicit type of class TupleObjImp.
{ std::cout <<
"Error" << msg <<
" code " << sc.
getCode() << std::endl ; }
void print_warning (
const std::string& msg ,
StatusCode sc )
{ std::cout <<
"Warning" << msg <<
" code " << sc.
getCode() << std::endl ; }
TupleObj* obj =
print_warning ,
Few 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..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
- Date
- 2004-1-24
Definition at line 150 of file TupleDetail.h.
157 return new TupleObjImp<HANDLER1,HANDLER2>
158 ( handler1 , handler2 ,
159 name , tuple , clid ,
type ) ;