Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61162 - sandbox/msm/libs/msm/doc/HTML/examples
From: christophe.j.henry_at_[hidden]
Date: 2010-04-09 12:19:16


Author: chenry
Date: 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
New Revision: 61162
URL: http://svn.boost.org/trac/boost/changeset/61162

Log:
added missing namespace directive
Added:
   sandbox/msm/libs/msm/doc/HTML/examples/History.cpp (contents, props changed)
   sandbox/msm/libs/msm/doc/HTML/examples/HistoryEuml.cpp (contents, props changed)
Text files modified:
   sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorial.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorialWithFunctors.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/BoostCon09Full.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/CompositeTutorial.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryEuml.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryTutorial.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/Flags.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred2.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial2.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternal.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternalFunctors.cpp | 1 +
   sandbox/msm/libs/msm/doc/HTML/examples/TestInternal.cpp | 1 +
   14 files changed, 14 insertions(+), 0 deletions(-)

Modified: sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorial.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorial.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorial.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -5,6 +5,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace boost::msm::front;
 
 namespace

Modified: sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorialWithFunctors.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorialWithFunctors.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/AnonymousTutorialWithFunctors.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -8,6 +8,7 @@
 #include <boost/msm/front/euml/common.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace boost::msm::front;
 
 namespace

Modified: sandbox/msm/libs/msm/doc/HTML/examples/BoostCon09Full.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/BoostCon09Full.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/BoostCon09Full.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -6,6 +6,7 @@
 #include <boost/msm/back/tools.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace // Concrete FSM implementation
 {

Modified: sandbox/msm/libs/msm/doc/HTML/examples/CompositeTutorial.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/CompositeTutorial.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/CompositeTutorial.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -5,6 +5,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace // Concrete FSM implementation
 {

Modified: sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryEuml.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryEuml.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryEuml.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -7,6 +7,7 @@
 using namespace std;
 using namespace boost::msm::front::euml;
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 
 namespace // Concrete FSM implementation

Modified: sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryTutorial.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryTutorial.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/DirectEntryTutorial.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -6,6 +6,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace
 {

Modified: sandbox/msm/libs/msm/doc/HTML/examples/Flags.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/Flags.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/Flags.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -5,6 +5,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace // Concrete FSM implementation
 {

Added: sandbox/msm/libs/msm/doc/HTML/examples/History.cpp
==============================================================================
--- (empty file)
+++ sandbox/msm/libs/msm/doc/HTML/examples/History.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -0,0 +1,230 @@
+#include <iostream>
+// back-end
+#include <boost/msm/back/state_machine.hpp>
+//front-end
+#include <boost/msm/front/state_machine_def.hpp>
+
+namespace msm = boost::msm;
+namespace mpl = boost::mpl;
+
+namespace
+{
+ // events
+ struct play {};
+ struct end_pause {};
+ struct stop {};
+ struct pause {};
+ struct open_close {};
+ struct NextSong {};
+ struct PreviousSong {};
+
+ // A "complicated" event type that carries some data.
+ struct cd_detected
+ {
+ cd_detected(std::string name)
+ : name(name)
+ {}
+
+ std::string name;
+ };
+
+ // front-end: define the FSM structure
+ struct player_ : public msm::front::state_machine_def<player_>
+ {
+ // The list of FSM states
+ struct Empty : public msm::front::state<>
+ {
+ // every (optional) entry/exit methods get the event passed
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "entering: Empty" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "leaving: Empty" << std::endl;}
+ };
+ struct Open : public msm::front::state<>
+ {
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "entering: Open" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "leaving: Open" << std::endl;}
+ };
+
+ struct Stopped : public msm::front::state<>
+ {
+ // when stopped, the CD is loaded
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "entering: Stopped" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "leaving: Stopped" << std::endl;}
+ };
+
+ struct Playing_ : public msm::front::state_machine_def<Playing_>
+ {
+ // when playing, the CD is loaded and we are in either pause or playing (duh)
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "entering: Playing" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "leaving: Playing" << std::endl;}
+
+ // The list of FSM states
+ struct Song1 : public msm::front::state<>
+ {
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "starting: First song" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "finishing: First Song" << std::endl;}
+ };
+ struct Song2 : public msm::front::state<>
+ {
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "starting: Second song" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "finishing: Second Song" << std::endl;}
+ };
+ struct Song3 : public msm::front::state<>
+ {
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "starting: Third song" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "finishing: Third Song" << std::endl;}
+ };
+ // the initial state. Must be defined
+ typedef Song1 initial_state;
+ // transition actions
+ void start_next_song(NextSong const&) { std::cout << "Playing::start_next_song\n"; }
+ void start_prev_song(PreviousSong const&) { std::cout << "Playing::start_prev_song\n"; }
+ // guard conditions
+
+ typedef Playing_ pl; // makes transition table cleaner
+ // Transition table for Playing
+ struct transition_table : mpl::vector4<
+ // Start Event Next Action Guard
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Song1 , NextSong , Song2 , &pl::start_next_song >,
+ a_row < Song2 , PreviousSong, Song1 , &pl::start_prev_song >,
+ a_row < Song2 , NextSong , Song3 , &pl::start_next_song >,
+ a_row < Song3 , PreviousSong, Song2 , &pl::start_prev_song >
+ // +---------+-------------+---------+---------------------+----------------------+
+ > {};
+ // Replaces the default no-transition response.
+ template <class FSM,class Event>
+ void no_transition(Event const& e, FSM&,int state)
+ {
+ std::cout << "no transition from state " << state
+ << " on event " << typeid(e).name() << std::endl;
+ }
+
+ };
+ // back-end
+ // demonstrates Shallow History: if the state gets activated with end_pause
+ // then it will remember the last active state and reactivate it
+ // also possible: AlwaysHistory, the last active state will always be reactivated
+ // or NoHistory, always restart from the initial state
+ typedef msm::back::state_machine<Playing_,msm::back::ShallowHistory<mpl::vector<end_pause> > > Playing;
+
+ // state not defining any entry or exit
+ struct Paused : public msm::front::state<>
+ {
+ template <class Event,class FSM>
+ void on_entry(Event const&,FSM& ) {std::cout << "entering: Paused" << std::endl;}
+ template <class Event,class FSM>
+ void on_exit(Event const&,FSM& ) {std::cout << "leaving: Paused" << std::endl;}
+ };
+
+ // the initial state of the player SM. Must be defined
+ typedef Empty initial_state;
+
+ // transition actions
+ void start_playback(play const&) { std::cout << "player::start_playback\n"; }
+ void open_drawer(open_close const&) { std::cout << "player::open_drawer\n"; }
+ void close_drawer(open_close const&) { std::cout << "player::close_drawer\n"; }
+ void store_cd_info(cd_detected const& cd) {std::cout << "player::store_cd_info\n";}
+ void stop_playback(stop const&) { std::cout << "player::stop_playback\n"; }
+ void pause_playback(pause const&) { std::cout << "player::pause_playback\n"; }
+ void resume_playback(end_pause const&) { std::cout << "player::resume_playback\n"; }
+ void stop_and_open(open_close const&) { std::cout << "player::stop_and_open\n"; }
+ void stopped_again(stop const&) {std::cout << "player::stopped_again\n";}
+ // guard conditions
+
+ typedef player_ p; // makes transition table cleaner
+
+ // Transition table for player
+ struct transition_table : mpl::vector<
+ // Start Event Next Action Guard
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Stopped , play , Playing , &p::start_playback >,
+ a_row < Stopped , open_close , Open , &p::open_drawer >,
+ a_row < Stopped , stop , Stopped , &p::stopped_again >,
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Open , open_close , Empty , &p::close_drawer >,
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Empty , open_close , Open , &p::open_drawer >,
+ a_row < Empty , cd_detected , Stopped , &p::store_cd_info >,
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Playing , stop , Stopped , &p::stop_playback >,
+ a_row < Playing , pause , Paused , &p::pause_playback >,
+ a_row < Playing , open_close , Open , &p::stop_and_open >,
+ // +---------+-------------+---------+---------------------+----------------------+
+ a_row < Paused , end_pause , Playing , &p::resume_playback >,
+ a_row < Paused , stop , Stopped , &p::stop_playback >,
+ a_row < Paused , open_close , Open , &p::stop_and_open >
+ // +---------+-------------+---------+---------------------+----------------------+
+ > {};
+
+ // Replaces the default no-transition response.
+ template <class FSM,class Event>
+ void no_transition(Event const& e, FSM&,int state)
+ {
+ std::cout << "no transition from state " << state
+ << " on event " << typeid(e).name() << std::endl;
+ }
+
+ };
+ // Pick a back-end
+ typedef msm::back::state_machine<player_> player;
+
+ //
+ // Testing utilities.
+ //
+ static char const* const state_names[] = { "Stopped", "Open", "Empty", "Playing", "Paused" };
+
+ void pstate(player const& p)
+ {
+ std::cout << " -> " << state_names[p.current_state()[0]] << std::endl;
+ }
+
+ void test()
+ {
+ player p;
+
+ // needed to start the highest-level SM. This will call on_entry and mark the start of the SM
+ p.start();
+ // go to Open, call on_exit on Empty, then action, then on_entry on Open
+ p.process_event(open_close()); pstate(p);
+ p.process_event(open_close()); pstate(p);
+ p.process_event(cd_detected("louie, louie"));
+ p.process_event(play());
+
+ // at this point, Play is active
+ // make transition happen inside it. Player has no idea about this event but it's ok.
+ p.process_event(NextSong());pstate(p); //2nd song active
+ p.process_event(NextSong());pstate(p);//3rd song active
+ p.process_event(PreviousSong());pstate(p);//2nd song active
+
+ p.process_event(pause()); pstate(p);
+ // go back to Playing
+ // as you see, remembers the original state as end_pause is an history trigger
+ p.process_event(end_pause()); pstate(p);
+ p.process_event(pause()); pstate(p);
+ p.process_event(stop()); pstate(p);
+ // event leading to the same state
+ p.process_event(stop()); pstate(p);
+ // play does not trigger shallow history => start back from 1st song
+ p.process_event(play()); pstate(p);
+ }
+}
+
+int main()
+{
+ test();
+ return 0;
+}

Added: sandbox/msm/libs/msm/doc/HTML/examples/HistoryEuml.cpp
==============================================================================
--- (empty file)
+++ sandbox/msm/libs/msm/doc/HTML/examples/HistoryEuml.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -0,0 +1,170 @@
+#include <iostream>
+
+#include <boost/msm/back/state_machine.hpp>
+#include <boost/msm/front/euml/euml.hpp>
+
+using namespace std;
+using namespace boost::msm::front::euml;
+namespace msm = boost::msm;
+namespace mpl = boost::mpl;
+
+// entry/exit/action/guard logging functors
+#include "logging_functors.h"
+
+namespace // Concrete FSM implementation
+{
+ // events
+ BOOST_MSM_EUML_EVENT(play)
+ BOOST_MSM_EUML_EVENT(end_pause)
+ BOOST_MSM_EUML_EVENT(stop)
+ BOOST_MSM_EUML_EVENT(pause)
+ BOOST_MSM_EUML_EVENT(open_close)
+ BOOST_MSM_EUML_EVENT(next_song)
+ BOOST_MSM_EUML_EVENT(previous_song)
+
+ // A "complicated" event type that carries some data.
+ BOOST_MSM_EUML_DECLARE_ATTRIBUTE(std::string,cd_name)
+ BOOST_MSM_EUML_DECLARE_ATTRIBUTE(DiskTypeEnum,cd_type)
+ BOOST_MSM_EUML_ATTRIBUTES((attributes_ << cd_name << cd_type ), cd_detected_attributes)
+ BOOST_MSM_EUML_EVENT_WITH_ATTRIBUTES(cd_detected,cd_detected_attributes)
+
+ // Concrete FSM implementation
+ // The list of FSM states
+ // state not defining any entry or exit
+ BOOST_MSM_EUML_STATE((),Paused)
+ BOOST_MSM_EUML_STATE(( Empty_Entry,Empty_Exit ),Empty)
+ BOOST_MSM_EUML_STATE(( Open_Entry,Open_Exit ),Open)
+ BOOST_MSM_EUML_STATE(( Stopped_Entry,Stopped_Exit ),Stopped)
+
+
+ // Playing is now a state machine itself.
+
+ // It has 3 substates
+ BOOST_MSM_EUML_STATE(( Song1_Entry,Song1_Exit ),Song1)
+ BOOST_MSM_EUML_STATE(( Song2_Entry,Song2_Exit ),Song2)
+ BOOST_MSM_EUML_STATE(( Song3_Entry,Song3_Exit ),Song3)
+
+
+ // Playing has a transition table
+ BOOST_MSM_EUML_TRANSITION_TABLE((
+ // +------------------------------------------------------------------------------+
+ Song2 == Song1 + next_song / start_next_song,
+ Song1 == Song2 + previous_song / start_prev_song,
+ Song3 == Song2 + next_song / start_next_song,
+ Song2 == Song3 + previous_song / start_prev_song
+ // +------------------------------------------------------------------------------+
+ ),playing_transition_table )
+
+ // VC9 cannot compile the typedef with build_sm if one is also used for player
+ BOOST_MSM_EUML_DECLARE_STATE_MACHINE( (playing_transition_table, //STT
+ init_ << Song1 // Init State
+ ),Playing_)
+ // choice of back-end
+ typedef msm::back::state_machine<Playing_,
+ msm::back::ShallowHistory<mpl::vector<BOOST_MSM_EUML_EVENT_NAME(end_pause)> > > Playing_type;
+ Playing_type const Playing;
+
+ // guard conditions
+ BOOST_MSM_EUML_ACTION(good_disk_format)
+ {
+ template <class FSM,class EVT,class SourceState,class TargetState>
+ bool operator()(EVT const& evt,FSM&,SourceState& ,TargetState& )
+ {
+ // to test a guard condition, let's say we understand only CDs, not DVD
+ if (evt.get_attribute(cd_type)!=DISK_CD)
+ {
+ std::cout << "wrong disk, sorry" << std::endl;
+ // just for logging, does not block any transition
+ return true;
+ }
+ std::cout << "good disk" << std::endl;
+ return true;
+ }
+ };
+ // replaces the old transition table
+ BOOST_MSM_EUML_TRANSITION_TABLE((
+ Playing == Stopped + play / start_playback,
+ Playing == Paused + end_pause / resume_playback,
+ // +------------------------------------------------------------------------------+
+ Empty == Open + open_close / close_drawer,
+ // +------------------------------------------------------------------------------+
+ Open == Empty + open_close / open_drawer,
+ Open == Paused + open_close / stop_and_open,
+ Open == Stopped + open_close / open_drawer,
+ Open == Playing + open_close / stop_and_open,
+ // +------------------------------------------------------------------------------+
+ Paused == Playing + pause / pause_playback,
+ // +------------------------------------------------------------------------------+
+ Stopped == Playing + stop / stop_playback,
+ Stopped == Paused + stop / stop_playback,
+ Stopped == Empty + cd_detected [good_disk_format&&
+ (event_(cd_type)==Int_<DISK_CD>())]
+ / (store_cd_info,process_(play)),
+ Stopped == Stopped + stop
+ // +------------------------------------------------------------------------------+
+ ),transition_table)
+
+ // create a state machine "on the fly"
+ BOOST_MSM_EUML_DECLARE_STATE_MACHINE(( transition_table, //STT
+ init_ << Empty, // Init State
+ no_action, // Entry
+ no_action, // Exit
+ attributes_ << no_attributes_, // Attributes
+ configure_ << no_configure_, // configuration
+ Log_No_Transition // no_transition handler
+ ),
+ player_) //fsm name
+
+ // choice of back-end
+ typedef msm::back::state_machine<player_> player;
+
+ //
+ // Testing utilities.
+ //
+ static char const* const state_names[] = { "Stopped", "Paused", "Open", "Empty", "Playing" };
+ void pstate(player const& p)
+ {
+ std::cout << " -> " << state_names[p.current_state()[0]] << std::endl;
+ }
+
+ void test()
+ {
+ player p;
+ // needed to start the highest-level SM. This will call on_entry and mark the start of the SM
+ p.start();
+ // go to Open, call on_exit on Empty, then action, then on_entry on Open
+ p.process_event(open_close); pstate(p);
+ p.process_event(open_close); pstate(p);
+ // will be rejected, wrong disk type
+ p.process_event(
+ cd_detected("louie, louie",DISK_DVD)); pstate(p);
+ p.process_event(
+ cd_detected("louie, louie",DISK_CD)); pstate(p);
+ // no need to call play as the previous event does it in its action method
+ //p.process_event(play);
+
+ // make transition happen inside it. Player has no idea about this event but it's ok.
+ p.process_event(next_song);pstate(p); //2nd song active
+ p.process_event(next_song);pstate(p);//3rd song active
+ p.process_event(previous_song);pstate(p);//2nd song active
+
+ // at this point, Play is active
+ p.process_event(pause); pstate(p);
+ // go back to Playing
+ // as you see, remembers the original state as end_pause is an history trigger
+ p.process_event(end_pause); pstate(p);
+ p.process_event(pause); pstate(p);
+ p.process_event(stop); pstate(p);
+ // event leading to the same state
+ // no action method called as none is defined in the transition table
+ p.process_event(stop); pstate(p);
+ // test call to no_transition
+ p.process_event(play); pstate(p);
+ }
+}
+
+int main()
+{
+ test();
+ return 0;
+}

Modified: sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -5,6 +5,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace
 {

Modified: sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred2.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred2.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/Orthogonal-deferred2.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -6,6 +6,7 @@
 #include <boost/msm/front/functor_row.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace boost::msm::front;
 
 namespace

Modified: sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -5,6 +5,7 @@
 #include <boost/msm/front/state_machine_def.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 
 namespace
 {

Modified: sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial2.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial2.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorial2.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -6,6 +6,7 @@
 #include <boost/msm/front/row2.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace msm::front;
 
 namespace

Modified: sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternal.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternal.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternal.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -6,6 +6,7 @@
 #include <boost/msm/front/functor_row.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace msm::front;
 
 namespace

Modified: sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternalFunctors.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternalFunctors.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/SimpleTutorialInternalFunctors.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -11,6 +11,7 @@
 using namespace std;
 namespace msm = boost::msm;
 using namespace msm::front;
+namespace mpl = boost::mpl;
 // for And_ operator
 using namespace msm::front::euml;
 

Modified: sandbox/msm/libs/msm/doc/HTML/examples/TestInternal.cpp
==============================================================================
--- sandbox/msm/libs/msm/doc/HTML/examples/TestInternal.cpp (original)
+++ sandbox/msm/libs/msm/doc/HTML/examples/TestInternal.cpp 2010-04-09 12:19:15 EDT (Fri, 09 Apr 2010)
@@ -9,6 +9,7 @@
 #include <boost/msm/front/internal_row.hpp>
 
 namespace msm = boost::msm;
+namespace mpl = boost::mpl;
 using namespace msm::front;
 
 namespace


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk