11 #include <dynamic-graph/entity.h> 13 #include <dynamic-graph/factory.h> 14 #include <dynamic-graph/pool.h> 19 #include <boost/bind.hpp> 25 m_sigdSIN(NULL,
"CustomEntity(" +
name +
")::input(double)::in_double"),
28 "CustomEntity(" +
name +
")::input(double)::out_double")
35 this->addCommand(
"act",
41 signalRegistration(m_sigdSIN << m_sigdTimeDepSOUT);
45 signalDeregistration(
"in_double");
46 signalDeregistration(
"out_double");
50 const double &aDouble = m_sigdSIN(inTime);
54 <<
"This is a message of level MSG_TYPE_DEBUG\n";
56 <<
"This is a message of level MSG_TYPE_INFO\n";
58 <<
"This is a message of level MSG_TYPE_WARNING\n";
60 <<
"This is a message of level MSG_TYPE_ERROR\n";
62 <<
"This is a message of level MSG_TYPE_DEBUG_STREAM\n";
64 <<
"This is a message of level MSG_TYPE_INFO_STREAM\n";
66 <<
"This is a message of level MSG_TYPE_WARNING_STREAM\n";
68 <<
"This is a message of level MSG_TYPE_ERROR_STREAM\n";
73 void CustomEntity::act() { m_sigdSIN.accessCopy(); }
CommandVoid0< E > * makeCommandVoid0(E &entity, boost::function< void(void)> function, const std::string &docString)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(MyEntity, "MyEntity")
#define DYNAMIC_GRAPH_ENTITY_DEBUG(entity)
#define DYNAMIC_GRAPH_ENTITY_WARNING_STREAM(entity)
#define DYNAMIC_GRAPH_ENTITY_INFO_STREAM(entity)
#define DYNAMIC_GRAPH_ENTITY_INFO(entity)
#define DYNAMIC_GRAPH_ENTITY_WARNING(entity)
#define DYNAMIC_GRAPH_ENTITY_ERROR(entity)
#define DYNAMIC_GRAPH_ENTITY_DEBUG_STREAM(entity)
std::string docCommandVoid0(const std::string &doc)
#define DYNAMIC_GRAPH_ENTITY_ERROR_STREAM(entity)
double & update(double &res, const int &inTime)
CustomEntity(const std::string &n)