-
Notifications
You must be signed in to change notification settings - Fork 3
/
Check.h
executable file
·40 lines (39 loc) · 1006 Bytes
/
Check.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
#pragma once
#include <string>
#include <memory>
class CCheckData;
class CCheck
{
public:
CCheck();
CCheck(const CCheck& other);
CCheck(CCheck&& other);
~CCheck();
bool operator ==(const CCheck& rhs) const;
CCheck& operator =(const CCheck& rhs);
CCheck& operator =(CCheck&& rhs);
void SetId(const std::string& strId);
void SetName(const std::string& strName);
void SetNote(const std::string& strNote);
void SetInterval(const std::string& strInterval);
void SetTcp(const std::string& strTcp);
void SetTimeout(const std::string& strTimeout);
std::string GetId() const;
std::string GetName() const;
std::string GetNote() const;
std::string GetTcp() const;
std::string GetTimeout() const;
std::string GetInterval() const;
private:
std::unique_ptr<CCheckData> m_pData;
};
namespace std
{
template<>
struct hash<CCheck>
{
size_t operator()(const CCheck& obj) const {
return hash<std::string>()(obj.GetId());
}
};
}