diff options
author | deva <deva> | 2006-08-16 23:48:22 +0000 |
---|---|---|
committer | deva <deva> | 2006-08-16 23:48:22 +0000 |
commit | 6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 (patch) | |
tree | 95f5fe5db16808d7b13511a6344bc269692e6e17 /lib/configuration.h | |
parent | cca64725502c1035ca50675dda6c42dad18f0cbf (diff) |
Finished the Configuration class (Still missing vector<string> though!)
Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places.
Diffstat (limited to 'lib/configuration.h')
-rw-r--r-- | lib/configuration.h | 27 |
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__*/ |