Ring Daemon 16.0.0
Loading...
Searching...
No Matches
account_config_utils.h File Reference
Include dependency graph for account_config_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SERIALIZE_CONFIG(key, name)   serializeValue(out, key, name, DEFAULT_CONFIG.name)
 
#define SERIALIZE_PATH(key, name)   serializeValue(out, key, fileutils::getCleanPath(path.string(), name), DEFAULT_CONFIG.name)
 

Functions

template<typename T >
void serializeValue (YAML::Emitter &out, const char *key, const T &value, const T &def)
 

Macro Definition Documentation

◆ SERIALIZE_CONFIG

#define SERIALIZE_CONFIG (   key,
  name 
)    serializeValue(out, key, name, DEFAULT_CONFIG.name)

Definition at line 26 of file account_config_utils.h.

◆ SERIALIZE_PATH

#define SERIALIZE_PATH (   key,
  name 
)    serializeValue(out, key, fileutils::getCleanPath(path.string(), name), DEFAULT_CONFIG.name)

Definition at line 27 of file account_config_utils.h.

Function Documentation

◆ serializeValue()

template<typename T >
void serializeValue ( YAML::Emitter &  out,
const char *  key,
const T &  value,
const T &  def 
)
inline

Definition at line 21 of file account_config_utils.h.