AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BuiltInConfig Namespace Reference

Functions

AC_COMMON_API std::string GetCMakeCommand ()
 
AC_COMMON_API std::string GetBuildDirectory ()
 
AC_COMMON_API std::string GetSourceDirectory ()
 
AC_COMMON_API std::string GetMySQLExecutable ()
 

Detailed Description

Provides helper functions to access built-in values which can be overwritten in config

Function Documentation

◆ GetBuildDirectory()

std::string BuiltInConfig::GetBuildDirectory ( )

Returns the build directory path when any is specified in the config, returns the built-in one otherwise

37{
39 "BuildDirectory", GitRevision::GetBuildDirectory);
40}
static std::string GetStringWithDefaultValueFromFunction(std::string const &key, Fn getter)
Definition: BuiltInConfig.cpp:23
AC_COMMON_API char const * GetBuildDirectory()
Definition: GitRevision.cpp:51

References GitRevision::GetBuildDirectory(), and GetStringWithDefaultValueFromFunction().

◆ GetCMakeCommand()

std::string BuiltInConfig::GetCMakeCommand ( )

Returns the CMake command when any is specified in the config, returns the built-in path otherwise

31{
33 "CMakeCommand", GitRevision::GetCMakeCommand);
34}
AC_COMMON_API char const * GetCMakeCommand()
Definition: GitRevision.cpp:36

References GitRevision::GetCMakeCommand(), and GetStringWithDefaultValueFromFunction().

◆ GetMySQLExecutable()

std::string BuiltInConfig::GetMySQLExecutable ( )

Returns the path to the mysql executable (mysql) when any is specified in the config, returns the built-in one otherwise

49{
51 "MySQLExecutable", GitRevision::GetMySQLExecutable);
52}
AC_COMMON_API char const * GetMySQLExecutable()
Definition: GitRevision.cpp:61

References GitRevision::GetMySQLExecutable(), and GetStringWithDefaultValueFromFunction().

Referenced by DBUpdaterUtil::GetCorrectedMySQLExecutable().

◆ GetSourceDirectory()

std::string BuiltInConfig::GetSourceDirectory ( )

Returns the source directory path when any is specified in the config, returns the built-in one otherwise

43{
45 "SourceDirectory", GitRevision::GetSourceDirectory);
46}
AC_COMMON_API char const * GetSourceDirectory()
Definition: GitRevision.cpp:56

References GitRevision::GetSourceDirectory(), and GetStringWithDefaultValueFromFunction().

Referenced by DBUpdater< T >::GetBaseFilesDirectory(), and DBUpdater< T >::Update().