started adding more checks to the parser, some things settled, but mostly i have a lot more questions...
This commit is contained in:
@@ -74,6 +74,9 @@ private:
|
||||
void _set_location_values(LocationConfig *location, const std::string key, std::string value);
|
||||
|
||||
|
||||
std::string _pre_set_val_check(const std::string key, \
|
||||
const std::string value);
|
||||
|
||||
std::string _get_first_word(size_t *curr); // const?
|
||||
std::string _get_rest_of_line(size_t *curr); // const?
|
||||
|
||||
@@ -87,7 +90,13 @@ private:
|
||||
};
|
||||
|
||||
|
||||
|
||||
// def needs work line a better name an do i even need this?
|
||||
// should it be in Utils instead?
|
||||
class MyException : public std::invalid_argument
|
||||
{
|
||||
MyException(const std::string str)
|
||||
: std::invalid_argument(str) {}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user