#include "UmlComponent.h" #include "UmlCom.h" #include "UmlClass.h" void UmlComponent::html(QCString pfix, unsigned int rank, unsigned int level) { UmlCom::message(name()); UmlItem::html("Component", (UmlDiagram *) associatedDiagram()); if (parent()->kind() == aComponent) { fw.write("

nested in "); parent()->write(); fw.write("

\n"); } const QVector & provided = providedClasses(); if (provided.size() != 0) { const char * sep = "

provided classes : "; for (unsigned i = 0; i != provided.size(); i += 1) { fw.write(sep); sep = ", "; provided[i]->write(); } fw.write("

\n"); } const QVector & required = requiredClasses(); if (required.size() != 0) { const char * sep = "

required classes : "; for (unsigned i = 0; i != required.size(); i += 1) { fw.write(sep); sep = ", "; required[i]->write(); } fw.write("

\n"); } const QVector & realizing = realizingClasses(); if (realizing.size() != 0) { const char * sep = "

realizing classes : "; for (unsigned i = 0; i != realizing.size(); i += 1) { fw.write(sep); sep = ", "; realizing[i]->write(); } fw.write("

\n"); } write_children(pfix, rank, level); unload(FALSE, FALSE); } QCString UmlComponent::sKind() { return "component"; }