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

#include <interface_manager.h>

Inheritance diagram for hardware_interface::InterfaceManager:
Inheritance graph

List of all members.

Public Member Functions

template<class T >
T * get ()
 Get an interface.
std::vector< std::string > getNames () const
template<class T >
void registerInterface (T *iface)
 Register an interface.

Protected Types

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

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 107 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
A pointer to the stored interface of type T or NULL

Definition at line 78 of file interface_manager.h.

std::vector<std::string> hardware_interface::InterfaceManager::getNames ( ) const [inline]
Vector of interface names registered to this instance.

Definition at line 95 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
ifaceA pointer to the interface to store

Definition at line 57 of file interface_manager.h.

Member Data Documentation

Definition at line 108 of file interface_manager.h.

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

Author(s): Wim Meeussen, Adolfo Rodriguez Tsouroukdissian
autogenerated on Thu Dec 1 2016 03:45:48