#include <fd_watcher.h>
Public Types | |
typedef boost::shared_ptr< FDWatcher > | Ptr |
Public Member Functions | |
FDWatcher () | |
void | registerFD (int fd, const boost::function< void(int)> &cb) |
void | removeFD (int fd) |
void | wait (const ros::WallDuration &duration) |
Private Attributes | |
std::map< int, boost::function< void(int)> > | m_fds |
Definition at line 16 of file fd_watcher.h.
Definition at line 19 of file fd_watcher.h.
rosmon::FDWatcher::FDWatcher | ( | ) |
Definition at line 23 of file fd_watcher.cpp.
void rosmon::FDWatcher::registerFD | ( | int | fd, |
const boost::function< void(int)> & | cb | ||
) |
Definition at line 27 of file fd_watcher.cpp.
void rosmon::FDWatcher::removeFD | ( | int | fd | ) |
Definition at line 32 of file fd_watcher.cpp.
void rosmon::FDWatcher::wait | ( | const ros::WallDuration & | duration | ) |
Definition at line 37 of file fd_watcher.cpp.
|
private |
Definition at line 28 of file fd_watcher.h.