| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

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

| Helper functions to set/get the application return code.
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::ostream & | operator<< (std::ostream &s, const Gaudi::StateMachine::State &st)
| Pretty print of states.
std::ostream & | operator<< (std::ostream &s, const Gaudi::StateMachine::Transition &t)
| Pretty print of transitions.

## Function Documentation

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
    }

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
    }

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines