refactor(serif): fixed typos and updated names to reflect 4DSSE->SERiF

This commit is contained in:
2025-06-12 09:04:03 -04:00
parent 9f73aebf29
commit af5df1d452
2 changed files with 178 additions and 181 deletions

View File

@@ -29,8 +29,7 @@
#include "config.h"
namespace serif {
namespace config {
namespace serif::config {
Config::Config() {}
@@ -90,8 +89,8 @@ bool Config::has(const std::string &key) {
void recurse_keys(const YAML::Node& node, std::vector<std::string>& keyList, const std::string& path = "") {
if (node.IsMap()) {
for (const auto& it : node) {
std::string key = it.first.as<std::string>();
std::string new_path = path.empty() ? key : path + ":" + key;
auto key = it.first.as<std::string>();
auto new_path = path.empty() ? key : path + ":" + key;
recurse_keys(it.second, keyList, new_path);
}
} else {
@@ -107,5 +106,4 @@ std::vector<std::string> Config::keys() const {
return keyList;
}
} // namespace config
} // namespace serif
}

View File

@@ -32,11 +32,11 @@
#include "yaml-cpp/yaml.h"
// -- Forward Def of Resource manager to let it act as a friend of Config --
namespace serif { namespace resource { class ResourceManager; } } // Forward declaration
namespace serif::resource { class ResourceManager; }
class configTestPrivateAccessor; // Forward declaration for test utility
namespace serif {
namespace config {
namespace serif::config {
/**
* @class Config
@@ -242,5 +242,4 @@ public:
friend class serif::resource::ResourceManager; // Adjusted friend declaration
};
} // namespace config
} // namespace serif
}