|
gusimplewhiteboard
|
compatibility API for accessing the remote whiteboard More...
#include <RemoteWhiteboard.h>
Public Member Functions | |
| RemoteWhiteboard (const char *wbName, RWBMachine n, Whiteboard *local_whiteboard=NULL) | |
| API Constructor This sets up the API and the callback soap server. More... | |
| virtual | ~RemoteWhiteboard () |
| Destructor. More... | |
| RWBMachine | machine () const |
| machine getter More... | |
| void | addReplicationType (const std::string &type) |
| std::vector< std::string > | getKnownTypesForMachine () |
| Get Known Types For Machine Gets all the currently known types for a machine. More... | |
| virtual void | subscribeToMessage (const std::string &type, WBFunctorBase *func, WBResult &result) |
| Subscribe To Message Subscribes to a message type on a whiteboard or whiteboards. More... | |
Public Member Functions inherited from guWhiteboard::Whiteboard | |
| Whiteboard (const char *sharedMemoryObjectName=gsw_global_whiteboard_name, bool checkVersion=true, int number=0) | |
| API Constructor This sets up the API and the callback soap server. More... | |
| virtual | ~Whiteboard () |
| Destructor. More... | |
| void | addMessage (gsw_hash_info *hashinfo, const WBMsg &msg, bool nonatomic=false, bool notifySubscribers=true) |
| Add Message Adds a message to the whiteboard that the API is connected to. More... | |
| WBMsg | getMessage (gsw_hash_info *hashinfo, WBResult *result=NULLPTR) |
| Get Message Gets a message from a simple whiteboard. More... | |
| void | subscriptionCallback (void) |
| subscription callback: not really public! More... | |
| virtual void | subscribeToMessage (gsw_hash_info *hashinfo, WBFunctorBase *func, WBResult &result) |
| Subscribe To Message Subscribes to a message type on a whiteboard or whiteboards. More... | |
| void | unsubscribeToMessage (gsw_hash_info *hashinfo, WBResult &result) |
| Unsubscribe To Message (sic!) Unsubscribes from a message type on a whiteboard or whiteboards. More... | |
| gsw_hash_info * | getTypeOffset (std::string type) |
| create a hash offset from message type, needed for adding, getting from WB More... | |
| void | addMessage (const std::string &type, const WBMsg &msg, bool nonatomic=false, bool notifySubscribers=true) |
| Add Message Adds a message to the whiteboard that the API is connected to. More... | |
| WBMsg | getMessage (std::string type, WBResult *result=NULLPTR) |
| Get Message Gets a message from a simple whiteboard. More... | |
| void | unsubscribeToMessage (std::string type, WBResult &result) |
| Unsubscribe To Message (sic!) Unsubscribes from a message type on a whiteboard or whiteboards. More... | |
Additional Inherited Members | |
Public Types inherited from guWhiteboard::Whiteboard | |
| enum | wb_method_result { METHOD_OK , METHOD_FAIL } |
| Return Type Enum. More... | |
| typedef enum guWhiteboard::Whiteboard::wb_method_result | WBResult |
| Return Type Enum. More... | |
Static Public Member Functions inherited from guWhiteboard::Whiteboard | |
| static WBMsg | getWBMsg (gu_simple_message *m) |
| convert the new 'simple' whiteboard data structure into the old WBMsg format More... | |
Public Attributes inherited from guWhiteboard::Whiteboard | |
| gu_simple_whiteboard_descriptor * | _wbd |
| underlying whiteboard More... | |
compatibility API for accessing the remote whiteboard
Definition at line 114 of file RemoteWhiteboard.h.
| RemoteWhiteboard::RemoteWhiteboard | ( | const char * | wbName, |
| RWBMachine | n, | ||
| Whiteboard * | local_whiteboard = NULL |
||
| ) |
API Constructor This sets up the API and the callback soap server.
| [in] | wbName | name of the whiteboard |
| [in] | n | whiteboard number |
| [in] | local_whiteboard | local whiteboard to use |
Definition at line 102 of file RemoteWhiteboard.cc.
References guWhiteboard::Whiteboard::Whiteboard().
|
virtual |
| void RemoteWhiteboard::addReplicationType | ( | const std::string & | type | ) |
Add Message
Adds a message to the whiteboard that the API is connected to
@param[in] type The string type associated with the message object
\
Definition at line 135 of file RemoteWhiteboard.cc.
References guWhiteboard::Whiteboard::addMessage().
Referenced by subscribeToMessage().
| std::vector< std::string > RemoteWhiteboard::getKnownTypesForMachine | ( | ) |
Get Known Types For Machine Gets all the currently known types for a machine.
Definition at line 140 of file RemoteWhiteboard.cc.
References guWhiteboard::Whiteboard::_wbd, gsw_procure(), GSW_SEM_MSGTYPE, GSW_TOTAL_MESSAGE_TYPES, gsw_vacate(), gsw_simple_message::hash, gsw_simple_whiteboard_s::num_types, gsw_whiteboard_s::sem, gsw_simple_message::string, gsw_simple_whiteboard_s::typenames, and gsw_whiteboard_s::wb.
|
inline |
machine getter
Definition at line 136 of file RemoteWhiteboard.h.
|
virtual |
Subscribe To Message Subscribes to a message type on a whiteboard or whiteboards.
| [in] | type | The string type to subscribe to |
| [in] | func | The function to call when a message of the type enter is added |
| [out] | result | An enum showing that either an error occured or the operation was completed successfully |
Reimplemented from guWhiteboard::Whiteboard.
Definition at line 160 of file RemoteWhiteboard.cc.
References addReplicationType(), and guWhiteboard::Whiteboard::subscribeToMessage().