Arkanjo 0.1
A tool for find code duplicated functions in codebases
|
Singleton configuration manager class. More...
#include <config.hpp>
Public Member Functions | |
Config (Config &other)=delete | |
Deleted copy constructor. | |
void | operator= (const Config &)=delete |
Deleted assignment operator. | |
string | getBasePath () |
Gets the current base path. | |
void | setTestConfig () |
Sets test configuration paths. | |
void | setDefaultConfig () |
Sets default production configuration paths. | |
Static Public Member Functions | |
static Config * | config () |
Gets the singleton configuration instance. | |
Protected Member Functions | |
Config () | |
Protected constructor for singleton pattern. | |
Static Protected Attributes | |
static Config * | config_ = nullptr |
Static instance pointer for singleton pattern. | |
Singleton configuration manager class.
Manages application paths and runtime configuration settings. Implements the singleton pattern to ensure single instance access.
Definition at line 26 of file config.hpp.
|
protected |
Protected constructor for singleton pattern.
Definition at line 35 of file config.hpp.
|
delete |
Deleted copy constructor.
|
static |
Gets the singleton configuration instance.
Definition at line 18 of file config.cpp.
string Config::getBasePath | ( | ) |
Gets the current base path.
Definition at line 4 of file config.cpp.
|
delete |
Deleted assignment operator.
void Config::setDefaultConfig | ( | ) |
Sets default production configuration paths.
Definition at line 12 of file config.cpp.
void Config::setTestConfig | ( | ) |
Sets test configuration paths.
Configures paths for end-to-end testing environment.
Definition at line 8 of file config.cpp.
|
staticprotected |
Static instance pointer for singleton pattern.
Definition at line 30 of file config.hpp.