Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ConfigDB.h File Reference
#include "lib/file/vfs/vfs_path.h"
#include "ps/CStr.h"
#include <array>
#include <map>
#include <memory>
#include <mutex>
#include <vector>
Include dependency graph for ConfigDB.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CConfigDB
 
class  CConfigDBHook
 

Macros

#define g_ConfigDB   (*CConfigDB::Instance())
 
#define CFG_GET_VAL(name, destination)    g_ConfigDB.GetValue(CFG_USER, name, destination)
 

Typedefs

using CConfigValueSet = std::vector< CStr >
 

Enumerations

enum  EConfigNamespace {
  CFG_DEFAULT , CFG_MOD , CFG_SYSTEM , CFG_HWDETECT ,
  CFG_USER , CFG_COMMAND , CFG_LAST
}
 Namespace priorities: More...
 

Macro Definition Documentation

◆ CFG_GET_VAL

#define CFG_GET_VAL (   name,
  destination 
)     g_ConfigDB.GetValue(CFG_USER, name, destination)

◆ g_ConfigDB

#define g_ConfigDB   (*CConfigDB::Instance())

Typedef Documentation

◆ CConfigValueSet

using CConfigValueSet = std::vector<CStr>

Enumeration Type Documentation

◆ EConfigNamespace

Namespace priorities:

  • Command line args override everything
  • User supersedes HWDetect (let the user try crashing his system).
  • HWDetect supersedes mods & default -> mods can mod hwdetect itself.
  • SYSTEM is used for local.cfg and is basically for setting custom defaults.
Enumerator
CFG_DEFAULT 
CFG_MOD 
CFG_SYSTEM 
CFG_HWDETECT 
CFG_USER 
CFG_COMMAND 
CFG_LAST