10Duke Scale C++ Client
Loading...
Searching...
No Matches
ClientProperties.h
1#ifndef TENDUKE_SE_CLIENTPROPERTIES_H
2#define TENDUKE_SE_CLIENTPROPERTIES_H
3
4#include <string>
5#include <utility>
6
7namespace tenduke { namespace se {
8
21{
22public:
54 std::string cliCountry,
55 std::string cliHostName,
56 std::string cliHwArch,
57 std::string cliHwId,
58 std::string cliHwLabel,
59 std::string cliInstallationId,
60 std::string cliLang,
61 std::string cliNetworkIpAddress,
62 std::string cliOS,
63 std::string cliOSUserName,
64 std::string cliProcessId,
65 std::string cliVersion,
66 std::string cliKind,
67 std::string licenseConsumerId
68 ) : cliCountry(std::move(cliCountry))
69 , cliHostName(std::move(cliHostName))
70 , cliHwArch(std::move(cliHwArch))
71 , cliHwId(std::move(cliHwId))
72 , cliHwLabel(std::move(cliHwLabel))
74 , cliLang(std::move(cliLang))
76 , cliOS(std::move(cliOS))
77 , cliOSUserName(std::move(cliOSUserName))
78 , cliProcessId(std::move(cliProcessId))
79 , cliVersion(std::move(cliVersion))
80 , cliKind(std::move(cliKind))
82 ))
83 {}
84
86 const std::string cliCountry;
88 const std::string cliHostName;
90 const std::string cliHwArch;
93 const std::string cliHwId;
95 const std::string cliHwLabel;
97 const std::string cliInstallationId;
99 const std::string cliLang;
101 const std::string cliNetworkIpAddress;
103 const std::string cliOS;
105 const std::string cliOSUserName;
108 const std::string cliProcessId;
114 const std::string cliVersion;
122 const std::string cliKind;
125 const std::string licenseConsumerId;
126};
127
132{
133public:
139 ClientPropertiesBuilder & country(const std::string &pCountry)
140 {
141 this->cliCountry = pCountry;
142 return *this;
143 }
144
150 ClientPropertiesBuilder & hostName(const std::string &pHostName)
151 {
152 this->cliHostName = pHostName;
153 return *this;
154 }
155
161 ClientPropertiesBuilder & hwArch(const std::string &pHwArch)
162 {
163 this->cliHwArch = pHwArch;
164 return *this;
165 }
166
172 ClientPropertiesBuilder & hwId(const std::string &pHwId)
173 {
174 this->cliHwId = pHwId;
175 return *this;
176 }
177
183 ClientPropertiesBuilder & hwLabel(const std::string &pHwLabel)
184 {
185 this->cliHwLabel = pHwLabel;
186 return *this;
187 }
188
194 ClientPropertiesBuilder & installationId(const std::string &pInstallationId)
195 {
196 this->cliInstallationId = pInstallationId;
197 return *this;
198 }
199
205 ClientPropertiesBuilder & lang(const std::string &pLang)
206 {
207 this->cliLang = pLang;
208 return *this;
209 }
210
216 ClientPropertiesBuilder& networkIpAddress(const std::string& pNetworkIpAddress)
217 {
218 this->cliNetworkIpAddress = pNetworkIpAddress;
219 return *this;
220 }
221
227 ClientPropertiesBuilder& os(const std::string& pOS)
228 {
229 this->cliOS = pOS;
230 return *this;
231 }
232
238 ClientPropertiesBuilder& osUserName(const std::string& pOSUserName)
239 {
240 this->cliOSUserName = pOSUserName;
241 return *this;
242 }
243
249 ClientPropertiesBuilder & processId(const std::string &pProcessId)
250 {
251 this->cliProcessId = pProcessId;
252 return *this;
253 }
254
260 ClientPropertiesBuilder & version(const std::string &pVersion)
261 {
262 this->cliVersion = pVersion;
263 return *this;
264 }
265
271 ClientPropertiesBuilder & kind(const std::string &pKind)
272 {
273 this->cliKind = pKind;
274 return *this;
275 }
276
282 ClientPropertiesBuilder & licenseConsumerId(const std::string &pLicenseConsumerId)
283 {
284 this->cliLicenseConsumerId = pLicenseConsumerId;
285 return *this;
286 }
287
293 {
294 return {
295 cliCountry,
296 cliHostName,
297 cliHwArch,
298 cliHwId,
299 cliHwLabel,
300 cliInstallationId,
301 cliLang,
302 cliNetworkIpAddress,
303 cliOS,
304 cliOSUserName,
305 cliProcessId,
306 cliVersion,
307 cliKind,
308 cliLicenseConsumerId
309 };
310 }
311
312private:
313 std::string cliCountry;
314 std::string cliHostName;
315 std::string cliHwArch;
316 std::string cliHwId;
317 std::string cliHwLabel;
318 std::string cliInstallationId;
319 std::string cliLang;
320 std::string cliNetworkIpAddress;
321 std::string cliOS;
322 std::string cliOSUserName;
323 std::string cliProcessId;
324 std::string cliVersion;
325 std::string cliKind;
326 std::string cliLicenseConsumerId;
327};
328
329}}
330
331#endif //TENDUKE_SE_CLIENTPROPERTIES_H
ClientProperties(std::string cliCountry, std::string cliHostName, std::string cliHwArch, std::string cliHwId, std::string cliHwLabel, std::string cliInstallationId, std::string cliLang, std::string cliNetworkIpAddress, std::string cliOS, std::string cliOSUserName, std::string cliProcessId, std::string cliVersion, std::string cliKind, std::string licenseConsumerId)
Constructs new instance.
Definition ClientProperties.h:53
For building the client properties fluently.
Definition ClientProperties.h:132
ClientPropertiesBuilder & lang(const std::string &pLang)
Sets language.
Definition ClientProperties.h:205
ClientPropertiesBuilder & hwLabel(const std::string &pHwLabel)
Sets hardware label.
Definition ClientProperties.h:183
ClientPropertiesBuilder & installationId(const std::string &pInstallationId)
Sets installation id.
Definition ClientProperties.h:194
ClientPropertiesBuilder & country(const std::string &pCountry)
Sets country.
Definition ClientProperties.h:139
ClientPropertiesBuilder & kind(const std::string &pKind)
Sets kind.
Definition ClientProperties.h:271
ClientPropertiesBuilder & version(const std::string &pVersion)
Sets version.
Definition ClientProperties.h:260
ClientPropertiesBuilder & hwId(const std::string &pHwId)
Sets hardware id.
Definition ClientProperties.h:172
ClientPropertiesBuilder & osUserName(const std::string &pOSUserName)
Sets operating system username.
Definition ClientProperties.h:238
ClientPropertiesBuilder & networkIpAddress(const std::string &pNetworkIpAddress)
Sets network IP address.
Definition ClientProperties.h:216
ClientProperties build()
Builds the properties.
Definition ClientProperties.h:292
ClientPropertiesBuilder & licenseConsumerId(const std::string &pLicenseConsumerId)
Sets license consumer id.
Definition ClientProperties.h:282
ClientPropertiesBuilder & processId(const std::string &pProcessId)
Sets processId.
Definition ClientProperties.h:249
ClientPropertiesBuilder & hwArch(const std::string &pHwArch)
Sets hardware architecture.
Definition ClientProperties.h:161
ClientPropertiesBuilder & hostName(const std::string &pHostName)
Sets hostname.
Definition ClientProperties.h:150
ClientPropertiesBuilder & os(const std::string &pOS)
Sets operating system.
Definition ClientProperties.h:227
Properties of the client ("Client application claims")
Definition ClientProperties.h:21
const std::string licenseConsumerId
Identifier of the license consumer that the license checkout is for.
Definition ClientProperties.h:125
const std::string cliHostName
Hostname of device that the client app runs on.
Definition ClientProperties.h:88
const std::string cliVersion
Client app version.
Definition ClientProperties.h:114
const std::string cliOS
The operating system of the device / platform where the client application runs.
Definition ClientProperties.h:103
const std::string cliHwId
Hardware id of device that the client app runs on.
Definition ClientProperties.h:93
const std::string cliOSUserName
The username for the operating system of the device / platform where the client application runs.
Definition ClientProperties.h:105
ClientProperties(std::string cliCountry, std::string cliHostName, std::string cliHwArch, std::string cliHwId, std::string cliHwLabel, std::string cliInstallationId, std::string cliLang, std::string cliNetworkIpAddress, std::string cliOS, std::string cliOSUserName, std::string cliProcessId, std::string cliVersion, std::string cliKind, std::string licenseConsumerId)
Constructs new instance.
Definition ClientProperties.h:53
const std::string cliHwArch
Architecture of of device / platform that the client app runs on.
Definition ClientProperties.h:90
const std::string cliCountry
Country code of OS environment that the client app runs on.
Definition ClientProperties.h:86
const std::string cliHwLabel
Hardware label of device that the client app runs on.
Definition ClientProperties.h:95
const std::string cliProcessId
Process id of client app process in OS environment that the client app runs on.
Definition ClientProperties.h:108
const std::string cliInstallationId
Installation id the client app.
Definition ClientProperties.h:97
const std::string cliKind
An optional field indicating the general type of the client application.
Definition ClientProperties.h:122
const std::string cliNetworkIpAddress
The network IP address of the device / platform where the client application runs.
Definition ClientProperties.h:101
const std::string cliLang
Language code of the OS environment that the client app runs on.
Definition ClientProperties.h:99
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