|
Arkanjo 0.2
A tool for find code duplicated functions in codebases
|
Singleton configuration manager class. More...
#include <config.hpp>
Public Member Functions | |
| Config (const Config &)=delete | |
| Deleted copy constructor. | |
| Config & | operator= (const Config &)=delete |
| Deleted assignment operator. | |
| 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. | |
Public Attributes | |
| std::string | program_name {"arkanjo"} |
| Name of the program. | |
| fs::path | base_path {"tmp/arkanjo"} |
| Default base path for temporary files. | |
| fs::path | third_party_dir {"third-party"} |
| Directory containing third-party dependencies. | |
| fs::path | name_container {"default"} |
| Name of the cache container. | |
| config::Theme | theme {config::Theme::Dark} |
| Current terminal theme. | |
Protected Member Functions | |
| Config ()=default | |
| Protected constructor 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 33 of file config.hpp.
|
protecteddefault |
Protected constructor for singleton pattern.
|
delete |
Deleted copy constructor.
|
static |
Gets the singleton configuration instance.
Definition at line 37 of file config.cpp.
| void Config::setDefaultConfig | ( | ) |
Sets default production configuration paths.
Definition at line 10 of file config.cpp.
| void Config::setTestConfig | ( | ) |
Sets test configuration paths.
Configures paths for end-to-end testing environment.
Definition at line 6 of file config.cpp.
| fs::path Config::base_path {"tmp/arkanjo"} |
Default base path for temporary files.
Definition at line 42 of file config.hpp.
| fs::path Config::name_container {"default"} |
Name of the cache container.
Definition at line 44 of file config.hpp.
| std::string Config::program_name {"arkanjo"} |
Name of the program.
Definition at line 41 of file config.hpp.
| config::Theme Config::theme {config::Theme::Dark} |
Current terminal theme.
Definition at line 45 of file config.hpp.
| fs::path Config::third_party_dir {"third-party"} |
Directory containing third-party dependencies.
Definition at line 43 of file config.hpp.