Merge pull request #62 from tboudreaux/refactor/spelling
refactor(serif): fixed typos and updated names to reflect 4DSSE->SERiF
This commit is contained in:
@@ -29,8 +29,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
namespace serif {
|
namespace serif::config {
|
||||||
namespace config {
|
|
||||||
|
|
||||||
Config::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 = "") {
|
void recurse_keys(const YAML::Node& node, std::vector<std::string>& keyList, const std::string& path = "") {
|
||||||
if (node.IsMap()) {
|
if (node.IsMap()) {
|
||||||
for (const auto& it : node) {
|
for (const auto& it : node) {
|
||||||
std::string key = it.first.as<std::string>();
|
auto key = it.first.as<std::string>();
|
||||||
std::string new_path = path.empty() ? key : path + ":" + key;
|
auto new_path = path.empty() ? key : path + ":" + key;
|
||||||
recurse_keys(it.second, keyList, new_path);
|
recurse_keys(it.second, keyList, new_path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -107,5 +106,4 @@ std::vector<std::string> Config::keys() const {
|
|||||||
return keyList;
|
return keyList;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace config
|
}
|
||||||
} // namespace serif
|
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
#include "yaml-cpp/yaml.h"
|
#include "yaml-cpp/yaml.h"
|
||||||
|
|
||||||
// -- Forward Def of Resource manager to let it act as a friend of Config --
|
// -- 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
|
class configTestPrivateAccessor; // Forward declaration for test utility
|
||||||
|
|
||||||
namespace serif {
|
namespace serif::config {
|
||||||
namespace config {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class Config
|
* @class Config
|
||||||
@@ -242,5 +242,4 @@ public:
|
|||||||
friend class serif::resource::ResourceManager; // Adjusted friend declaration
|
friend class serif::resource::ResourceManager; // Adjusted friend declaration
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace config
|
}
|
||||||
} // namespace serif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user