NixonCpp
Loading...
Searching...
No Matches
nixoncpp::v1::NixonCppLib Class Reference

#include <NixonCppLib.hpp>

Collaboration diagram for nixoncpp::v1::NixonCppLib:

Public Member Functions

 NixonCppLib (const UtilsFactory::ApplicationContext &context)
 Constructs a NixonCppLib instance from the given application context.
 ~NixonCppLib ()
 NixonCppLib (const NixonCppLib &other)=delete
NixonCppLiboperator= (const NixonCppLib &other)=delete
 NixonCppLib (NixonCppLib &&other)=delete
NixonCppLiboperator= (NixonCppLib &&other)=delete
bool isInitialized () const noexcept
const std::shared_ptr< nixoncpp::assets::IAssetManager > & getAssetManager () const noexcept
void performLibraryTask ()

Constructor & Destructor Documentation

◆ NixonCppLib() [1/3]

nixoncpp::v1::NixonCppLib::NixonCppLib ( const UtilsFactory::ApplicationContext & context)

Constructs a NixonCppLib instance from the given application context.

Initializes the library by setting up the logger and asset manager from the provided application context. If no logger is supplied in the context, a NullLogger is used as a fallback. The constructor validates the asset manager and sets the initialization flag accordingly.

Parameters
contextThe application context containing the logger and asset manager dependencies required for library initialization.
Note
If the asset manager is null or fails validation, an error is logged and the library remains uninitialized (isInitialized_ will be false).
Here is the caller graph for this function:

◆ ~NixonCppLib()

nixoncpp::v1::NixonCppLib::~NixonCppLib ( )

◆ NixonCppLib() [2/3]

nixoncpp::v1::NixonCppLib::NixonCppLib ( const NixonCppLib & other)
delete
Here is the call graph for this function:

◆ NixonCppLib() [3/3]

nixoncpp::v1::NixonCppLib::NixonCppLib ( NixonCppLib && other)
delete
Here is the call graph for this function:

Member Function Documentation

◆ getAssetManager()

const std::shared_ptr< nixoncpp::assets::IAssetManager > & nixoncpp::v1::NixonCppLib::getAssetManager ( ) const
nodiscardnoexcept
Here is the caller graph for this function:

◆ isInitialized()

bool nixoncpp::v1::NixonCppLib::isInitialized ( ) const
nodiscardnoexcept

◆ operator=() [1/2]

NixonCppLib & nixoncpp::v1::NixonCppLib::operator= ( const NixonCppLib & other)
delete
Here is the call graph for this function:

◆ operator=() [2/2]

NixonCppLib & nixoncpp::v1::NixonCppLib::operator= ( NixonCppLib && other)
delete
Here is the call graph for this function:

◆ performLibraryTask()

void nixoncpp::v1::NixonCppLib::performLibraryTask ( )
Here is the caller graph for this function:

The documentation for this class was generated from the following files: