From 6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 16 Aug 2006 23:48:22 +0000 Subject: Finished the Configuration class (Still missing vector though!) Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places. --- lib/configuration.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'lib/configuration.h') 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 +#include + +class Configuration { +public: + Configuration(char *configfile); + ~Configuration(); + + int get(char *node, std::string *retval); + int get(char *node, std::vector *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__*/ -- cgit v1.2.3