| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

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

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

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

Standard destructor.

Definition at line 103 of file PoolDbEvtSelector.cpp.

    00103                               {
    00104   pool::deletePtr(m_iterator);
    00105   pool::releasePtr(m_token);
    00106   s_countPoolDbContext->decrement();
    00107 }

## Member Function Documentation

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

Definition at line 58 of file PoolDbEvtSelector.cpp.

    00058                                         {
    00059     return m_currentInput;
    00060   }

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

Definition at line 61 of file PoolDbEvtSelector.cpp.

    00061                                            {
    00062     m_currentInput = v;
    00063   }

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

Definition at line 64 of file PoolDbEvtSelector.cpp.

    00064                     {
    00065     return m_files;
    00066   }

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

Implements IEvtSelector::Context.

Definition at line 67 of file PoolDbEvtSelector.cpp.

    00067                                    {
    00068     return (void*)m_pSelector;
    00069   }

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

Definition at line 70 of file PoolDbEvtSelector.cpp.

    00070                                           {
    00071     m_criteria = crit;
    00072   }

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

Definition at line 73 of file PoolDbEvtSelector.cpp.

    00073                            {
    00074     return m_token;
    00075   }

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

Definition at line 76 of file PoolDbEvtSelector.cpp.

    00076                               {
    00077     pool::releasePtr(m_token);
    00078     m_token = p;
    00079   }

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

Definition at line 80 of file PoolDbEvtSelector.cpp.

    00080                                                {
    00081     return m_fileIterator;
    00082   }

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

Definition at line 83 of file PoolDbEvtSelector.cpp.

    00083                                                          {
    00084     m_fileIterator = new_iter;
    00085   }

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

Definition at line 86 of file PoolDbEvtSelector.cpp.

    00086                                  {
    00087     return m_iterator;
    00088   }

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

Definition at line 89 of file PoolDbEvtSelector.cpp.

    00089                                             {
    00090     pool::deletePtr(m_iterator);
    00091     m_iterator = new_iter;
    00092   }

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.

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

## Member Data Documentation

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

Definition at line 45 of file PoolDbEvtSelector.cpp.

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

Definition at line 46 of file PoolDbEvtSelector.cpp.

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

Definition at line 47 of file PoolDbEvtSelector.cpp.

ListName PoolDbContext::m_files`[private]`

Definition at line 48 of file PoolDbEvtSelector.cpp.

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

Definition at line 49 of file PoolDbEvtSelector.cpp.

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

Definition at line 50 of file PoolDbEvtSelector.cpp.

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

Definition at line 51 of file PoolDbEvtSelector.cpp.

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

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