2
0
mirror of https://github.com/boostorg/msm.git synced 2026-02-19 14:32:34 +00:00
Files
msm/doc/HTML/examples/distributed_table/Events.hpp
Christophe Henry 9f03aaa362 msm added to trunk
[SVN r62129]
2010-05-21 21:15:38 +00:00

29 lines
446 B
C++

#ifndef EVENTS_HPP
#define EVENTS_HPP
// events
struct play {};
struct end_pause {};
struct stop {};
struct pause {};
struct open_close {};
// A "complicated" event type that carries some data.
enum DiskTypeEnum
{
DISK_CD=0,
DISK_DVD=1
};
struct cd_detected
{
cd_detected(std::string name, DiskTypeEnum diskType)
: name(name),
disc_type(diskType)
{}
std::string name;
DiskTypeEnum disc_type;
};
#endif