/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Public Member Functions | Private Attributes
MockEvtSelector Class Reference

#include <MockEvtSelector.h>

List of all members.

Classes

class  MockEvtContext

Public Member Functions

 MockEvtSelector (const std::string &name, ISvcLocator *svc)
 Standard Service Constructor.
virtual ~MockEvtSelector ()
 Destructor.
virtual StatusCode createContext (Context *&c) const
 Methods required by EventLoopMgr.
virtual StatusCode next (Context &c) const
virtual StatusCode createAddress (const Context &c, IOpaqueAddress *&iop) const
virtual StatusCode releaseContext (Context *&) const
virtual StatusCode queryInterface (const InterfaceID &id, void **interface)
 Methods required by ServiceManager.
virtual StatusCode next (Context &c, int jump) const
 Other IEvtSelector methods.
virtual StatusCode previous (Context &c) const
virtual StatusCode previous (Context &c, int jump) const
virtual StatusCode last (Context &refContext) const
virtual StatusCode rewind (Context &c) const
virtual StatusCode resetCriteria (const std::string &cr, Context &c) const

Private Attributes

StringProperty m_readoutPath

Detailed Description

Definition at line 8 of file MockEvtSelector.h.


Constructor & Destructor Documentation

MockEvtSelector::MockEvtSelector ( const std::string &  name,
ISvcLocator *  svc 
)

Standard Service Constructor.

Definition at line 10 of file MockEvtSelector.cpp.

                                                   :
                                   Service(name,
                                           svc) {
  declareProperty("ReadoutPath",
                  m_readoutPath="/Event/MockEvt/Readout");
}
MockEvtSelector::~MockEvtSelector ( ) [virtual]

Destructor.

Definition at line 76 of file MockEvtSelector.cpp.

                                  {
}

Member Function Documentation

StatusCode MockEvtSelector::createContext ( Context *&  c) const [virtual]

Methods required by EventLoopMgr.

Definition at line 18 of file MockEvtSelector.cpp.

                                                                 {

  context = new MockEvtContext();

  return StatusCode::SUCCESS;
}
StatusCode MockEvtSelector::next ( Context c) const [virtual]

Definition at line 34 of file MockEvtSelector.cpp.

                                                       {
  return next(context,
              1);
}
StatusCode MockEvtSelector::createAddress ( const Context c,
IOpaqueAddress *&  iop 
) const [virtual]

Definition at line 47 of file MockEvtSelector.cpp.

                                                                       {

  const MockEvtContext *ctxt = dynamic_cast<const MockEvtContext*>(&context);
  StatusCode status = ctxt->getEvent();
  if (status.isFailure()) {
    return StatusCode::FAILURE;
  }

  addr = new MockEvtStructure::Address(ctxt);

  return StatusCode::SUCCESS;
}
StatusCode MockEvtSelector::releaseContext ( Context *&  context) const [virtual]

Definition at line 25 of file MockEvtSelector.cpp.

                                                                  {

  if (0 != context) {
    delete context;
  }

  return StatusCode::SUCCESS;
}
StatusCode MockEvtSelector::queryInterface ( const InterfaceID &  id,
void **  interface 
) [virtual]

Methods required by ServiceManager.

Definition at line 61 of file MockEvtSelector.cpp.

                                                             {
  if (IEvtSelector::interfaceID().versionMatch(id)) {
    // If good enough match return this object.
    *interface = (IEvtSelector*)this;
    addRef();
  } else {
    // Interface is not directly available: try out a base class.
    return Service::queryInterface(id,
                                   interface);
  }

  return StatusCode::SUCCESS;
}
StatusCode MockEvtSelector::next ( Context c,
int  jump 
) const [virtual]

Other IEvtSelector methods.

Definition at line 39 of file MockEvtSelector.cpp.

                                                 {
  MockEvtContext *ctxt = dynamic_cast<MockEvtContext*>(&context);
  ctxt->jump(jump);

  return StatusCode::SUCCESS;
}
StatusCode MockEvtSelector::previous ( Context c) const [virtual]

Definition at line 79 of file MockEvtSelector.cpp.

                                                   {
  return StatusCode::FAILURE;
}
StatusCode MockEvtSelector::previous ( Context c,
int  jump 
) const [virtual]

Definition at line 83 of file MockEvtSelector.cpp.

                                                {
  return StatusCode::FAILURE;
}
StatusCode MockEvtSelector::last ( Context refContext) const [virtual]

Definition at line 88 of file MockEvtSelector.cpp.

                                               {
  return StatusCode::FAILURE;
}
StatusCode MockEvtSelector::rewind ( Context c) const [virtual]

Definition at line 92 of file MockEvtSelector.cpp.

                                                 {
  return StatusCode::FAILURE;
}
StatusCode MockEvtSelector::resetCriteria ( const std::string &  cr,
Context c 
) const [virtual]

Definition at line 96 of file MockEvtSelector.cpp.

                                                          {
  return StatusCode::FAILURE;
}

Member Data Documentation

StringProperty MockEvtSelector::m_readoutPath [private]

Definition at line 65 of file MockEvtSelector.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:08:54 for MockEvt by doxygen 1.7.4