#include "UmlFormalParameter.h" #include "FileOut.h" #include "UmlClass.h" void UmlFormalParameter::write(FileOut & out, const UmlClass * cl, int rank, bool uml20) const { char tp[32]; char te[32]; sprintf(tp, "TEMPLPARAM%d_", rank); sprintf(te, "TEMPLELEM%d_", rank); out.indent(); out << "\n"; out.indent(); out << "\n"; out.indent(+1); out.indent(); if (uml20) out << "\n"; if (defaultValue().type != 0) UmlItem::write_default_value(out, defaultValue().type->name()); else UmlItem::write_default_value(out, defaultValue().explicit_type); out.indent(-1); out.indent(); out << "\n"; }