TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BuiltInConfig.cpp File Reference
#include "BuiltInConfig.h"
#include "Config.h"
#include "GitRevision.h"
+ Include dependency graph for BuiltInConfig.cpp:

Functions

template<typename Fn >
static std::string GetStringWithDefaultValueFromFunction (std::string const &key, Fn getter)
 

Function Documentation

template<typename Fn >
static std::string GetStringWithDefaultValueFromFunction ( std::string const key,
Fn  getter 
)
static
25 {
26  std::string const value = sConfigMgr->GetStringDefault(key, "");
27  return value.empty() ? getter() : value;
28 }
#define sConfigMgr
Definition: Config.h:61
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function: