CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
statemachine::HandleNewInputFile2 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleNewInputFile2:

Public Types

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

Public Member Functions

bool checkInvariant ()
 
 HandleNewInputFile2 (my_context ctx)
 
sc::result react (Run const &run)
 
sc::result react (File const &file)
 
 ~HandleNewInputFile2 ()
 

Detailed Description

Definition at line 281 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile2::reactions

Definition at line 290 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile2::HandleNewInputFile2 ( my_context  ctx)

Definition at line 294 of file EPStates.cc.

References checkInvariant().

294  :
295  my_base(ctx) {
296  context<HandleFiles>().goToNewInputFile();
297  checkInvariant();
298  }
statemachine::HandleNewInputFile2::~HandleNewInputFile2 ( )

Definition at line 300 of file EPStates.cc.

References checkInvariant().

300  {
301  checkInvariant();
302  }

Member Function Documentation

bool statemachine::HandleNewInputFile2::checkInvariant ( )

Definition at line 304 of file EPStates.cc.

Referenced by HandleNewInputFile2(), react(), and ~HandleNewInputFile2().

304  {
305  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
306  return true;
307  }
sc::result statemachine::HandleNewInputFile2::react ( Run const &  run)

Definition at line 309 of file EPStates.cc.

References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and findQualityFiles::run.

309  {
310  checkInvariant();
311 
312  if(context<HandleRuns>().currentRun() != run) {
313  return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run);
314  } else {
315  return transit<ContinueRun1>();
316  }
317  }
void finalizeRun(Run const &)
Definition: EPStates.cc:246
sc::result statemachine::HandleNewInputFile2::react ( File const &  file)

Definition at line 319 of file EPStates.cc.

References checkInvariant().

319  {
320  checkInvariant();
321  if(!context<HandleFiles>().shouldWeCloseOutput()) {
322  return transit<HandleNewInputFile2>();
323  }
324  return forward_event();
325  }