| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# ServiceManager::ServiceItem Struct Reference

`#include <ServiceManager.h>`

Collaboration diagram for ServiceManager::ServiceItem:

[legend]

List of all members.

## Detailed Description

Definition at line 39 of file ServiceManager.h.

## Public Member Functions
| ServiceItem (IService *s, long p=0, bool act=false)
bool | operator== (const std::string &name) const
bool | operator== (const IService *ptr) const
bool | operator< (const ServiceItem &rhs) const
## Public Attributes
SmartIF< IService > | service
long | priority
bool | active

## Constructor & Destructor Documentation

ServiceManager::ServiceItem::ServiceItem | ( | IService * | s,
|  | long | p = `0`,
|  | bool | act = `false` |
| ) |  |  | `[inline]`

Definition at line 40 of file ServiceManager.h.

    00040                                                           :
    00041       service(s), priority(p), active(act) {}
        SmartIF<IService> service;

## Member Function Documentation

bool ServiceManager::ServiceItem::operator== | ( | const std::string & | name | ) | const`[inline]`

Definition at line 45 of file ServiceManager.h.

    00045                                                         {
    00046       return service->name() == name;
    00047     }

bool ServiceManager::ServiceItem::operator== | ( | const IService * | ptr | ) | const`[inline]`

Definition at line 48 of file ServiceManager.h.

    00048                                                       {
    00049       return service.get() == ptr;
    00050     }

bool ServiceManager::ServiceItem::operator< | ( | const ServiceItem & | rhs | ) | const`[inline]`

Definition at line 51 of file ServiceManager.h.

    00051                                                         {
    00052       return priority < rhs.priority;
    00053     }

## Member Data Documentation

SmartIF<IService> ServiceManager::ServiceItem::service

Definition at line 42 of file ServiceManager.h.

long ServiceManager::ServiceItem::priority

Definition at line 43 of file ServiceManager.h.

bool ServiceManager::ServiceItem::active

Definition at line 44 of file ServiceManager.h.

The documentation for this struct was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r6/GaudiSvc/src/ApplicationMgr/ServiceManager.h