|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72804 - in trunk/libs/msm/doc: HTML HTML/examples PDF PDF/examples images src
From: christophe.j.henry_at_[hidden]
Date: 2011-06-29 16:33:28
Author: chenry
Date: 2011-06-29 16:33:27 EDT (Wed, 29 Jun 2011)
New Revision: 72804
URL: http://svn.boost.org/trac/boost/changeset/72804
Log:
doc update
Binary files modified:
trunk/libs/msm/doc/PDF/msm.pdf
trunk/libs/msm/doc/images/entrytutorial.jpg
Text files modified:
trunk/libs/msm/doc/HTML/ch03s04.html | 10 +++++++---
trunk/libs/msm/doc/HTML/examples/CompositeTutorialWithEumlTable.cpp | 5 +++--
trunk/libs/msm/doc/PDF/examples/CompositeTutorialWithEumlTable.cpp | 5 +++--
trunk/libs/msm/doc/src/msm.xml | 10 +++++++---
4 files changed, 20 insertions(+), 10 deletions(-)
Modified: trunk/libs/msm/doc/HTML/ch03s04.html
==============================================================================
--- trunk/libs/msm/doc/HTML/ch03s04.html (original)
+++ trunk/libs/msm/doc/HTML/ch03s04.html 2011-06-29 16:33:27 EDT (Wed, 29 Jun 2011)
@@ -64,12 +64,16 @@
BOOST_MSM_EUML_TRANSITION_TABLE. The <a class="link" href="examples/SimpleTutorialWithEumlTable.cpp" target="_top">implementation</a> is pretty
straightforward.</p><p>The <a class="link" href="examples/CompositeTutorialWithEumlTable.cpp" target="_top">composite</a> implementation is slightly trickier because the submachine
has to be a msm::back::state_machine and a msm::front::euml::state. For
- example:</p><pre class="programlisting">struct front_end : public msm::front::state_machine_def<front_end>
+ example:</p><pre class="programlisting">// front-end like always
+struct front_end : public boost::msm::front::state_machine_def<front_end>
{
...
};
-struct submachine : public boost::msm::back::state_machine<front_end>,
- public msm::front::euml::euml_state<submachine>
+// back-end like always
+typedef boost::msm::back::state_machine<front_end> back_end;
+// this is new: make the submachine a eUML type
+struct submachine : public back_end,
+ public boost::msm::front::euml::euml_state<back_end>
{
};</pre><p>Unfortunately, there is a bug with VC, which appears from time to time and
causes in a stack overflow. If you get a warning that the program is
Modified: trunk/libs/msm/doc/HTML/examples/CompositeTutorialWithEumlTable.cpp
==============================================================================
--- trunk/libs/msm/doc/HTML/examples/CompositeTutorialWithEumlTable.cpp (original)
+++ trunk/libs/msm/doc/HTML/examples/CompositeTutorialWithEumlTable.cpp 2011-06-29 16:33:27 EDT (Wed, 29 Jun 2011)
@@ -112,8 +112,9 @@
};
// Playing Submachine back-end
- struct Playing_impl : public boost::msm::back::state_machine<Playing_>,
- public msm::front::euml::euml_state<Playing_>
+ typedef boost::msm::back::state_machine<Playing_> Playing_helper;
+ struct Playing_impl : public Playing_helper,
+ public msm::front::euml::euml_state<Playing_helper>
{
};
Modified: trunk/libs/msm/doc/PDF/examples/CompositeTutorialWithEumlTable.cpp
==============================================================================
--- trunk/libs/msm/doc/PDF/examples/CompositeTutorialWithEumlTable.cpp (original)
+++ trunk/libs/msm/doc/PDF/examples/CompositeTutorialWithEumlTable.cpp 2011-06-29 16:33:27 EDT (Wed, 29 Jun 2011)
@@ -112,8 +112,9 @@
};
// Playing Submachine back-end
- struct Playing_impl : public boost::msm::back::state_machine<Playing_>,
- public msm::front::euml::euml_state<Playing_>
+ typedef boost::msm::back::state_machine<Playing_> Playing_helper;
+ struct Playing_impl : public Playing_helper,
+ public msm::front::euml::euml_state<Playing_helper>
{
};
Modified: trunk/libs/msm/doc/PDF/msm.pdf
==============================================================================
Binary files. No diff available.
Modified: trunk/libs/msm/doc/images/entrytutorial.jpg
==============================================================================
Binary files. No diff available.
Modified: trunk/libs/msm/doc/src/msm.xml
==============================================================================
--- trunk/libs/msm/doc/src/msm.xml (original)
+++ trunk/libs/msm/doc/src/msm.xml 2011-06-29 16:33:27 EDT (Wed, 29 Jun 2011)
@@ -1900,12 +1900,16 @@
xlink:href="examples/CompositeTutorialWithEumlTable.cpp">composite</link> implementation is slightly trickier because the submachine
has to be a msm::back::state_machine and a msm::front::euml::state. For
example:</para>
- <programlisting>struct front_end : public msm::front::state_machine_def<front_end>
+ <programlisting>// front-end like always
+struct front_end : public boost::msm::front::state_machine_def<front_end>
{
...
};
-struct submachine : public boost::msm::back::state_machine<front_end>,
- public msm::front::euml::euml_state<submachine>
+// back-end like always
+typedef boost::msm::back::state_machine<front_end> back_end;
+// this is new: make the submachine a eUML type
+struct submachine : public back_end,
+ public boost::msm::front::euml::euml_state<back_end>
{
};</programlisting>
<para>Unfortunately, there is a bug with VC, which appears from time to time and
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