cleaned things up
This commit is contained in:
@@ -23,30 +23,25 @@ class ConfigParser {
|
||||
|
||||
public:
|
||||
|
||||
// canonical?
|
||||
|
||||
ConfigParser(const char* path); // a string?
|
||||
|
||||
// might not need this either, ask Luke
|
||||
~ConfigParser();
|
||||
|
||||
// ideally i wouldn't have one cuz it makes no sense, when would i use it?
|
||||
// ConfigParser & operator=(const ConfigParser& rhs);
|
||||
|
||||
std::vector<ServerConfig> * parse(); // const?
|
||||
// std::vector<ServerConfig> parse(); // const?
|
||||
|
||||
|
||||
// i thought if it were an instance of this class you could call
|
||||
// private member functions from anywhere...
|
||||
void _print_content() const;
|
||||
void print_content() const;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
std::string _content;
|
||||
|
||||
// explicit?
|
||||
// what exaclty does explicit do again?
|
||||
ConfigParser(); // might need a path as arg?
|
||||
// should this be in private since it always needs a path?
|
||||
// not sure i even need this...
|
||||
ConfigParser();
|
||||
|
||||
|
||||
ServerConfig _parse_server(size_t *start);
|
||||
@@ -57,6 +52,7 @@ private:
|
||||
void _set_location_values(LocationConfig *location, const std::string key, std::string value);
|
||||
|
||||
|
||||
/* Extra */
|
||||
std::string _pre_set_val_check(const std::string key, \
|
||||
const std::string value);
|
||||
|
||||
@@ -66,8 +62,8 @@ private:
|
||||
|
||||
/* Post Processing */
|
||||
void _post_processing(std::vector<ServerConfig> *servers);
|
||||
bool _find_root_path_location(std::vector<LocationConfig> locations); // const?
|
||||
bool _find_root_path_location(std::vector<LocationConfig> locations) const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user