You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/include/configfile.hpp

31 lines
762 B

#ifndef __CLASS_PROXYSQL_CONFIGFILE_H
#define __CLASS_PROXYSQL_CONFIGFILE_H
//#include "proxysql.h"
//#include "cpp.h"
#include "libconfig.h++"
using namespace libconfig;
class ProxySQL_ConfigFile {
private:
struct stat statbuf;
char *filename;
public:
Config *cfg;
ProxySQL_ConfigFile();
bool OpenFile(const char *);
void CloseFile();
bool ReadGlobals();
bool configVariable(const char *, const char *, int &, int, int, int, int);
bool configVariable(const char *, const char *, int64_t &, int64_t, int64_t, int64_t, int64_t);
bool configVariable(const char *, const char *, bool &, bool);
bool configVariable(const char *, const char *, char **, const char *);
~ProxySQL_ConfigFile();
};
#endif /* __CLASS_PROXYSQL_CONFIGFILE_H */