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 184 of file EPStates.h.

Member Typedef Documentation

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

Definition at line 192 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::FirstFile::FirstFile ( my_context  ctx)

Definition at line 122 of file EPStates.cc.

References openFiles().

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

Definition at line 128 of file EPStates.cc.

128 { }

Member Function Documentation

void statemachine::FirstFile::openFiles ( )

Definition at line 138 of file EPStates.cc.

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

Referenced by FirstFile().

138  {
139  ep_.readFile();
141 
143  }
virtual void openOutputFiles()=0
virtual void readFile()=0
edm::IEventProcessor & ep_
Definition: EPStates.h:197
virtual void respondToOpenInputFile()=0
sc::result statemachine::FirstFile::react ( File const &  file)

Definition at line 130 of file EPStates.cc.

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

Member Data Documentation

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

Definition at line 197 of file EPStates.h.

Referenced by openFiles().