/usr/lib/bouml/xmi2/149250.bodies is in bouml-plugouts-src 4.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | class UmlSequenceMessage
!!!145796.cpp!!! write(inout out : FileOut, in diagram : UmlItem, in msgs : UmlSequenceMessage) : void
set_reverses(msgs);
QList<UmlSequenceMessage> l;
msgs.toList(&l);
UmlSequenceMessage * m;
while ((m = l.getFirst()) != 0) {
if (m->fragment() != 0)
m->fragment()->write(out, diagram, l);
else
m->write_fragment(out, diagram, l);
}
!!!145924.cpp!!! write_fragment(inout out : FileOut, in diagram : UmlItem, inout msgs : UmlSequenceMessage) : void
msgs.removeRef(this);
#define MSG "MSG", itsrank
#define SEND "MSGOCCSPECSEND", itsrank
#define REF_SEND "MSGOCCSPECSEND", reverse->itsrank
#define REC "MSGOCCSPECREC", itsrank
#define BEH "BEHEXECSPEC", itsrank
#define REF_BEH "BEHEXECSPEC", reverse->itsrank
#define EXEC "EXECOCCSPEC", itsrank
#define REF_EXEC "EXECOCCSPEC", reverse->itsrank
#define DEL "DELOCCSPEC", itsrank
UmlPackage * prj = UmlPackage::getProject();
switch (kind()) {
case aSynchronousCall:
case anAsynchronousCall:
used = TRUE;
if (from() != 0) {
out.indent();
out << "<fragment xmi:type=\"uml:MessageOccurrenceSpecification\"";
out.id_prefix(diagram, SEND);
out.ref(diagram, "covered", from()->lifeline());
out.ref(prj, "event",
(operation() != 0) ? operation()->event(FALSE)
: UmlOperation::event("SEND", form()));
out.ref(diagram, "message", MSG);
out << "/>\n";
}
if (to() != 0) {
out.indent();
out << "<fragment xmi:type=\"uml:MessageOccurrenceSpecification\"";
out.id_prefix(diagram, REC);
out.ref(diagram, "covered", to()->lifeline());
out.ref(prj, "event",
(operation() != 0) ? operation()->event(TRUE)
: UmlOperation::event("REC", form()));
out.ref(diagram, "message", MSG);
out << "/>\n";
out.indent();
out << "<fragment xmi:type=\"uml:BehaviorExecutionSpecification\"";
out.id_prefix(diagram, BEH);
out.ref(diagram, "covered", to()->lifeline());
out.ref(diagram, "start", REC);
if (reverse != 0) {
if (reverse->kind() == anExplicitReturn)
out.ref(diagram, "finish", REF_SEND);
else
out.ref(diagram, "finish", REF_EXEC);
}
out << "/>\n";
}
break;
case anExplicitReturn:
used = TRUE;
out.indent();
out << "<fragment xmi:type=\"uml:MessageOccurrenceSpecification\"";
out.id_prefix(diagram, SEND);
out.ref(diagram, "covered", from()->lifeline());
out.ref(prj, "event", UmlOperation::event("SEND", form()));
out.ref(diagram, "message", MSG);
out << "/>\n";
out.indent();
out << "<fragment xmi:type=\"uml:MessageOccurrenceSpecification\"";
out.id_prefix(diagram, REC);
out.ref(diagram, "covered", to()->lifeline());
out.ref(prj, "event", UmlOperation::event("REC", form()));
out.ref(diagram, "message", MSG);
out << "/>\n";
break;
case aDestruction:
out.indent();
out << "<fragment xmi:type=\"uml:OccurrenceSpecification\"";
out.id_prefix(diagram, DEL);
out.ref(diagram, "covered", from()->lifeline());
out.ref(prj, "event", UmlOperation::event("DEL", ""));
out << "/>\n";
break;
case anInteractionUse:
break;
default:
if (reverse != 0) {
out.indent();
out << "<fragment xmi:type=\"uml:ExecutionOccurrenceSpecification\"";
out.id_prefix(diagram, EXEC);
out.ref(diagram, "covered", from()->lifeline());
out.ref(prj, "event", UmlOperation::event("EXEC", form()));
out.ref(diagram, "execution", REF_BEH);
out << "/>\n";
}
break;
}
#undef MSG
#undef SEND
#undef REF_SEND
#undef REC
#undef BEH
#undef REF_BEH
#undef EXEC
#undef REF_EXEC
#undef DEL
!!!229890.cpp!!! write_them(inout out : FileOut, in diagram : UmlItem, in msgs : UmlSequenceMessage) : void
int n = msgs.size();
for (int i = 0; i != n; i += 1) {
UmlSequenceMessage * msg = msgs[i];
if (msg->used) {
#define MSG "MSG", msg->itsrank
#define SEND "MSGOCCSPECSEND", msg->itsrank
#define REC "MSGOCCSPECREC", msg->itsrank
switch (msg->kind()) {
case aSynchronousCall:
case anAsynchronousCall:
out.indent();
out << "<message xmi:type=\"uml:Message\"";
out.id_prefix(diagram, MSG);
out << " name=\"";
out.quote((msg->operation() != 0) ? msg->operation()->name()
: msg->form());
out << ((msg->kind() == anAsynchronousCall)
? "\" messageSort=\"asynchCall\""
: "\" messageSort=\"synchCall\"");
if (msg->from() == 0) {
out << " messageKind=\"found\"";
out.ref(diagram, "receiveEvent", REC);
}
else if (msg->to() == 0) {
out << " messageKind=\"lost\"";
out.ref(diagram, "sendEvent", SEND);
}
else {
out << " messageKind=\"complete\"";
out.ref(diagram, "sendEvent", SEND);
out.ref(diagram, "receiveEvent", REC);
out.ref(diagram, "connector", msg->from()->connector(msg->to()));
}
if (!msg->stereotype().isEmpty() && UmlItem::gen_extension()) {
out << ">\n";
out.indent();
out << "\t<xmi:Extension extender=\"Bouml\"><stereotype name=\"";
out.quote(msg->stereotype());
out << "\"/></xmi:Extension>\n";
out.indent();
out << "</message>\n";
}
else
out << "/>\n";
break;
case anExplicitReturn:
out.indent();
out << "<message xmi:type=\"uml:Message\"";
out.id_prefix(diagram, MSG);
out << " name=\"";
out.quote(msg->form());
out << "\" messageSort=\"reply\"";
out.ref(diagram, "sendEvent", SEND);
out.ref(diagram, "receiveEvent", REC);
out.ref(diagram, "connector", msg->from()->connector(msg->to()));
if (!msg->stereotype().isEmpty() && UmlItem::gen_extension()) {
out << ">\n";
out.indent();
out << "\t<xmi:Extension extender=\"Bouml\"><stereotype name=\"";
out.quote(msg->stereotype());
out << "\"/></xmi:Extension>\n";
out.indent();
out << "</message>\n";
}
else
out << "/>\n";
break;
default:
break;
}
#undef MSG
#undef SEND
#undef REC
}
}
!!!145668.cpp!!! set_reverses(in msgs : UmlSequenceMessage) : void
QPtrDict<QStack<UmlSequenceMessage> > sent;
int n = msgs.size();
for (int i = 0; i != n; i += 1) {
UmlSequenceMessage * m = msgs[i];
QStack<UmlSequenceMessage> * stack =
(m->from() != 0) ? sent[m->from()] : 0;
switch (m->kind()) {
case aDestruction:
case anInteractionUse:
break;
case aSynchronousCall:
case anAsynchronousCall:
if ((m->from() != 0) && (m->to() != 0)) {
stack = sent[m->to()];
if (stack == 0) {
stack = new QStack<UmlSequenceMessage>();
sent.insert(m->to(), stack);
}
stack->push(m);
}
if (m->fragment() != 0)
m->fragment()->fragment()->cover(m);
break;
default: // return
stack = sent[m->from()];
if ((stack != 0) &&
!stack->isEmpty() &&
((m->kind() != anExplicitReturn) ||
(m->to() == stack->top()->from())))
(m->reverse = stack->pop())->reverse = m;
}
}
sent.setAutoDelete(TRUE);
|