40 lines
655 B
C++
40 lines
655 B
C++
#pragma once
|
|
|
|
|
|
class CLocalConf
|
|
{
|
|
public:
|
|
CLocalConf();
|
|
~CLocalConf();
|
|
|
|
string path_;
|
|
DWORD bs1fltkernel;
|
|
string local_ip_;
|
|
string local_id_;
|
|
string server_ip_;
|
|
wstring wstr_server_ip_;
|
|
|
|
int server_port_;
|
|
int policy_type_;
|
|
int policy_delay_;
|
|
int multiple_schedule_;
|
|
int use_policy_;
|
|
int log_delay_;
|
|
bool ssl_;
|
|
|
|
int auto_login_;
|
|
|
|
uint32_t ocr_type_;
|
|
string ocr_url_;
|
|
uint32_t ocr_mode_;
|
|
|
|
int run_mode_;
|
|
int GetConfig(const char* filename, DWORD pid);
|
|
const wchar_t* GetServerIpW();
|
|
int GetServerPort();
|
|
|
|
};
|
|
|
|
|
|
uint32_t GetJsonUint32(const char* key, Json::Value& value);
|
|
std::string GetJsonString(const char* key, Json::Value& value); |