summaryrefslogtreecommitdiff
path: root/rld-config.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-09-08 16:06:48 +1000
committerChris Johns <chrisj@rtems.org>2014-09-08 16:06:48 +1000
commit52d988128d5014002b0431f7d4f5de0ff50f92a9 (patch)
treee8101d9dd4926db4077413fecbaa18f490c5e26b /rld-config.h
parent4c9a892d009c5b8f1952cf3450dda32148af887e (diff)
RTEMS trace linker builds trace applications.
The trace linker builds the both_hello example in examples-v2. Move the various string support functions into a C++ file and stop being inlined. Make them return const std::string. Add ld support to rld-cc. Add search path support to rld-config so installed common files can be used. Fix the path bugs. Add an absolute path function to rld-path.
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
};
/**