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

#include <UtilsFactory.hpp>

Collaboration diagram for dotnamecpp::utils::UtilsFactory:

Classes

struct  AppComponents
struct  UtilsBundle

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 (std::shared_ptr< IAssetManager > assetManager, const std::string &filename="customstrings.json")
static std::shared_ptr< IStringFormattercreateStringFormatter ()
static std::shared_ptr< ILoggercreateLogger (LoggerType type, const LoggerConfig &config)
static std::shared_ptr< ILoggercreateDefaultLogger ()
static AppComponents createAppComponents (const std::string &appName, const LoggerConfig &loggerConfig)
 Create complete application components.
static UtilsBundle createBundle ()

Member Function Documentation

◆ createAppComponents()

UtilsFactory::AppComponents dotnamecpp::utils::UtilsFactory::createAppComponents ( const std::string & appName,
const LoggerConfig & loggerConfig )
staticnodiscard

Create complete application components.

Parameters
appNameApplication name for asset resolution
loggerConfigLogger configuration
Returns
AppComponents with logger, assetManager, and platformInfo
Here is the call graph for this function:

◆ 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:

◆ createBundle()

UtilsFactory::UtilsBundle dotnamecpp::utils::UtilsFactory::createBundle ( )
staticnodiscard
Here is the call graph for this function:

◆ createCustomStringsLoader()

std::shared_ptr< ICustomStringsLoader > dotnamecpp::utils::UtilsFactory::createCustomStringsLoader ( std::shared_ptr< IAssetManager > assetManager,
const std::string & filename = "customstrings.json" )
staticnodiscard
Here is the call 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:

◆ 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: