![]() |
Roboid Control for C++ 0.4
|
class which manages all known participants
#include <Participant.h>
Public Member Functions | |
| Participant * | Get (const char *ipAddress, unsigned int port) |
| Retrieve a participant by its address. | |
| Participant * | Get (unsigned char networkID) |
| Retrieve a participant by its network ID. | |
| Participant * | Add (const char *ipAddress, unsigned int port) |
| Add a participant with the given details. | |
| void | Add (Participant *participant) |
| Add a participant. | |
| void | Remove (Participant *participant) |
| Remove a participant. | |
| Participant ** | GetAll () const |
| const std::list< Participant * > & | GetAll () const |
| Get all participants. | |
Public Attributes | |
| int | count = 0 |
| Participant * RoboidControl::ParticipantRegistry::Get | ( | const char * | ipAddress, |
| unsigned int | port | ||
| ) |
Retrieve a participant by its address.
| ipAddress | The IP address of the participant |
| port | The port number of the participant |
| Participant * RoboidControl::ParticipantRegistry::Get | ( | unsigned char | networkID | ) |
Retrieve a participant by its network ID.
| networkID | The network ID of the participant |
| Participant * RoboidControl::ParticipantRegistry::Add | ( | const char * | ipAddress, |
| unsigned int | port | ||
| ) |
Add a participant with the given details.
| ipAddress | The IP address of the participant |
| port | The port number of the participant |
| void RoboidControl::ParticipantRegistry::Add | ( | Participant * | participant | ) |
Add a participant.
| participant | The participant to add |
| void RoboidControl::ParticipantRegistry::Remove | ( | Participant * | participant | ) |
Remove a participant.
| participant | The participant to remove |
| const std::list< Participant * > & RoboidControl::ParticipantRegistry::GetAll | ( | ) | const |
Get all participants.