26 lines
587 B
C++
26 lines
587 B
C++
#ifndef CLOUDSERVER_H
|
|
#define CLOUDSERVER_H
|
|
|
|
#include "dispatcherclient.h"
|
|
|
|
|
|
class CloudServer : public PIObject {
|
|
PIOBJECT(CloudServer)
|
|
public:
|
|
CloudServer(DispatcherClient * c, const PIString & sname);
|
|
~CloudServer();
|
|
PIString serverName() const;
|
|
void addClient(DispatcherClient * c);
|
|
void removeClient(DispatcherClient * c);
|
|
PIVector<DispatcherClient*> getClients();
|
|
EVENT_HANDLER0(void, printStatus);
|
|
|
|
private:
|
|
DispatcherClient * server;
|
|
PIVector<DispatcherClient*> clients;
|
|
PIMap<uint, DispatcherClient*> index_clients;
|
|
PIString server_name;
|
|
};
|
|
|
|
#endif // CLOUDSERVER_H
|