refactor(serif): refactored entire codebase into serif and sub namespaces
This commit is contained in:
@@ -29,6 +29,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
namespace serif {
|
||||||
|
namespace config {
|
||||||
|
|
||||||
Config::Config() {}
|
Config::Config() {}
|
||||||
|
|
||||||
Config::~Config() {}
|
Config::~Config() {}
|
||||||
@@ -102,4 +105,7 @@ std::vector<std::string> Config::keys() const {
|
|||||||
YAML::Node node = YAML::Clone(yamlRoot);
|
YAML::Node node = YAML::Clone(yamlRoot);
|
||||||
recurse_keys(node, keyList);
|
recurse_keys(node, keyList);
|
||||||
return keyList;
|
return keyList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace config
|
||||||
|
} // namespace serif
|
||||||
@@ -34,7 +34,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 --
|
||||||
class ResourceManager;
|
namespace serif { namespace resource { class ResourceManager; } } // Forward declaration
|
||||||
|
class configTestPrivateAccessor; // Forward declaration for test utility
|
||||||
|
|
||||||
|
namespace serif {
|
||||||
|
namespace config {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class Config
|
* @class Config
|
||||||
@@ -230,9 +234,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Setup gTest class as a friend
|
// Setup gTest class as a friend
|
||||||
friend class configTestPrivateAccessor;
|
friend class ::configTestPrivateAccessor; // Friend declaration for global test accessor
|
||||||
// -- Resource Manager is a friend of config so it can create a seperate instance
|
// -- Resource Manager is a friend of config so it can create a seperate instance
|
||||||
friend class ResourceManager;
|
friend class serif::resource::ResourceManager; // Adjusted friend declaration
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
} // namespace config
|
||||||
|
} // namespace serif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user