12 #ifndef HAMMER_TOOLS_HAMMERYAML
13 #define HAMMER_TOOLS_HAMMERYAML
18 #include "yaml-cpp/yaml.h"
23 void writeDict2(YAML::Emitter& emitter, std::map<std::string, std::map<std::string, const T*>> dict2) {
24 for(
auto& elem: dict2) {
25 emitter << YAML::Key << elem.first;
26 emitter << YAML::Value << YAML::BeginMap;
27 for(
auto& elem2: elem.second) {
28 emitter << YAML::Key << elem2.first;
29 emitter << YAML::Value << *elem2.second;
31 emitter << YAML::EndMap;
36 void writeDict(YAML::Emitter& emitter, std::map<std::string, const T*> dict) {
37 for(
auto& elem: dict) {
38 emitter << YAML::Key << elem.first;
39 emitter << YAML::Value << *elem.second;
void writeDict(YAML::Emitter &emitter, std::map< std::string, const T * > dict)
void writeDict2(YAML::Emitter &emitter, std::map< std::string, std::map< std::string, const T * >> dict2)