1 //////////////////////////////////////////////////////////////////////////////
2 // Copyright 2002-2006 Andreas Huber Doenni
3 // Distributed under the Boost Software License, Version 1.0. (See accompany-
4 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 //////////////////////////////////////////////////////////////////////////////
9 #include "Precompiled.hpp"
11 #include "Configuring.hpp"
12 #include "Shooting.hpp"
16 //////////////////////////////////////////////////////////////////////////////
17 NotShooting::NotShooting()
19 std::cout << "Entering NotShooting\n";
22 NotShooting::~NotShooting()
24 std::cout << "Exiting NotShooting\n";
27 sc::result NotShooting::react( const EvShutterHalf & )
29 if ( context< Camera >().IsBatteryLow() )
31 return forward_event();
35 return transit< Shooting >();
39 //////////////////////////////////////////////////////////////////////////////
42 std::cout << "Entering Idle\n";
47 std::cout << "Exiting Idle\n";
50 sc::result Idle::react( const EvConfig & )
52 return transit< Configuring >();