You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add Store::Initialise based on stringstream rather than string filename. Return false on failure to parse a config file line (which isn't a comment or empty), rather than silently ignoring it
Copy file name to clipboardExpand all lines: src/Store/Store.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ class Store{
24
24
Store(); ////< Sinple constructor
25
25
26
26
boolInitialise(std::string filename); ///< Initialises Store by reading in entries from an ASCII text file, when each line is a variable and its value in key value pairs. @param filename The filepath and name to the input file.
27
+
boolInitialise(std::stringstream& inputstream); ///< Initialises Store by reading entries from an ASCII text stream. Each line is a variable and its value in key value pairs. @param inputstream The stream to read from.
27
28
voidJsonParser(std::string input); ///< Converts a flat JSON formatted string to Store entries in the form of key value pairs. @param input The input flat JSON string.
28
29
voidPrint(); ///< Prints the contents of the Store.
29
30
voidDelete(); ///< Deletes all entries in the Store.
0 commit comments