gusimplewhiteboard
guWhiteboard_gugenericwhiteboardobject.h
Go to the documentation of this file.
1
9#ifndef WB_GU_WHITEBOARD_GUGENERICWHITEBOARDOBJECT_H
10#define WB_GU_WHITEBOARD_GUGENERICWHITEBOARDOBJECT_H
11
15
16//Prototype for custom singleton whiteboard methods.
18
19template <class object_type> class wb_generic_whiteboard_object : public generic_whiteboard_object<object_type>
20{
21public:
25 wb_generic_whiteboard_object(gu_simple_whiteboard_descriptor *wbd, uint16_t toffs, bool want_atomic = true, bool do_notify_subscribers = true) : generic_whiteboard_object<object_type>(wbd, toffs, want_atomic, do_notify_subscribers)
26 {
27 init(toffs, wbd, want_atomic, do_notify_subscribers);
28 }
29
33 wb_generic_whiteboard_object(const object_type &value, uint16_t toffs, gu_simple_whiteboard_descriptor *wbd = NULLPTR, bool want_atomic = true) : generic_whiteboard_object<object_type>(value, toffs, wbd, want_atomic)
34 {
35 init(toffs, wbd, want_atomic);
36 this->set(value);
37 }
38
43 void init(uint16_t toffs, gu_simple_whiteboard_descriptor *wbd = NULLPTR, bool want_atomic = true, bool do_notify_subscribers = true)
44 {
45 if(!wbd)
46 {
48 }
49 generic_whiteboard_object<object_type>::init(toffs, wbd, want_atomic, do_notify_subscribers);
50 }
51};
52
53#endif //WB_GU_WHITEBOARD_GUGENERICWHITEBOARDOBJECT_H
This class allows you to set and get data directly into or out of the local whiteboard in shared memo...
void init(uint16_t toffs, gu_simple_whiteboard_descriptor *wbd=NULLPTR, bool want_atomic=true, bool do_notify_subscribers=true)
intialiser (called from constructors)
void set(const object_type &msg)
designated setter for posting whiteboard messages
void init(uint16_t toffs, gu_simple_whiteboard_descriptor *wbd=NULLPTR, bool want_atomic=true, bool do_notify_subscribers=true)
intialiser (called from constructors) This is specific to a custom whiteboard, this way the default s...
wb_generic_whiteboard_object(gu_simple_whiteboard_descriptor *wbd, uint16_t toffs, bool want_atomic=true, bool do_notify_subscribers=true)
designated constructor
wb_generic_whiteboard_object(const object_type &value, uint16_t toffs, gu_simple_whiteboard_descriptor *wbd=NULLPTR, bool want_atomic=true)
value conversion reference constructor
gu_simple_whiteboard_descriptor * get_guWhiteboard_singleton_whiteboard(void)
/file guWhiteboard_gugenericwhiteboardobject.h
the underlying whiteboard object