Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DriverMessaging.cc File Reference

#include "DriverMessaging.h"
#include "Shared/plistCollections.h"
#include "Shared/plistSpecialty.h"
#include <string>
#include <set>
#include <map>
Include dependency graph for DriverMessaging.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DriverMessaging
 

Functions and data structures for sending messages from "user land" (behavior in Main, or motion commands in Motion) to drivers in the hardware abstraction layer.


Typedefs

typedef std::map< const char
*const, std::set< Listener * > > 
DriverMessaging::listeners_t

Functions

void DriverMessaging::addListener (Listener *l, const char *const t)
 allows drivers to subscribe to messages
void DriverMessaging::removeListener (Listener *l, const char *const t)
 allows drivers to unsubscribe from messages
void DriverMessaging::removeListener (Listener *l)
 allows drivers to unsubscribe from all messages
bool DriverMessaging::hasListener (const char *const t)
 returns true if any drivers are subscribed to the specified message class
void DriverMessaging::postMessage (const Message &d)
 posts a message to all subscribing drivers

Variables

listeners_t DriverMessaging::listeners

Detailed Description

Author:
Ethan Tira-Thompson (ejt) (Creator)

Definition in file DriverMessaging.cc.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:55 2016 by Doxygen 1.6.3