test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
statemachine::FirstFile Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::FirstFile:

Public Types

typedef mpl::list
< sc::transition< Run,
HandleRuns >
, sc::custom_reaction< File > > 
reactions
 

Public Member Functions

 FirstFile (my_context ctx)
 
void openFiles ()
 
sc::result react (File const &file)
 
 ~FirstFile ()
 

Private Attributes

edm::IEventProcessorep_
 

Detailed Description

Definition at line 186 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::transition<Run, HandleRuns>, sc::custom_reaction<File> > statemachine::FirstFile::reactions

Definition at line 194 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::FirstFile::FirstFile ( my_context  ctx)

Definition at line 123 of file EPStates.cc.

References openFiles().

123  :
124  my_base(ctx),
125  ep_(context<Machine>().ep()) {
126  openFiles();
127  }
edm::IEventProcessor & ep_
Definition: EPStates.h:199
statemachine::FirstFile::~FirstFile ( )

Definition at line 129 of file EPStates.cc.

129 { }

Member Function Documentation

void statemachine::FirstFile::openFiles ( )

Definition at line 139 of file EPStates.cc.

References ep_, edm::IEventProcessor::openOutputFiles(), edm::IEventProcessor::readFile(), and edm::IEventProcessor::respondToOpenInputFile().

Referenced by FirstFile().

139  {
140  ep_.readFile();
142 
144  }
virtual void openOutputFiles()=0
virtual void readFile()=0
edm::IEventProcessor & ep_
Definition: EPStates.h:199
virtual void respondToOpenInputFile()=0
sc::result statemachine::FirstFile::react ( File const &  file)

Definition at line 131 of file EPStates.cc.

131  {
132  if(context<HandleFiles>().shouldWeCloseOutput()) {
133  return transit<NewInputAndOutputFiles>();
134  } else {
135  return transit<HandleNewInputFile1>();
136  }
137  }

Member Data Documentation

edm::IEventProcessor& statemachine::FirstFile::ep_
private

Definition at line 199 of file EPStates.h.

Referenced by openFiles().