| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 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 36 of file PoolDbEvtSelector.cpp.

## Member Typedef Documentation

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

Definition at line 38 of file PoolDbEvtSelector.cpp.

## Constructor & Destructor Documentation

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

Standard constructor.

Definition at line 104 of file PoolDbEvtSelector.cpp.

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

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

Standard destructor.

Definition at line 98 of file PoolDbEvtSelector.cpp.

    00098                               {
    00099   pool::deletePtr(m_iterator);
    00100   pool::releasePtr(m_token);
    00101   s_countPoolDbContext->decrement();
    00102 }

## Member Function Documentation

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

Definition at line 53 of file PoolDbEvtSelector.cpp.

    00053                                         {
    00054     return m_currentInput;
    00055   }

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

Definition at line 56 of file PoolDbEvtSelector.cpp.

    00056                                            {
    00057     m_currentInput = v;
    00058   }

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

Definition at line 59 of file PoolDbEvtSelector.cpp.

    00059                     {
    00060     return m_files;
    00061   }

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

Implements IEvtSelector::Context.

Definition at line 62 of file PoolDbEvtSelector.cpp.

    00062                                    {
    00063     return (void*)m_pSelector;
    00064   }

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

Definition at line 65 of file PoolDbEvtSelector.cpp.

    00065                                           {
    00066     m_criteria = crit;
    00067   }

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

Definition at line 68 of file PoolDbEvtSelector.cpp.

    00068                            {
    00069     return m_token;
    00070   }

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

Definition at line 71 of file PoolDbEvtSelector.cpp.

    00071                               {
    00072     pool::releasePtr(m_token);
    00073     m_token = p;
    00074   }

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

Definition at line 75 of file PoolDbEvtSelector.cpp.

    00075                                                {
    00076     return m_fileIterator;
    00077   }

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

Definition at line 78 of file PoolDbEvtSelector.cpp.

    00078                                                          {
    00079     m_fileIterator = new_iter;
    00080   }

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

Definition at line 81 of file PoolDbEvtSelector.cpp.

    00081                                  {
    00082     return m_iterator;
    00083   }

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

Definition at line 84 of file PoolDbEvtSelector.cpp.

    00084                                             {
    00085     pool::deletePtr(m_iterator);
    00086     m_iterator = new_iter;
    00087   }

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

Definition at line 111 of file PoolDbEvtSelector.cpp.

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

## Member Data Documentation

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

Definition at line 40 of file PoolDbEvtSelector.cpp.

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

Definition at line 41 of file PoolDbEvtSelector.cpp.

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

Definition at line 42 of file PoolDbEvtSelector.cpp.

ListName PoolDbContext::m_files`[private]`

Definition at line 43 of file PoolDbEvtSelector.cpp.

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

Definition at line 44 of file PoolDbEvtSelector.cpp.

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

Definition at line 45 of file PoolDbEvtSelector.cpp.

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

Definition at line 46 of file PoolDbEvtSelector.cpp.

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

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