30 #ifndef _MIRA_EVENT_H_ 31 #define _MIRA_EVENT_H_ 37 #include <boost/shared_ptr.hpp> 45 namespace mira {
namespace sm {
64 Event(
const std::string& n,
const std::string& i) :
71 Event(
const std::string& n,
const boost::python::object& d) :
80 template<
typename Reflector>
83 r.member(
"Name",
name,
"");
84 r.member(
"ID",
id,
"");
87 r.member(
"Data", dataStr,
"");
88 r.member(
"Delay",
delay,
"");
92 template<
typename Reflector>
95 r.member(
"Name",
name,
"");
96 r.member(
"ID",
id,
"");
98 r.member(
"Data", dataStr,
"");
102 r.member(
"Delay",
delay,
"");
void write(const Value &value, std::ostream &ioStream, bool formatted=false, int precision=-1)
std::string id
Definition: Event.h:109
Event()
Definition: Event.h:53
#define MIRA_SPLIT_REFLECT_MEMBER
void read(const std::string &s, Value &oValue)
boost::python::object data
Definition: Event.h:111
std::string name
Definition: Event.h:108
std::string target
Definition: Event.h:110
Event(const std::string &n)
Definition: Event.h:58
boost::python::object from_json(const json::Value &j)
Time invocationTime
Definition: Event.h:113
uint64 delay
Definition: Event.h:112
json_spirit::mValue Value
MIRA_SPLIT_REFLECT_MEMBER void reflectRead(Reflector &r)
Definition: Event.h:81
json::Value to_json(boost::python::object o)
Event(const std::string &n, const std::string &i)
Definition: Event.h:64
bool canceled
Definition: Event.h:114
void reflectWrite(Reflector &r)
Definition: Event.h:93
Event(const std::string &n, const boost::python::object &d)
Definition: Event.h:71