summaryrefslogtreecommitdiff
path: root/lib/configuration.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration.h')
-rw-r--r--lib/configuration.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/configuration.h b/lib/configuration.h
index d187531..fba4c01 100644
--- a/lib/configuration.h
+++ b/lib/configuration.h
@@ -26,4 +26,31 @@
*/
#ifndef __MIAV_CONFIGURATION_H__
#define __MIAV_CONFIGURATION_H__
+
+#include "liblua_wrapper.h"
+
+#include <string>
+#include <vector>
+
+class Configuration {
+public:
+ Configuration(char *configfile);
+ ~Configuration();
+
+ int get(char *node, std::string *retval);
+ int get(char *node, std::vector<std::string> *retval);
+ int get(char *node, double *retval);
+ int get(char *node, int *retval);
+ int get(char *node, bool *retval);
+
+private:
+ LibLUAWrapper lua;
+};
+
+// For the global config object
+namespace MIaV {
+ void initConfig(Configuration *config);
+ extern Configuration *config;
+};
+
#endif/*__MIAV_CONFIGURATION_H__*/