LicenseSpring C++ SDK
Easily add Software Licensing to your application
LicenseType.h
Go to the documentation of this file.
1
#ifndef LS_LICENSE_TYPE_H
2
#define LS_LICENSE_TYPE_H
3
4
#ifdef _MSC_VER
5
#pragma once
6
#pragma warning(push)
7
#pragma warning(disable : 4251)
8
#endif
9
10
#include <string>
11
#include "
APIDef.h
"
12
#include "
PODTypes.h
"
13
14
namespace
LicenseSpring
15
{
19
class
LS_API
LicenseType
20
{
21
public
:
28
static
LicenseType
fromString(
const
std::string &str);
29
31
LicenseType
();
32
35
LicenseType
(
int
type);
36
39
LicenseType
(
LSLicenseType
type);
40
41
bool
operator==(
LicenseType
t)
const
;
42
bool
operator!=(
LicenseType
t)
const
;
43
bool
operator==(
LSLicenseType
t)
const
;
44
bool
operator!=(
LSLicenseType
t)
const
;
45
operator
LSLicenseType
()
const
;
46
operator
int()
const
;
47
52
std::string toString()
const
;
53
56
std::string toFormattedString()
const
;
57
58
private
:
59
LSLicenseType
m_type;
60
};
61
}
// namespace LicenseSpring
62
63
#ifdef _MSC_VER
64
#pragma warning(pop)
65
#endif
66
67
#endif // LS_LICENSE_TYPE_H
LSLicenseType
LSLicenseType
License type.
Definition:
PODTypes.h:25
LicenseSpring
Definition:
BaseManager.h:16
APIDef.h
LicenseSpring::LicenseType
Class used for encapsulating the type of license, comparing types of licenses, and converting them to...
Definition:
LicenseType.h:19
LS_API
#define LS_API
Definition:
APIDef.h:23
PODTypes.h
LicenseSpring
LicenseType.h
Generated by
1.8.13