/[PAMELA software]/chewbacca/PamOffLineSW/StateManager.cpp
ViewVC logotype

Contents of /chewbacca/PamOffLineSW/StateManager.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Sep 23 07:20:11 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: v0r00, MAIN
CVS Tags: v1r02, v1r00, v1r01, start, v10RED, v9r00, v9r01, HEAD
Changes since 1.1: +0 -0 lines
Imported sources, 23/09/2008

1 #include "StateManager.h"
2 #include "R0_Init_State.h"
3
4 namespace PamOffLineSW
5 {
6
7 StateManager StateManager::instance;
8
9 StateManager::StateManager()
10 {
11 }
12
13 StateManager::~StateManager()
14 {
15 }
16
17 void StateManager::changeState(State* state)
18 {
19 currentState=state;
20 }
21
22 void StateManager::init()
23 {
24 changeState(&R0_Init_State::getInstance());
25 // currentState= &R0_Init_State::getInstance();
26 }
27
28 State* StateManager::getCurrentState()
29 {
30 return currentState;
31 }
32
33 StateManager& StateManager::getInstance()
34 {
35 return instance;
36 }
37
38 }

  ViewVC Help
Powered by ViewVC 1.1.23