Flex  0.17.9
Namespaces | Functions
yaml_utils.h File Reference
#include <yaml-cpp/yaml.h>
#include <filesystem>
#include <string>
#include <vector>
#include "flex/utils/result.h"
#include "glog/logging.h"
Include dependency graph for yaml_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gs
 
 gs::config_parsing
 

Functions

std::vector< std::string > gs::get_yaml_files (const std::string &plugin_dir)
 
Result< std::string > gs::get_json_string_from_yaml (const std::string &file_path)
 
Result< std::string > gs::get_json_string_from_yaml (const YAML::Node &node)
 
Status gs::write_yaml_node_to_yaml_string (const YAML::Node &node, YAML::Emitter &emitter)
 
Result< std::string > gs::get_yaml_string_from_yaml_node (const YAML::Node &node)
 
template<typename T >
bool gs::config_parsing::get_scalar (YAML::Node node, const std::string &key, T &value)
 
template<typename T >
bool gs::config_parsing::get_sequence (YAML::Node node, const std::string &key, std::vector< T > &seq)
 
template<typename V >
static bool gs::config_parsing::expect_config (YAML::Node root, const std::string &key, const V &value)