DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::v1::DotNameLib Class Reference

#include <DotNameLib.hpp>

Collaboration diagram for dotnamecpp::v1::DotNameLib:

Public Member Functions

 DotNameLib (std::shared_ptr< logging::ILogger > logger, std::shared_ptr< dotnamecpp::assets::IAssetManager > assetManager)
 Construct a new object.
 ~DotNameLib ()
 Destroy the object.
 DotNameLib (const DotNameLib &other)=delete
 Copy and move operations are deleted.
DotNameLiboperator= (const DotNameLib &other)=delete
 DotNameLib (DotNameLib &&other)=delete
DotNameLiboperator= (DotNameLib &&other)=delete
bool run (int durationSeconds=0)
 Run your business logic.
void stop ()
 Stop all running processes.
bool isInitialized () const noexcept
 Check if the library is initialized.
const std::shared_ptr< dotnamecpp::assets::IAssetManager > & getAssetManager () const noexcept
 Get the Asset Manager object.

Constructor & Destructor Documentation

◆ DotNameLib() [1/3]

dotnamecpp::v1::DotNameLib::DotNameLib ( std::shared_ptr< logging::ILogger > logger,
std::shared_ptr< dotnamecpp::assets::IAssetManager > assetManager )

Construct a new object.

Parameters
logger
assetManager
Here is the caller graph for this function:

◆ ~DotNameLib()

dotnamecpp::v1::DotNameLib::~DotNameLib ( )

Destroy the object.

Automatically ensures graceful shutdown

Here is the call graph for this function:

◆ DotNameLib() [2/3]

dotnamecpp::v1::DotNameLib::DotNameLib ( const DotNameLib & other)
delete

Copy and move operations are deleted.

This class manages unique resources and should not be copied or moved.

Here is the call graph for this function:

◆ DotNameLib() [3/3]

dotnamecpp::v1::DotNameLib::DotNameLib ( DotNameLib && other)
delete
Here is the call graph for this function:

Member Function Documentation

◆ getAssetManager()

const std::shared_ptr< dotnamecpp::assets::IAssetManager > & dotnamecpp::v1::DotNameLib::getAssetManager ( ) const
nodiscardnoexcept

Get the Asset Manager object.

Returns
const std::shared_ptr<dotnamecpp::assets::IAssetManager>&
Here is the caller graph for this function:

◆ isInitialized()

bool dotnamecpp::v1::DotNameLib::isInitialized ( ) const
nodiscardnoexcept

Check if the library is initialized.

Returns
true
false

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

bool dotnamecpp::v1::DotNameLib::run ( int durationSeconds = 0)

Run your business logic.

This is the main entry point for your library's functionality. Runs synchronously in the calling thread.

Parameters
durationSecondsDuration to run in seconds (0 = run indefinitely)
Returns
true if successful
false if an error occurred or not initialized

◆ stop()

void dotnamecpp::v1::DotNameLib::stop ( )

Stop all running processes.

Signals to stop running processes. Safe to call from another thread.

Here is the caller graph for this function:

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