BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Main Page
Related Pages
Data Structures
Files
File List
base
src
model
TokenID.h
1
#pragma once
2
3
#include <string>
4
5
namespace
BeeeOn {
6
11
class
TokenID
{
12
public
:
13
TokenID
();
14
15
TokenID
(
const
std::string &value)
16
{
17
m_value = value;
18
}
19
20
static
TokenID
parse(
const
std::string &value)
21
{
22
return
TokenID
(value);
23
}
24
25
bool
isNull()
const
26
{
27
return
m_value.empty();
28
}
29
30
std::string toString()
const
31
{
32
return
m_value;
33
}
34
35
bool
operator !=(
const
TokenID
&
id
)
const
36
{
37
return
m_value !=
id
.m_value;
38
}
39
40
bool
operator ==(
const
TokenID
&
id
)
const
41
{
42
return
m_value ==
id
.m_value;
43
}
44
45
bool
operator <(
const
TokenID
&
id
)
const
46
{
47
return
m_value <
id
.m_value;
48
}
49
50
bool
operator >(
const
TokenID
&
id
)
const
51
{
52
return
m_value >
id
.m_value;
53
}
54
55
bool
operator <=(
const
TokenID
&
id
)
const
56
{
57
return
m_value <=
id
.m_value;
58
}
59
60
bool
operator >=(
const
TokenID
&
id
)
const
61
{
62
return
m_value >=
id
.m_value;
63
}
64
65
private
:
66
std::string m_value;
67
};
68
69
}
BeeeOn::TokenID
Definition:
TokenID.h:11
Generated by
1.8.5