2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief Read configuration file
23 #define STR_BUF_SIZE 2048
31 char m_strConfPath[260];
33 static int GetConfig(const char *strPath, const char *strSection,
34 const char *strKey, int nDefault);
35 static double GetConfig(const char *strPath, const char *strSection,
36 const char *strKey, double fDefault);
37 static bool GetConfig(const char *strPath, const char *strSection,
38 const char *strKey, const char *strDefault,
39 char *buf, int bufsize);
41 static bool SetConfig(const char *strPath, const char *strSection,
42 const char *strKey, int nValue);
43 static bool SetConfig(const char *strPath, const char *strSection,
44 const char *strKey, double fValue);
45 static bool SetConfig(const char *strPath, const char *strSection,
46 const char *strKey, const char strValue);
48 static void GetModulePath(char *buf, int bufsize);
50 void LoadConfig(const char*filePath);
72 std::string m_sDeviceName;
73 std::string m_sAmbConfigName;
79 * End of File.(CConf.h)