0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
YAML::convert< config > Struct Reference

Detailed Description

Definition at line 1036 of file yaml_decoders.cc.

Static Public Member Functions

static bool decode (const Node &node, config &rhs)
 

Member Function Documentation

◆ decode()

static bool YAML::convert< config >::decode ( const Node &  node,
config rhs 
)
inlinestatic

Definition at line 1037 of file yaml_decoders.cc.

1038 {
1039 get_option(node, rhs.glob);
1040 get_option(node, rhs.using_namespace);
1041 get_option(node, rhs.using_module);
1042 get_option(node, rhs.filter_mode);
1043 get_option(node, rhs.output_directory);
1044 get_option(node, rhs.query_driver);
1045 get_option(node, rhs.allow_empty_diagrams);
1046 get_option(node, rhs.compilation_database_dir);
1047 get_option(node, rhs.add_compile_flags);
1048 get_option(node, rhs.remove_compile_flags);
1049 get_option(node, rhs.include_relations_also_as_members);
1050 get_option(node, rhs.puml);
1051 get_option(node, rhs.mermaid);
1052 get_option(node, rhs.graphml);
1053 get_option(node, rhs.generate_method_arguments);
1054 get_option(node, rhs.generate_concept_requirements);
1055 get_option(node, rhs.generate_packages);
1056 get_option(node, rhs.package_type);
1057 get_option(node, rhs.generate_template_argument_dependencies);
1058 get_option(node, rhs.skip_redundant_dependencies);
1059 get_option(node, rhs.generate_links);
1060 get_option(node, rhs.generate_system_headers);
1061 get_option(node, rhs.git);
1062 get_option(node, rhs.comment_parser);
1063 get_option(node, rhs.debug_mode);
1064 get_option(node, rhs.generate_metadata);
1065 get_option(node, rhs.combine_free_functions_into_file_participants);
1066 get_option(node, rhs.inline_lambda_messages);
1067 get_option(node, rhs.generate_return_types);
1068 get_option(node, rhs.generate_condition_statements);
1069 get_option(node, rhs.generate_message_comments);
1070 get_option(node, rhs.fold_repeated_activities);
1071 get_option(node, rhs.message_comment_width);
1072 get_option(node, rhs.type_aliases);
1073 get_option(node, rhs.user_data);
1074
1075 rhs.base_directory.set(node["__parent_path"].as<std::string>());
1076 get_option(node, rhs.get_relative_to());
1077
1078 get_option(node, rhs.diagram_templates);
1079
1080 auto diagrams = node["diagrams"];
1081
1082 for (auto d : diagrams) {
1083 auto name = d.first.as<std::string>();
1084 std::shared_ptr<clanguml::config::diagram> diagram_config{};
1085 auto parent_path = node["__parent_path"].as<std::string>();
1086 d.second.force_insert("__parent_path", parent_path);
1087
1089 if (diagram_config) {
1090 diagram_config->name = name;
1091 rhs.diagrams[name] = diagram_config;
1092 }
1093 else {
1094 return false;
1095 }
1096 }
1097
1098 return true;
1099 }

The documentation for this struct was generated from the following file: