#include "UmlDeploymentView.h" #include "FileOut.h" #include "UmlItem.h" void UmlDeploymentView::write(FileOut & out) { if (_gen_views) { out.indent(); out << ((_uml_20) ? "\n"; out.indent(+1); write_description_properties(out); } const QVector ch = children(); unsigned n = ch.size(); for (unsigned i = 0; i != n; i += 1) ch[i]->write(out); if (_gen_views) { while (! _relations.isEmpty()) _relations.take(0)->write(out, FALSE); out.indent(-1); out.indent(); out << ((_uml_20) ? "\n" : "\n"); } } void UmlDeploymentView::memo_relation(UmlItem * r) { if (_gen_views) _relations.append(r); else parent()->memo_relation(r); }