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 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include "UmlArtifact.h"
#include "UmlCom.h"
#include "UmlClass.h"
#include "UmlDeploymentDiagram.h"
void UmlArtifact::html(QCString, unsigned int, unsigned int) {
UmlCom::message(name());
UmlItem::html("Artifact", (UmlDiagram *) associatedDiagram());
const char * sep = " associated with : ";
if (stereotype() == "source") {
fw.write("<p>Artifact <i>source</i>");
const QVector<UmlClass> l = associatedClasses();
for (unsigned i = 0; i != l.size(); i += 1) {
fw.write(sep);
l[i]->write();
sep = ", ";
}
}
else {
fw.write("<p><i>");
writeq(stereotype());
fw.write("</i>");
const QVector<UmlArtifact> l = associatedArtifacts();
for (unsigned i = 0; i != l.size(); i += 1) {
fw.write(sep);
l[i]->write();
sep = ", ";
}
}
fw.write("</p>\n");
unload(FALSE, FALSE);
}
QCString UmlArtifact::sKind() {
return "artifact";
}
|