| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 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::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 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 @652::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 @652::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& @652::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.