Files
qt6-migration-pipeline/external/tmsif/include/ddkit/base/ConfigLoader.hpp
T
2026-10-23 16:13:31 +00:00

37 lines
732 B
C++

#pragma once
#include "ddkit/base/Config.hpp"
namespace ddkit {
namespace access {
class ConfigLoaderDds;
}
namespace base {
/// @brief class "ConfigLoader"
/// - it holds the config-File of the application and sets up the logger
/// Hold by ConfigLoaderDds
class ConfigLoader final {
public:
ConfigLoader(const std::string& configFile);
~ConfigLoader();
Config& config() { return m_config; }
private:
std::string m_programName;
Config m_config;
// no copying
ConfigLoader(ConfigLoader const&) = delete;
ConfigLoader(ConfigLoader&&) = delete;
void operator=(ConfigLoader const&) = delete;
void operator=(ConfigLoader&&) = delete;
};
} // namespace base
} // namespace ddkit