ok, so we added a lot more checks for the config file, and some post processing, still needs a few more things, but now some defaults are set too, basically it works under most circumstances
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
# include <cstdlib> // atoi (athough it's already cover by <string>)
|
||||
# include <iostream> // cout, cin
|
||||
# include <fstream> // ifstream
|
||||
//# include <unistd.h> // access()
|
||||
# include <dirent.h> // opendir()
|
||||
|
||||
|
||||
class ConfigParser {
|
||||
@@ -79,6 +81,12 @@ private:
|
||||
|
||||
|
||||
|
||||
// some sort of post processing...
|
||||
|
||||
void _post_processing(std::vector<ServerConfig> *servers);
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user