| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Member Functions | Protected Attributes

# NTuple::Selector Class Reference

NTuple Selector class. More...

`#include <Selector.h>`

Inheritance diagram for NTuple::Selector:
[legend]
Collaboration diagram for NTuple::Selector:
[legend]

List of all members.

## Public Member Functions
| Selector (IInterface *svc)
| Standard constructor.
virtual | ~Selector ()
| Standard Destructor.
bool | firstCall () const
| Check for first call.
StatusCode | initResult () const
| Access initialization status.
virtual bool | operator() (void *nt)
| Default callback from interface.
virtual bool | operator() (NTuple::Tuple *nt)
| Specialized callback for NTuples.
virtual StatusCode | initialize (NTuple::Tuple *nt)
| Selector Initialization.
## Protected Attributes
IInterface * | m_parent
| reference to parent interface
bool | m_firstCall
| Boolean to indicate need for initialization.
StatusCode | m_status
| StatusCode indication initialization result.

## Detailed Description

NTuple Selector class.

Definition at line 29 of file Selector.h.

## Constructor & Destructor Documentation

NTuple::Selector::Selector | ( | IInterface * | svc ) | `[inline]`

Standard constructor.

Definition at line 39 of file Selector.h.

                                  : m_parent(svc), m_firstCall(true)
        {
        }

virtual NTuple::Selector::~Selector | ( | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 43 of file Selector.h.

                            {
        }

## Member Function Documentation

bool NTuple::Selector::firstCall | ( | ) | const`[inline]`

Check for first call.

Definition at line 46 of file Selector.h.

                                  {
          return m_firstCall;
        }

StatusCode NTuple::Selector::initialize | ( | NTuple::Tuple * | nt ) | `[virtual]`

Selector Initialization.

Selector Initialisation.

Definition at line 21 of file Selector.cpp.

                                                                   {
      return StatusCode::SUCCESS;
    }

StatusCode NTuple::Selector::initResult | ( | ) | const`[inline]`

Access initialization status.

Definition at line 50 of file Selector.h.

                                          {
          return m_status;
        }

bool NTuple::Selector::operator() | ( | void * | nt ) | `[virtual]`

Default callback from interface.

Overloaded callback from SelectStatement.

Reimplemented from SelectStatement.

Definition at line 26 of file Selector.cpp.

                                              {
      DataObject* p = (DataObject*)nt;
      bool result = false;
      try   {
        NTuple::Tuple* tuple = dynamic_cast<NTuple::Tuple*>(p);
        if ( 0 != tuple )   {
          if ( m_firstCall )    {
            m_status = initialize(tuple);
            m_firstCall = false;
          }
          if ( m_status.isSuccess() )  {
            result = this->operator()(tuple);
          }
        }
      }
      catch(...)    {
      }
      return result;
    }

bool NTuple::Selector::operator() | ( | NTuple::Tuple * | nt ) | `[virtual]`

Specialized callback for NTuples.

Specialized overload for N-tuples.

Definition at line 47 of file Selector.cpp.

                                                           {
      return true;
    }

## Member Data Documentation

bool NTuple::Selector::m_firstCall`[protected]`

Boolean to indicate need for initialization.

Definition at line 34 of file Selector.h.

IInterface* NTuple::Selector::m_parent`[protected]`

reference to parent interface

Definition at line 32 of file Selector.h.

StatusCode NTuple::Selector::m_status`[protected]`

StatusCode indication initialization result.

Definition at line 36 of file Selector.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiKernel/GaudiKernel/Selector.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiKernel/src/Lib/Selector.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines