-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQosPolicyCount.h
52 lines (42 loc) · 945 Bytes
/
QosPolicyCount.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef DDS_Policy_QosPolicyCount_h_Included
#define DDS_Policy_QosPolicyCount_h_Included
#include"DDS/CommonDefines.h"
#include"DDS/Policy/CorePolicyFwd.h"
#include"DDS/Export.h"
namespace DDS { namespace Policy
{
class DLL_STATE QosPolicyCount
{
public:
// @TODO: Finish Implementation
QosPolicyCount(DDS::Policy::QosPolicyId id, uint32_t count)
: policyId_(id)
, count_(count)
{ }
QosPolicyCount(const QosPolicyCount& other)
: policyId_(other.GetPolicyId())
, count_(other.GetCount())
{ }
public:
DDS::Policy::QosPolicyId GetPolicyId() const
{
return policyId_;
}
void SetPolicyId(DDS::Policy::QosPolicyId id)
{
policyId_ = id;
}
uint32_t GetCount() const
{
return count_;
}
void SetCount(uint32_t c)
{
count_ = c;
}
private:
DDS::Policy::QosPolicyId policyId_;
uint32_t count_;
};
}}
#endif