Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phPlayerPower.h

Go to the documentation of this file.
00001 #ifndef PHPLAYERPOWER_H
00002 #define PHPLAYERPOWER_H
00003 
00004 #include <phPlayerDevice.h>
00005 #include <phPowerData.h>
00006 
00007 typedef struct ph_player_power_t *ph_player_power;
00008 
00009 /* ------------------------------------------------------------------------ */
00010 class phPlayerPower : public phPlayerDevice
00011 {
00012 private:
00013     ph_player_power     m_power;
00014 
00015     phPowerData         *m_data;
00016 
00017 public:
00018     phPlayerPower    ( );
00019     phPlayerPower    ( int index, phPlayerClient *client );
00020     ~phPlayerPower   ( );
00021     
00022     int set         ( int index, phPlayerClient *client );
00023     
00024     int subscribe   ( int access, int index, phPlayerClient *client);
00025     int subscribe   ( int access  = phMODE_READ);
00026     int unsubscribe ();
00027 
00028     int getData( phPowerData &data );
00029    
00030     void            *getId();
00031     int             updateData();
00032 };
00033 
00034 #endif /* PHPLAYERPOWER_H */




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:07 2007 for phission by  doxygen 1.4.4