DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::utils::UtilsFactory Class Reference

#include <UtilsFactory.hpp>

Collaboration diagram for dotnamecpp::utils::UtilsFactory:

Classes

struct  ApplicationContext

Static Public Member Functions

static std::shared_ptr< IFileReadercreateFileReader ()
static std::shared_ptr< IFileWritercreateFileWriter ()
static std::shared_ptr< IPathResolvercreatePathResolver ()
static std::shared_ptr< IDirectoryManagercreateDirectoryManager ()
static std::unique_ptr< IPlatformInfocreatePlatformInfo ()
static std::unique_ptr< IPlatformInfocreatePlatformInfo (Platform platform)
static std::shared_ptr< IAssetManagercreateAssetManager (const std::filesystem::path &executablePath, const std::string &appName)
static std::shared_ptr< IJsonSerializercreateJsonSerializer ()
static std::shared_ptr< ICustomStringsLoadercreateCustomStringsLoader (const std::filesystem::path &executablePath, const std::string &appName)
static std::shared_ptr< IStringFormattercreateStringFormatter ()
static std::shared_ptr< ILoggercreateLogger (LoggerType type, const LoggerConfig &config)
static std::shared_ptr< ILoggercreateDefaultLogger ()
static ApplicationContext createFullContext (const std::string &appName, const LoggerConfig &loggerConfig)
 Create full application context with all components.
static ApplicationContext createCoreContext (const LoggerConfig &loggerConfig)
 Create minimal context without app-specific components.
static ApplicationContext createBasicContext ()
 Create basic utilities context with default logger.

Member Function Documentation

◆ createAssetManager()

std::shared_ptr< IAssetManager > dotnamecpp::utils::UtilsFactory::createAssetManager ( const std::filesystem::path & executablePath,
const std::string & appName )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createBasicContext()

UtilsFactory::ApplicationContext dotnamecpp::utils::UtilsFactory::createBasicContext ( )
staticnodiscard

Create basic utilities context with default logger.

Returns
ApplicationContext with basic utilities and default logger
Here is the call graph for this function:

◆ createCoreContext()

UtilsFactory::ApplicationContext dotnamecpp::utils::UtilsFactory::createCoreContext ( const LoggerConfig & loggerConfig)
staticnodiscard

Create minimal context without app-specific components.

Parameters
loggerConfigLogger configuration
Returns
ApplicationContext with core utilities only (no assetManager/customStringsLoader)
Here is the call graph for this function:

◆ createCustomStringsLoader()

std::shared_ptr< ICustomStringsLoader > dotnamecpp::utils::UtilsFactory::createCustomStringsLoader ( const std::filesystem::path & executablePath,
const std::string & appName )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDefaultLogger()

std::shared_ptr< ILogger > dotnamecpp::utils::UtilsFactory::createDefaultLogger ( )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDirectoryManager()

std::shared_ptr< IDirectoryManager > dotnamecpp::utils::UtilsFactory::createDirectoryManager ( )
staticnodiscard
Here is the caller graph for this function:

◆ createFileReader()

std::shared_ptr< IFileReader > dotnamecpp::utils::UtilsFactory::createFileReader ( )
staticnodiscard
Here is the caller graph for this function:

◆ createFileWriter()

std::shared_ptr< IFileWriter > dotnamecpp::utils::UtilsFactory::createFileWriter ( )
staticnodiscard
Here is the caller graph for this function:

◆ createFullContext()

UtilsFactory::ApplicationContext dotnamecpp::utils::UtilsFactory::createFullContext ( const std::string & appName,
const LoggerConfig & loggerConfig )
staticnodiscard

Create full application context with all components.

Parameters
appNameApplication name for asset resolution
loggerConfigLogger configuration
Returns
Complete ApplicationContext with all utilities initialized
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createJsonSerializer()

std::shared_ptr< IJsonSerializer > dotnamecpp::utils::UtilsFactory::createJsonSerializer ( )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createLogger()

std::shared_ptr< ILogger > dotnamecpp::utils::UtilsFactory::createLogger ( LoggerType type,
const LoggerConfig & config )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createPathResolver()

std::shared_ptr< IPathResolver > dotnamecpp::utils::UtilsFactory::createPathResolver ( )
staticnodiscard
Here is the caller graph for this function:

◆ createPlatformInfo() [1/2]

std::unique_ptr< IPlatformInfo > dotnamecpp::utils::UtilsFactory::createPlatformInfo ( )
staticnodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createPlatformInfo() [2/2]

std::unique_ptr< IPlatformInfo > dotnamecpp::utils::UtilsFactory::createPlatformInfo ( Platform platform)
staticnodiscard
Here is the call graph for this function:

◆ createStringFormatter()

std::shared_ptr< IStringFormatter > dotnamecpp::utils::UtilsFactory::createStringFormatter ( )
staticnodiscard
Here is the caller graph for this function:

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