Public Types | Public Member Functions | Private Attributes | List of all members
art::InputSource Class Referenceabstract

#include <InputSource.h>

Inheritance diagram for art::InputSource:
art::DecrepitRelicInputSourceImplementation art::Source< T > art::test::DummySource arttest::EventProcessorTestSource art::EmptyEvent

Public Types

enum  ProcessingMode { Runs, RunsAndSubRuns, RunsSubRunsAndEvents }
 

Public Member Functions

virtual ~InputSource () noexcept
 
 InputSource (ModuleDescription const &)
 
 InputSource (InputSource const &)=delete
 
 InputSource (InputSource &&)=delete
 
InputSourceoperator= (InputSource const &)=delete
 
InputSourceoperator= (InputSource &&)=delete
 
virtual input::ItemType nextItemType ()=0
 
virtual std::unique_ptr< FileBlockreadFile ()=0
 
virtual void closeFile ()=0
 
virtual std::unique_ptr< RunPrincipalreadRun ()=0
 
virtual std::unique_ptr< SubRunPrincipalreadSubRun (cet::exempt_ptr< RunPrincipal const > rp)=0
 
virtual std::unique_ptr< EventPrincipalreadEvent (cet::exempt_ptr< SubRunPrincipal const > srp)=0
 
virtual std::unique_ptr< RangeSetHandlerrunRangeSetHandler ()=0
 
virtual std::unique_ptr< RangeSetHandlersubRunRangeSetHandler ()=0
 
virtual void doBeginJob ()
 
virtual void doEndJob ()
 
virtual void skipEvents (int n)
 
virtual void rewind ()
 
ModuleDescription const & moduleDescription () const
 
ProcessConfiguration const & processConfiguration () const
 

Private Attributes

ModuleDescription moduleDescription_
 

Detailed Description

Definition at line 59 of file InputSource.h.

Member Enumeration Documentation

Enumerator
Runs 
RunsAndSubRuns 
RunsSubRunsAndEvents 

Definition at line 61 of file InputSource.h.

Constructor & Destructor Documentation

art::InputSource::~InputSource ( )
virtualnoexcept

Definition at line 6 of file InputSource.cc.

6 {}
art::InputSource::InputSource ( ModuleDescription const &  md)
explicit

Definition at line 8 of file InputSource.cc.

9  {}
ModuleDescription moduleDescription_
Definition: InputSource.h:108
art::InputSource::InputSource ( InputSource const &  )
delete
art::InputSource::InputSource ( InputSource &&  )
delete

Member Function Documentation

virtual void art::InputSource::closeFile ( )
pure virtual
void art::InputSource::doBeginJob ( )
virtual

Reimplemented in art::DecrepitRelicInputSourceImplementation.

Definition at line 45 of file InputSource.cc.

46  {}
void art::InputSource::doEndJob ( )
virtual

Reimplemented in art::DecrepitRelicInputSourceImplementation.

Definition at line 49 of file InputSource.cc.

50  {}
ModuleDescription const & art::InputSource::moduleDescription ( ) const

Definition at line 12 of file InputSource.cc.

13  {
14  return moduleDescription_;
15  }
ModuleDescription moduleDescription_
Definition: InputSource.h:108
virtual input::ItemType art::InputSource::nextItemType ( )
pure virtual
InputSource& art::InputSource::operator= ( InputSource const &  )
delete
InputSource& art::InputSource::operator= ( InputSource &&  )
delete
ProcessConfiguration const & art::InputSource::processConfiguration ( ) const

Definition at line 18 of file InputSource.cc.

19  {
21  }
ModuleDescription moduleDescription_
Definition: InputSource.h:108
ProcessConfiguration const & processConfiguration() const
virtual std::unique_ptr<EventPrincipal> art::InputSource::readEvent ( cet::exempt_ptr< SubRunPrincipal const >  srp)
pure virtual
virtual std::unique_ptr<FileBlock> art::InputSource::readFile ( )
pure virtual
virtual std::unique_ptr<RunPrincipal> art::InputSource::readRun ( )
pure virtual
virtual std::unique_ptr<SubRunPrincipal> art::InputSource::readSubRun ( cet::exempt_ptr< RunPrincipal const >  rp)
pure virtual
void art::InputSource::rewind ( )
virtual

Reimplemented in art::DecrepitRelicInputSourceImplementation.

Definition at line 35 of file InputSource.cc.

36  {
38  << "The application has tried to rewind an input source\n"
39  << "that does not support rewinding. Please reconfigure the program\n"
40  << "to use an input source that supports random access (e.g. "
41  "RootInput)\n";
42  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
virtual std::unique_ptr<RangeSetHandler> art::InputSource::runRangeSetHandler ( )
pure virtual
void art::InputSource::skipEvents ( int  n)
virtual

Reimplemented in art::DecrepitRelicInputSourceImplementation.

Definition at line 24 of file InputSource.cc.

25  {
27  << "The application has tried to peform random access on an input "
28  "source\n"
29  << "that does not support random access. Please reconfigure the program\n"
30  << "to use an input source that supports random access (e.g. "
31  "RootInput)\n";
32  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
virtual std::unique_ptr<RangeSetHandler> art::InputSource::subRunRangeSetHandler ( )
pure virtual

Member Data Documentation

ModuleDescription art::InputSource::moduleDescription_
private

Definition at line 108 of file InputSource.h.


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