Add from_to config option
This commit is contained in:
@@ -542,6 +542,7 @@ struct sequence_diagram : public diagram {
|
||||
common::model::diagram_t type() const override;
|
||||
|
||||
option<std::vector<source_location>> start_from{"start_from"};
|
||||
option<std::vector<std::vector<source_location>>> from_to{"from_to"};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -574,6 +574,7 @@ template <> struct convert<sequence_diagram> {
|
||||
return false;
|
||||
|
||||
get_option(node, rhs.start_from);
|
||||
get_option(node, rhs.from_to);
|
||||
get_option(node, rhs.combine_free_functions_into_file_participants);
|
||||
get_option(node, rhs.generate_return_types);
|
||||
get_option(node, rhs.generate_condition_statements);
|
||||
|
||||
@@ -348,6 +348,7 @@ YAML::Emitter &operator<<(YAML::Emitter &out, const sequence_diagram &c)
|
||||
out << YAML::BeginMap;
|
||||
out << YAML::Key << "type" << YAML::Value << c.type();
|
||||
out << c.start_from;
|
||||
out << c.from_to;
|
||||
out << dynamic_cast<const inheritable_diagram_options &>(c);
|
||||
out << YAML::EndMap;
|
||||
return out;
|
||||
|
||||
Reference in New Issue
Block a user