NixonCpp
Loading...
Searching...
No Matches
NixonCppLib.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6
7namespace nixoncpp::v1 {
8 using namespace nixoncpp::utils;
9 class NixonCppLib {
10
11 public:
14 NixonCppLib(const NixonCppLib &other) = delete;
15 NixonCppLib &operator=(const NixonCppLib &other) = delete;
16 NixonCppLib(NixonCppLib &&other) = delete;
17 NixonCppLib &operator=(NixonCppLib &&other) = delete;
18
19 [[nodiscard]] bool isInitialized() const noexcept;
20 [[nodiscard]]
21 const std::shared_ptr<nixoncpp::assets::IAssetManager> &getAssetManager() const noexcept;
22 void performLibraryTask();
23
24 private:
25 bool isInitialized_{false};
26 static constexpr const char *libName_ = "NixonCppLib v0.0.1";
27
28 std::shared_ptr<nixoncpp::logging::ILogger> logger_;
29 std::shared_ptr<nixoncpp::assets::IAssetManager> assetManager_;
30 };
31
32} // namespace nixoncpp::v1
Definition IAssetManager.hpp:6
NixonCppLib & operator=(NixonCppLib &&other)=delete
NixonCppLib(const NixonCppLib &other)=delete
NixonCppLib(NixonCppLib &&other)=delete
const std::shared_ptr< nixoncpp::assets::IAssetManager > & getAssetManager() const noexcept
Definition NixonCppLib.cpp:44
NixonCppLib(const UtilsFactory::ApplicationContext &context)
Constructs a NixonCppLib instance from the given application context.
Definition NixonCppLib.cpp:20
void performLibraryTask()
Definition NixonCppLib.cpp:49
NixonCppLib & operator=(const NixonCppLib &other)=delete
~NixonCppLib()
Definition NixonCppLib.cpp:33
bool isInitialized() const noexcept
Definition NixonCppLib.cpp:41
Definition AssetManager.cpp:4
Definition DirectoryManager.cpp:5
Definition NixonCppLib.hpp:7
Definition NixonCppLib.hpp:7