BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataSelector Class Reference

#include <RawDataSelector.h>

Inheritance diagram for RawDataSelector:

Public Member Functions

 RawDataSelector (const std::string &name, ISvcLocator *svcloc)
 ~RawDataSelector ()
virtual StatusCode initialize ()
virtual StatusCode createContext (Context *&it) const
virtual StatusCode next (Context &it) const
virtual StatusCode next (Context &it, int jump) const
virtual StatusCode previous (Context &it) const
virtual StatusCode previous (Context &it, int jump) const
virtual StatusCode last (Context &it) const
virtual StatusCode rewind (Context &it) const
virtual StatusCode createAddress (const Context &it, IOpaqueAddress *&iop) const
virtual StatusCode releaseContext (Context *&it) const
virtual StatusCode resetCriteria (const std::string &criteria, Context &context) const
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)

Detailed Description

Definition at line 29 of file RawDataSelector.h.

Constructor & Destructor Documentation

◆ RawDataSelector()

RawDataSelector::RawDataSelector ( const std::string & name,
ISvcLocator * svcloc )

Definition at line 30 of file RawDataSelector.cxx.

31 : base_class( name, svcloc ), m_beginContext( 0 ), m_endContext( 0 ) {
32 declareProperty( "InputSvc", m_eventSourceName );
33}

◆ ~RawDataSelector()

RawDataSelector::~RawDataSelector ( )

Definition at line 35 of file RawDataSelector.cxx.

35 {
36 // if (m_eventSource)
37 // delete m_eventSource;
38 if ( m_beginContext ) delete m_beginContext;
39 if ( m_endContext ) delete m_endContext;
40}

Member Function Documentation

◆ createAddress()

StatusCode RawDataSelector::createAddress ( const Context & it,
IOpaqueAddress *& iop ) const
virtual

Definition at line 139 of file RawDataSelector.cxx.

140 {
141 iop = new RawDataAddress( CLID_Event, "EventHeader", "EventHeader" );
142
143 return ( StatusCode::SUCCESS );
144}
const CLID & CLID_Event

◆ createContext()

StatusCode RawDataSelector::createContext ( Context *& it) const
virtual

Definition at line 87 of file RawDataSelector.cxx.

87 {
88 // m_eventSource->initialize();
89 it = m_beginContext;
90 return ( StatusCode::SUCCESS );
91}

◆ initialize()

StatusCode RawDataSelector::initialize ( )
virtual

Definition at line 42 of file RawDataSelector.cxx.

42 {
43
44 // Create a message stream.
45 MsgStream log( msgSvc(), name() );
46
47 // Initialize the Service base class.
48 StatusCode sc = Service::initialize();
49 if ( !sc.isSuccess() )
50 {
51 log << MSG::ERROR << "RawDataSelector::initialize: Unable to "
52 << "initialize Service base class." << endmsg;
53 return sc;
54 }
55
56 IService* svc;
57
58 // for Mutil-thread by tianhl
59 // if (isGaudiThreaded(name()))m_eventSourceName += getGaudiThreadIDfromName(name()); //
60 // FIXME: commented by mrli, 240612
61 log << MSG::INFO << name() << " get RawDataInputSvc by name: " << m_eventSourceName
62 << endmsg;
63 // for Mutil-thread by tianhl
64
65 // sc = serviceLocator()->getService( m_eventSourceName, svc );
66 // if ( sc != StatusCode::SUCCESS )
67 // {
68 // log << MSG::ERROR << " Cant get RawDataInputSvc " << endmsg;
69 // return sc;
70 // }
71
72 // m_eventSource = dynamic_cast<RawDataInputSvc *>(svc);
73 m_eventSource = service( m_eventSourceName );
74 if ( !m_eventSource )
75 {
76 log << MSG::ERROR << "Cannot get RawDataInputSvc " << endmsg;
77 return StatusCode::FAILURE;
78 }
79
80 m_beginContext = new RawDataContext( this );
81
82 // m_endContext = new RawDataContext(this, m_eventSource->end());
83
84 return sc;
85}
IMessageSvc * msgSvc()

◆ last()

StatusCode RawDataSelector::last ( Context & it) const
virtual

Definition at line 124 of file RawDataSelector.cxx.

124 {
125 return ( StatusCode::FAILURE );
126}

◆ next() [1/2]

virtual StatusCode RawDataSelector::next ( Context & it) const
virtual

◆ next() [2/2]

virtual StatusCode RawDataSelector::next ( Context & it,
int jump ) const
virtual

◆ previous() [1/2]

virtual StatusCode RawDataSelector::previous ( Context & it) const
virtual

◆ previous() [2/2]

virtual StatusCode RawDataSelector::previous ( Context & it,
int jump ) const
virtual

◆ queryInterface()

StatusCode RawDataSelector::queryInterface ( const InterfaceID & riid,
void ** ppvInterface )
virtual

Definition at line 150 of file RawDataSelector.cxx.

150 {
151 if ( riid == IEvtSelector::interfaceID() ) { *ppvInterface = (IEvtSelector*)this; }
152 else if ( riid == IProperty::interfaceID() ) { *ppvInterface = (IProperty*)this; }
153 else { return Service::queryInterface( riid, ppvInterface ); }
154 addRef();
155 return StatusCode::SUCCESS;
156}

◆ releaseContext()

StatusCode RawDataSelector::releaseContext ( Context *& it) const
virtual

Definition at line 146 of file RawDataSelector.cxx.

146 {
147 return ( StatusCode::SUCCESS );
148}

◆ resetCriteria()

StatusCode RawDataSelector::resetCriteria ( const std::string & criteria,
Context & context ) const
virtual

Definition at line 128 of file RawDataSelector.cxx.

129 {
130 return ( StatusCode::SUCCESS );
131}

◆ rewind()

StatusCode RawDataSelector::rewind ( Context & it) const
virtual

Definition at line 133 of file RawDataSelector.cxx.

133 {
134 MsgStream log( msgSvc(), name() );
135 log << MSG::ERROR << "RawDataSelector::rewind() not implemented" << endmsg;
136 return ( StatusCode::FAILURE );
137}

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