Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

CRWIPowerDevice Class Reference

#include <rwi_powerdevice.h>

Inherits CRWIDevice.

List of all members.

Public Member Functions

 CRWIPowerDevice (char *interface, ConfigFile *cf, int section)
virtual int Setup ()
 Initialize the driver.

virtual int Shutdown ()
 Finalize the driver.

virtual void Main ()
 Main method for driver thread.


Constructor & Destructor Documentation

CRWIPowerDevice::CRWIPowerDevice char *  interface,
ConfigFile cf,
int  section
[inline]
 


Member Function Documentation

int CRWIPowerDevice::Setup  )  [virtual]
 

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

int CRWIPowerDevice::Shutdown  )  [virtual]
 

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

void CRWIPowerDevice::Main  )  [virtual]
 

Main method for driver thread.

Most drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Reimplemented from Driver.


The documentation for this class was generated from the following files:
Generated on Tue May 3 14:15:49 2005 for Player by doxygen 1.3.6