Gaudi Framework, version v23r8

Home   Generated: Fri May 31 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Enumerations | Functions
StateMachine.h File Reference
#include "GaudiKernel/GaudiException.h"
Include dependency graph for StateMachine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gaudi
 : AIDA interfaces visibility
 
namespace  Gaudi::StateMachine
 

Enumerations

enum  Gaudi::StateMachine::State { Gaudi::StateMachine::OFFLINE, Gaudi::StateMachine::CONFIGURED, Gaudi::StateMachine::INITIALIZED, Gaudi::StateMachine::RUNNING }
 Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm, Service, AlgTool). More...
 
enum  Gaudi::StateMachine::Transition {
  Gaudi::StateMachine::CONFIGURE, Gaudi::StateMachine::INITIALIZE, Gaudi::StateMachine::START, Gaudi::StateMachine::STOP,
  Gaudi::StateMachine::FINALIZE, Gaudi::StateMachine::TERMINATE
}
 Allowed transitions between states. More...
 

Functions

State GAUDI_API Gaudi::StateMachine::ChangeState (const Transition transition, const State state)
 Function to get the new state according to the required transition, checking if the transition is allowed.
 
std::ostreamoperator<< (std::ostream &s, const Gaudi::StateMachine::State &st)
 Pretty print of states.
 
std::ostreamoperator<< (std::ostream &s, const Gaudi::StateMachine::Transition &t)
 Pretty print of transitions.
 

Function Documentation

std::ostream& operator<< ( std::ostream s,
const Gaudi::StateMachine::State st 
)
inline

Pretty print of states.

Definition at line 42 of file StateMachine.h.

{
switch (st) {
case Gaudi::StateMachine::OFFLINE : return s << "OFFLINE";
case Gaudi::StateMachine::CONFIGURED : return s << "CONFIGURED";
case Gaudi::StateMachine::INITIALIZED : return s << "INITIALIZED";
case Gaudi::StateMachine::RUNNING : return s << "RUNNING";
}
return s; // cannot be reached, but make the compiler happy
}
std::ostream& operator<< ( std::ostream s,
const Gaudi::StateMachine::Transition t 
)
inline

Pretty print of transitions.

Definition at line 53 of file StateMachine.h.

{
switch (t) {
case Gaudi::StateMachine::CONFIGURE : return s << "CONFIGURE";
case Gaudi::StateMachine::INITIALIZE : return s << "INITIALIZE";
case Gaudi::StateMachine::START : return s << "START";
case Gaudi::StateMachine::STOP : return s << "STOP";
case Gaudi::StateMachine::FINALIZE : return s << "FINALIZE";
case Gaudi::StateMachine::TERMINATE : return s << "TERMINATE";
}
return s; // cannot be reached, but make the compiler happy
}

Generated at Fri May 31 2013 15:09:12 for Gaudi Framework, version v23r8 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004