working out peer module loading

This commit is contained in:
Chris Punches
2025-03-27 21:51:21 -04:00
parent 49c73d1876
commit 448dc0cdfd
12 changed files with 96 additions and 9 deletions

View File

@@ -156,6 +156,12 @@ class ConfigManager {
*/
bool hasConfigKey(const char* section, const char* key) const;
// getter for _module_path
void setModulePath(const std::string& module_path);
// setter for _module_path
std::string getModulePath() const;
private:
/**
* @brief Default section name to use when none is specified
@@ -199,6 +205,8 @@ class ConfigManager {
* @brief Configuration data structure: section -> key -> value
*/
std::map<std::string, std::map<std::string, std::string>> _config_data;
std::string _module_path;
};
/**

View File

@@ -141,5 +141,16 @@ extern "C" {
* @param level The log level as an integer (0=FATAL, 1=ERROR, 2=WARN, 3=INFO, 4=DEBUG)
*/
void dpm_set_logging_level(int level);
/**
* @brief Gets the derived module path from the global configuration
*
* Allows modules to retrieve the configured module path used by DPM.
* This path is determined at runtime based on CLI arguments, configuration files,
* and defaults, in order of precedence.
*
* @return The module path as a string
*/
const char* dpm_get_module_path(void);
}
/** @} */