Difference between revisions of "CXMessagePipe"
From cxwiki
(Created page with "<div class="mw-parser-output">CXMessagePipe allows one CXMessageTarget to observe "broadcasts" from another CXMessageTarget. This is typically used to implement a simple o...") |
m |
||
Line 1: | Line 1: | ||
− | <div class="mw-parser-output">CXMessagePipe allows one [[CXMessageTarget]] to observe "broadcasts" from another CXMessageTarget. This is typically used to implement a simple observer-observee relationship where both objects are derived from CXMessageTarget and where more complicated custom requirements are not necessary.</div> <div class="mw-parser-output"> </div> <div class="mw-parser-output">CXMessagePipe does NOT simply forward all [[CXMessage]] | + | <div class="mw-parser-output"><div class="mw-parser-output">CXMessagePipe allows one [[CXMessageTarget|CXMessageTarget]] to observe "broadcasts" from another CXMessageTarget. This is typically used to implement a simple observer-observee relationship where both objects are derived from CXMessageTarget and where more complicated custom requirements are not necessary.</div> <div class="mw-parser-output"> </div> <div class="mw-parser-output">CXMessagePipe does NOT simply forward all [[CXMessage|CXMessages]] passing through the observed CXMessageTarget.</div> <div class="mw-parser-output"> </div> |
= Configuration = | = Configuration = | ||
− | <div class="mw-parser-output">TBD.</div> <div class="mw-parser-output"> </div> | + | <div class="mw-parser-output">TBD.</div> <div class="mw-parser-output"> |
+ | CXMessagePipe(CXMessageTarget* __nonnull p_observer, CXMessageTarget* __nullable p_target = NULL); | ||
+ | |||
+ | void ConnectTo(CXMessageTarget* __nonnull p_target); | ||
+ | |||
+ | void Disconnect(void); | ||
+ | </div> <div class="mw-parser-output"> </div> | ||
= Broadcast = | = Broadcast = | ||
− | <div class="mw-parser-output">TBD.</div> <div class="mw-parser-output"> </div> | + | <div class="mw-parser-output">TBD.</div> <div class="mw-parser-output"> |
+ | void CXMessage::BroadcastToObservers(const CXMessage &msg); | ||
+ | </div> <div class="mw-parser-output"> </div> | ||
= Threading = | = Threading = | ||
− | <div class="mw-parser-output">TBD.</div> | + | <div class="mw-parser-output">TBD.</div> </div> |
Latest revision as of 19:28, 18 April 2018
CXMessagePipe allows one CXMessageTarget to observe "broadcasts" from another CXMessageTarget. This is typically used to implement a simple observer-observee relationship where both objects are derived from CXMessageTarget and where more complicated custom requirements are not necessary.
CXMessagePipe does NOT simply forward all CXMessages passing through the observed CXMessageTarget.
Configuration
TBD.
CXMessagePipe(CXMessageTarget* __nonnull p_observer, CXMessageTarget* __nullable p_target = NULL);
void ConnectTo(CXMessageTarget* __nonnull p_target);
void Disconnect(void);
Broadcast
TBD.
void CXMessage::BroadcastToObservers(const CXMessage &msg);
Threading
TBD.