Files
pip/utils/cloud_dispatcher/cloudserver.h
2021-04-05 17:42:02 +03:00

25 lines
540 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;
PIString server_name;
};
#endif // CLOUDSERVER_H