2 * GraphLCD driver library
4 * config.h - config file classes
6 * This file is released under the GNU General Public License. Refer
7 * to the COPYING file distributed with this package.
9 * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
12 #ifndef _GLCDDRIVERS_CONFIG_H_
13 #define _GLCDDRIVERS_CONFIG_H_
22 const int kWaitUsleep = 0;
23 const int kWaitNanosleep = 1;
24 const int kWaitNanosleepRR = 2;
25 const int kWaitGettimeofday = 3;
51 std::vector <tOption> options;
55 cDriverConfig(const cDriverConfig & rhs);
57 cDriverConfig & operator=(const cDriverConfig & rhs);
58 bool Parse(const std::string & line);
59 int GetInt(const std::string & value);
60 bool GetBool(const std::string & value);
68 std::vector <cDriverConfig> driverConfigs;
73 bool Load(const std::string & filename);
74 bool Save(const std::string & filename);
75 bool Parse(const std::string & line);
76 int GetInt(const std::string & value);
77 bool GetBool(const std::string & value);
78 int GetConfigIndex(const std::string & name);
81 extern cConfig Config;