#pragma once #include #include class CConfiguration { public: CConfiguration(); CConfiguration(const char* pszFilepath); ~CConfiguration(); public: void setFilepath(const char* pszFilepath); void getUnitId(CString& strUnitId); void getBond1(CString& strIp, UINT& port, UINT& doorCount); int getLogcatLevel(); void setLogcatLevel(int level); int setLogcatIncludeText(CString& strInclude); int getLogcatIncludeText(CString& strInclude); void setLogcatIncludeRegex(BOOL bRegex); BOOL isLogcatIncludeRegex(); int getCustomLogcatIncludeTexts(std::vector& texts); public: void setP2RemoteEqReconnectInterval(int second); int getP2RemoteEqReconnectInterval(); private: CString m_strFilepath; };