Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::yaml_utils Namespace Reference

Functions

void parsePath (const YAML::Node &node, const char *key, std::string &path, const std::filesystem::path &base)
 
void parsePathOptional (const YAML::Node &node, const char *key, std::string &path, const std::filesystem::path &base)
 
template<typename T >
void parseValue (const YAML::Node &node, const char *key, T &value)
 
template<typename T >
bool parseValueOptional (const YAML::Node &node, const char *key, T &value)
 
std::set< std::string > parseVector (const YAML::Node &node)
 
std::vector< std::map< std::string, std::string > > parseVectorMap (const YAML::Node &node, const std::initializer_list< std::string > &keys)
 

Function Documentation

◆ parsePath()

void jami::yaml_utils::parsePath ( const YAML::Node &  node,
const char key,
std::string &  path,
const std::filesystem::path &  base 
)

Definition at line 25 of file yamlparser.cpp.

References jami::emitSignal(), jami::fileutils::getFullPath(), and parseValue().

Here is the call graph for this function:

◆ parsePathOptional()

void jami::yaml_utils::parsePathOptional ( const YAML::Node &  node,
const char key,
std::string &  path,
const std::filesystem::path &  base 
)

Definition at line 33 of file yamlparser.cpp.

References jami::emitSignal(), jami::fileutils::getFullPath(), and parseValueOptional().

Referenced by jami::JamiAccountConfig::unserialize().

Here is the call graph for this function:

◆ parseValue()

template<typename T >
void jami::yaml_utils::parseValue ( const YAML::Node &  node,
const char key,
T value 
)

Definition at line 31 of file yamlparser.h.

References jami::emitSignal(), and parseValue().

Referenced by jami::Manager::ManagerPimpl::loadAccount(), parsePath(), parseValue(), and parseValueOptional().

Here is the call graph for this function:

◆ parseValueOptional()

template<typename T >
bool jami::yaml_utils::parseValueOptional ( const YAML::Node &  node,
const char key,
T value 
)

◆ parseVector()

std::set< std::string > jami::yaml_utils::parseVector ( const YAML::Node &  node)

Definition at line 56 of file yamlparser.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ parseVectorMap()

std::vector< std::map< std::string, std::string > > jami::yaml_utils::parseVectorMap ( const YAML::Node &  node,
const std::initializer_list< std::string > &  keys 
)

Definition at line 41 of file yamlparser.cpp.

References jami::emitSignal(), and parseVectorMap().

Referenced by parseVectorMap().

Here is the call graph for this function: