Public Member Functions | Protected Types | Protected Attributes
hardware_interface::InterfaceManager Class Reference

#include <interface_manager.h>

Inheritance diagram for hardware_interface::InterfaceManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<class T >
T * get ()
 Get an interface.
template<class T >
void registerInterface (T *iface)
 Register an interface.

Protected Types

typedef std::map< std::string,
void * > 
InterfaceMap

Protected Attributes

InterfaceMap interfaces_

Detailed Description

Definition at line 44 of file interface_manager.h.


Member Typedef Documentation

typedef std::map<std::string, void*> hardware_interface::InterfaceManager::InterfaceMap [protected]

Definition at line 95 of file interface_manager.h.


Member Function Documentation

template<class T >
T* hardware_interface::InterfaceManager::get ( ) [inline]

Get an interface.

Since this class only stores one interface per type, this returns a pointer to the requested interface type. If the interface type is not registered, it will return NULL.

Template Parameters:
TThe interface type
Returns:
A pointer to the stored interface of type T or NULL

Definition at line 78 of file interface_manager.h.

template<class T >
void hardware_interface::InterfaceManager::registerInterface ( T *  iface) [inline]

Register an interface.

This associates the name of the type of interface to be registered with the given pointer.

Template Parameters:
TThe interface type
Parameters:
ifaceA pointer to the interface to store

Definition at line 57 of file interface_manager.h.


Member Data Documentation

Definition at line 96 of file interface_manager.h.


The documentation for this class was generated from the following file:


hardware_interface
Author(s): Wim Meeussen, Adolfo Rodriguez Tsouroukdissian
autogenerated on Sat Jun 8 2019 20:09:17