Gaudi Framework, version v20r3

Generated: 24 Nov 2008

HistogramPersistencySvc.cpp File Reference

#include "GaudiKernel/SmartIF.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/SvcFactory.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/IJobOptionsSvc.h"
#include "GaudiKernel/DataObject.h"
#include "GaudiKernel/IRegistry.h"
#include "HistogramPersistencySvc.h"
#include "AIDA/IBaseHistogram.h"

Include dependency graph for HistogramPersistencySvc.cpp:

Go to the source code of this file.

Defines

#define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_CPP

Functions

bool match (const std::string &name, const std::string &pat)
 check the match of the full name and the pattern
const std::string & oname (const DataObject *obj)
 get the ful name of data object
bool match (const DataObject *obj, const std::string &pat)
 check the match of the full name of data object with the pattern

Variables

const std::string s_NULL = "<NULL>"
 invalid name


Define Documentation

#define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_CPP

Definition at line 21 of file HistogramPersistencySvc.cpp.


Function Documentation

bool @621::match ( const DataObject obj,
const std::string &  pat 
) [inline, static]

check the match of the full name of data object with the pattern

Parameters:
obj the object
pat the pattern
Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Definition at line 192 of file HistogramPersistencySvc.cpp.

00194   {
00195     if ( 0 == obj ) { return false ; }
00196     return match ( oname ( obj ) , pat ) ;
00197   }

bool @621::match ( const std::string &  name,
const std::string &  pat 
) [inline, static]

check the match of the full name and the pattern

Parameters:
obj the object
pat the pattern
Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Definition at line 169 of file HistogramPersistencySvc.cpp.

00171   {
00172     // the most primitive match
00173     return std::string::npos != name.find ( pat );
00174   }

const std::string& @621::oname ( const DataObject obj  )  [inline, static]

get the ful name of data object

Parameters:
obj the object
Returns:
the full name

Definition at line 180 of file HistogramPersistencySvc.cpp.

00181   {
00182     if ( 0 == obj ) { return s_NULL ; }
00183     const IRegistry* reg = obj->registry() ;
00184     return ( 0 == reg ) ? obj -> name () : reg -> identifier () ;
00185   }


Variable Documentation

const std::string s_NULL = "<NULL>" [static]

invalid name

Definition at line 160 of file HistogramPersistencySvc.cpp.


Generated at Mon Nov 24 14:43:48 2008 for Gaudi Framework, version v20r3 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004