summaryrefslogtreecommitdiff
path: root/rld-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'rld-config.h')
-rw-r--r--rld-config.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/rld-config.h b/rld-config.h
index b8bd495..52153d2 100644
--- a/rld-config.h
+++ b/rld-config.h
@@ -95,7 +95,7 @@ namespace rld
* Return the single item in a record. If the record is duplicated an
* error is thrown.
*/
- std::string get_record_item (const std::string& name) const;
+ const std::string get_record_item (const std::string& name) const;
/**
* Return the list of items in a record in a strings container.
@@ -122,10 +122,19 @@ namespace rld
/**
* Construct an empty configuration.
*/
- config();
+ config(const std::string& search_path = "");
+
+ /**
+ * Desctruct the configuration object.
+ */
virtual ~config();
/**
+ * Set the search path.
+ */
+ void set_search_path (const std::string& search_path);
+
+ /**
* Clear the current configuration.
*/
void clear ();
@@ -154,8 +163,9 @@ namespace rld
private:
- paths paths_; /**< The path's of the loaded files. */
- sections secs; /**< The sections loaded from configuration files */
+ paths search; //< The paths to search for config files in.
+ paths paths_; //< The path's of the loaded files.
+ sections secs; //< The sections loaded from configuration files
};
/**