| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Types | Public Member Functions | Private Attributes

# PoolDbContext Class Reference

Inheritance diagram for PoolDbContext:
[legend]
Collaboration diagram for PoolDbContext:
[legend]

List of all members.

## Public Types
typedef std::list< std::string > | ListName
## Public Member Functions
| PoolDbContext (const PoolDbEvtSelector *pSelector)
| Standard constructor.
virtual | ~PoolDbContext ()
| Standard destructor.
const std::string & | currentInput () const
void | setCurrentInput (const std::string &v)
ListName & | files ()
virtual void * | identifier () const
void | setCriteria (const std::string &crit)
pool::Token * | token () const
void | setToken (pool::Token *p)
ListName::const_iterator | fileIterator ()
void | setFileIterator (ListName::const_iterator new_iter)
pool::DbSelect * | iterator () const
void | setIterator (pool::DbSelect *new_iter)
pool::DbSelect * | selectInput (IPoolDbMgr *mgr, const std::string &sel, const std::string &input, const std::string &cnt)
## Private Attributes
const PoolDbEvtSelector * | m_pSelector
pool::DbSelect * | m_iterator
pool::Token * | m_token
ListName | m_files
std::string | m_criteria
ListName::const_iterator | m_fileIterator
std::string | m_currentInput

## Detailed Description

Author:
  M.Frank

Version:
  1.0

Definition at line 41 of file PoolDbEvtSelector.cpp.

## Member Typedef Documentation

typedef std::list<std::string> PoolDbContext::ListName

Definition at line 43 of file PoolDbEvtSelector.cpp.

## Constructor & Destructor Documentation

PoolDbContext::PoolDbContext | ( | const PoolDbEvtSelector * | pSelector ) |

Standard constructor.

Definition at line 109 of file PoolDbEvtSelector.cpp.

      : m_pSelector(pSelector), m_iterator(0), m_token(0)
    {
      s_countPoolDbContext->increment();
    }

PoolDbContext::~PoolDbContext | ( | ) | `[virtual]`

Standard destructor.

Definition at line 103 of file PoolDbEvtSelector.cpp.

                                  {
      pool::deletePtr(m_iterator);
      pool::releasePtr(m_token);
      s_countPoolDbContext->decrement();
    }

## Member Function Documentation

const std::string& PoolDbContext::currentInput | ( | ) | const`[inline]`

Definition at line 58 of file PoolDbEvtSelector.cpp.

                                            {
        return m_currentInput;
      }

ListName::const_iterator PoolDbContext::fileIterator | ( | ) | `[inline]`

Definition at line 80 of file PoolDbEvtSelector.cpp.

                                                   {
        return m_fileIterator;
      }

ListName& PoolDbContext::files | ( | ) | `[inline]`

Definition at line 64 of file PoolDbEvtSelector.cpp.

                        {
        return m_files;
      }

virtual void* PoolDbContext::identifier | ( | ) | const`[inline, virtual]`

Implements IEvtSelector::Context.

Definition at line 67 of file PoolDbEvtSelector.cpp.

                                       {
        return (void*)m_pSelector;
      }

pool::DbSelect* PoolDbContext::iterator | ( | ) | const`[inline]`

Definition at line 86 of file PoolDbEvtSelector.cpp.

                                     {
        return m_iterator;
      }

pool::DbSelect * PoolDbContext::selectInput | ( | IPoolDbMgr * | mgr,
|  | const std::string & | sel,
|  | const std::string & | input,
|  | const std::string & | cnt
| ) |  |

Definition at line 116 of file PoolDbEvtSelector.cpp.

    {
      setIterator(mgr->createSelect(sel,input,cnt));
      iterator() ? setCurrentInput(input) : setCurrentInput("");
      return iterator();
    }

void PoolDbContext::setCriteria | ( | const std::string & | crit ) | `[inline]`

Definition at line 70 of file PoolDbEvtSelector.cpp.

                                              {
        m_criteria = crit;
      }

void PoolDbContext::setCurrentInput | ( | const std::string & | v ) | `[inline]`

Definition at line 61 of file PoolDbEvtSelector.cpp.

                                               {
        m_currentInput = v;
      }

void PoolDbContext::setFileIterator | ( | ListName::const_iterator | new_iter ) | `[inline]`

Definition at line 83 of file PoolDbEvtSelector.cpp.

                                                             {
        m_fileIterator = new_iter;
      }

void PoolDbContext::setIterator | ( | pool::DbSelect * | new_iter ) | `[inline]`

Definition at line 89 of file PoolDbEvtSelector.cpp.

                                                {
        pool::deletePtr(m_iterator);
        m_iterator = new_iter;
      }

void PoolDbContext::setToken | ( | pool::Token * | p ) | `[inline]`

Definition at line 76 of file PoolDbEvtSelector.cpp.

                                  {
        pool::releasePtr(m_token);
        m_token = p;
      }

pool::Token* PoolDbContext::token | ( | ) | const`[inline]`

Definition at line 73 of file PoolDbEvtSelector.cpp.

                               {
        return m_token;
      }

## Member Data Documentation

std::string PoolDbContext::m_criteria`[private]`

Definition at line 49 of file PoolDbEvtSelector.cpp.

std::string PoolDbContext::m_currentInput`[private]`

Definition at line 51 of file PoolDbEvtSelector.cpp.

ListName::const_iterator PoolDbContext::m_fileIterator`[private]`

Definition at line 50 of file PoolDbEvtSelector.cpp.

ListName PoolDbContext::m_files`[private]`

Definition at line 48 of file PoolDbEvtSelector.cpp.

pool::DbSelect* PoolDbContext::m_iterator`[mutable, private]`

Definition at line 46 of file PoolDbEvtSelector.cpp.

const PoolDbEvtSelector* PoolDbContext::m_pSelector`[private]`

Definition at line 45 of file PoolDbEvtSelector.cpp.

pool::Token* PoolDbContext::m_token`[mutable, private]`

Definition at line 47 of file PoolDbEvtSelector.cpp.

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

- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r2/GaudiPoolDb/src/PoolDbEvtSelector.cpp

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