Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

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 "GaudiKernel/IDataProviderSvc.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
#define class   class GAUDI_API
 : AIDA interfaces visibility

Functions

bool match (const std::string &name, const std::string &pat)
 check the match of the full name and the pattern
const std::stringoname (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 class   class GAUDI_API

: AIDA interfaces visibility

Definition at line 43 of file HistogramPersistencySvc.cpp.

#define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_CPP

Definition at line 21 of file HistogramPersistencySvc.cpp.


Function Documentation

bool @645::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 195 of file HistogramPersistencySvc.cpp.

00197   {
00198     if ( 0 == obj ) { return false ; }
00199     return match ( oname ( obj ) , pat ) ;
00200   }

bool @645::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 172 of file HistogramPersistencySvc.cpp.

00174   {
00175     // the most primitive match
00176     return std::string::npos != name.find ( pat );
00177   }

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

get the ful name of data object

Parameters:
obj the object
Returns:
the full name

Definition at line 183 of file HistogramPersistencySvc.cpp.

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


Variable Documentation

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

invalid name

Definition at line 163 of file HistogramPersistencySvc.cpp.


Generated at Wed Mar 17 18:12:51 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004