| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# ServiceManager::ServiceItem Struct Reference

`#include <ServiceManager.h>`

Collaboration diagram for ServiceManager::ServiceItem:

[legend]

List of all members.

## 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

## Detailed Description

Definition at line 39 of file ServiceManager.h.

## 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_v21r9/GaudiSvc/src/ApplicationMgr/ServiceManager.h