Roboid Control for C++
Loading...
Searching...
No Matches
d:/C/controlcore_cpp/RemoteParticipant.h
1#pragma once
2#include "Thing.h"
3
4namespace Passer {
5namespace RoboidControl {
6
9public:
11 const char *ipAddress = "0.0.0.0";
13 int port = 0;
14
16 unsigned char networkId = 0;
17
23 RemoteParticipant(const char *ipAddress, int port);
24
25protected:
27 std::list<Thing *> things;
28
29public:
34 Thing *Get(unsigned char networkId, unsigned char thingId);
37 void Add(Thing *thing);
40 void Remove(Thing *thing);
41
42 //void UpdateAll(unsigned long currentTimeMs);
43};
44
45} // namespace Control
46} // namespace Passer
A reference to a participant, possibly on a remote location.
Definition RemoteParticipant.h:8
unsigned char networkId
The network ID of the participant.
Definition RemoteParticipant.h:16
std::list< Thing * > things
The things reported by this participant.
Definition RemoteParticipant.h:27
Thing * Get(unsigned char networkId, unsigned char thingId)
Get a thing with the give ids.
Definition RemoteParticipant.cpp:13
int port
The UDP port on which the participant can be reached.
Definition RemoteParticipant.h:13
RemoteParticipant()
The default constructor.
Definition RemoteParticipant.cpp:6
const char * ipAddress
The internet address of the participant.
Definition RemoteParticipant.h:11
void Add(Thing *thing)
Add a new thing for this participant.
Definition RemoteParticipant.cpp:23
void Remove(Thing *thing)
Remove a thing fror this participant.
Definition RemoteParticipant.cpp:34
A thing is the primitive building block.
Definition Thing.h:17