10Duke Scale C++ Client
Loading...
Searching...
No Matches
TendukeClient.h
1#ifndef TENDUKE_SE_TENDUKECLIENT_H
2#define TENDUKE_SE_TENDUKECLIENT_H
3
4#include "./licensing/api/licenses/LicensingClient.h"
5#include "./licensing/api/MutableLeases.h"
6
7#include <memory>
8
9namespace tenduke { namespace se {
10
43{
44public:
45 virtual ~TendukeClient() = default;
46
53 const std::shared_ptr<::tenduke::se::licensing::LicensingClient> &licensingClient,
54 const std::shared_ptr<::tenduke::se::licensing::MutableLeases> &leases
55 ) : licensing(licensingClient)
56 , leases(leases)
57 {}
58
60 const std::shared_ptr<::tenduke::se::licensing::LicensingClient> licensing;
61
68 const std::shared_ptr<::tenduke::se::licensing::MutableLeases> leases;
69
76 virtual std::string serializeState() = 0;
77};
78
79}}
80
81#endif //TENDUKE_SE_TENDUKECLIENT_H
const std::shared_ptr<::tenduke::se::licensing::MutableLeases > leases
Lease-cache.
Definition TendukeClient.h:68
TendukeClient(const std::shared_ptr<::tenduke::se::licensing::LicensingClient > &licensingClient, const std::shared_ptr<::tenduke::se::licensing::MutableLeases > &leases)
Creates new client.
Definition TendukeClient.h:52
virtual std::string serializeState()=0
Serializes the client state into a JSON.
const std::shared_ptr<::tenduke::se::licensing::LicensingClient > licensing
Licensing client.
Definition TendukeClient.h:60
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16