Added 'to' sequence diagram generator for plantuml and json
This commit is contained in:
@@ -543,6 +543,7 @@ struct sequence_diagram : public diagram {
|
||||
|
||||
option<std::vector<source_location>> start_from{"start_from"};
|
||||
option<std::vector<std::vector<source_location>>> from_to{"from_to"};
|
||||
option<std::vector<source_location>> to{"to"};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -196,6 +196,7 @@ types:
|
||||
participants_order: !optional [string]
|
||||
start_from: !optional [source_location_t]
|
||||
from_to: !optional [[source_location_t]]
|
||||
to: !optional [source_location_t]
|
||||
package_diagram_t:
|
||||
type: !variant [package]
|
||||
#
|
||||
|
||||
@@ -575,6 +575,7 @@ template <> struct convert<sequence_diagram> {
|
||||
|
||||
get_option(node, rhs.start_from);
|
||||
get_option(node, rhs.from_to);
|
||||
get_option(node, rhs.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);
|
||||
|
||||
@@ -349,6 +349,7 @@ YAML::Emitter &operator<<(YAML::Emitter &out, const sequence_diagram &c)
|
||||
out << YAML::Key << "type" << YAML::Value << c.type();
|
||||
out << c.start_from;
|
||||
out << c.from_to;
|
||||
out << c.to;
|
||||
out << dynamic_cast<const inheritable_diagram_options &>(c);
|
||||
out << YAML::EndMap;
|
||||
return out;
|
||||
|
||||
Reference in New Issue
Block a user