1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#include "UmlNode.h"
#include "FileOut.h"
bool UmlNode::write_if_needed(FileOut & out) {
parent()->write(out);
out.indent();
out << "<UML:Node name=\"";
out.quote(name());
out << '"';
out.id(this);
out << " visibility=\"public\" isAbstract=\"false\" isActive=\"false\" >\n";
out.indent(+1);
write_stereotype(out);
write_description_properties(out);
out.indent(-1);
out.indent();
out << "</UML:Node>\n";
const QVector<UmlItem> ch = children();
unsigned n = ch.size();
for (unsigned i = 0; i != n; i += 1)
ch[i]->write_if_needed(out);
unload();
return TRUE;
}
void UmlNode::write(FileOut &) {
}
|