iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyPoster.H
1 #ifndef MYPOSTER_H
2 #define MYPOSTER_H
3 
5 
6 NRT_DECLARE_MESSAGEPOSTER_PORT(ChatterPort, nrt::Message<std::string>, void, "An important bit of chatter");
7 NRT_DECLARE_MESSAGEPOSTER_PORT(NumberPort, nrt::Message<float>, void, "A useful number");
8 
9 class MyPoster : public nrt::Module,
10  public nrt::MessagePoster<ChatterPort, NumberPort>
11 {
12  public:
13  // Constructor inherited from nrt::Module
14  using nrt::Module::Module;
15 
16  // Virtual destructor for safe inheritance, here it is a no-op
17  virtual ~MyPoster() { }
18 
19  // Function that will be called on each system start
20  virtual void run();
21 };
22 
23 #endif // MYPOSTER_H
24