2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[5014] Reading from file implemented

This commit is contained in:
Tomek Mrugalski
2016-11-09 21:24:15 +01:00
parent 7df8902127
commit d774e03249
4 changed files with 107 additions and 1 deletions

View File

@@ -53,12 +53,17 @@ public:
/// @brief Method called after the last tokens are scanned from a string.
void scanStringEnd();
void scanFileBegin(FILE * f);
void scanFileEnd(FILE * f);
/// @brief Run the parser on the string specified.
///
/// @param str string to be written
/// @return true on success.
isc::data::ConstElementPtr parseString(const std::string& str);
isc::data::ConstElementPtr parseFile(const std::string& filename);
/// @brief The name of the file being parsed.
/// Used later to pass the file name to the location tracker.
std::string file_;