YARP
Yet Another Robot Platform
yarp::os::impl::Dispatcher< T, RET > Class Template Reference

Dispatch to named methods based on string input. More...

#include <yarp/os/impl/Dispatcher.h>

Public Member Functions

void add (const char *name, RET(T::*fn)(int argc, char *argv[]))
 
RET dispatch (T *owner, const char *name, int argc, char *argv[])
 
std::vector< std::string > getNames ()
 

Detailed Description

template<class T, class RET>
class yarp::os::impl::Dispatcher< T, RET >

Dispatch to named methods based on string input.

Definition at line 30 of file Dispatcher.h.

Member Function Documentation

◆ add()

template<class T , class RET >
void yarp::os::impl::Dispatcher< T, RET >::add ( const char *  name,
RET(T::*)(int argc, char *argv[])  fn 
)
inline

Definition at line 55 of file Dispatcher.h.

◆ dispatch()

template<class T , class RET >
RET yarp::os::impl::Dispatcher< T, RET >::dispatch ( T *  owner,
const char *  name,
int  argc,
char *  argv[] 
)
inline

Definition at line 63 of file Dispatcher.h.

◆ getNames()

template<class T , class RET >
std::vector<std::string> yarp::os::impl::Dispatcher< T, RET >::getNames ( )
inline

Definition at line 75 of file Dispatcher.h.


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