refactor(serif): fixed typos and updated names to reflect 4DSSE->SERiF
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user