/usr/lib/bouml/xmi2/133762.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 | class UmlActivity
!!!200962.cpp!!! write(inout out : FileOut) : void
const char * k = (_uml_20) ? "ownedMember" : "packagedElement";
out.indent();
out << '<' << k << " xmi:type=\"uml:Activity\"";
out.id(this);
out << " name=\"";
out.quote(name());
out << '"';
if (isReadOnly())
out << " isReadOnly=\"true\"";
if (isSingleExecution())
out << " isSingleExecution=\"true\"";
if (isActive())
out << " isActive=\"true\"";
if (specification() != 0)
out.ref(specification(), "specification");
out << ">\n";
out.indent(+1);
QCString s = constraint();
if (! s.isEmpty()) {
out.indent();
out << "<ownedRule xmi:type=\"uml:Constraint\"";
out.id_prefix(this, "CONSTRAINT_");
out.ref(this, "constrainedElement");
out << ">\n";
out.indent();
out << "\t<specification xmi:type=\"uml:OpaqueExpression\"";
out.id_prefix(this, "CSPEC_");
out << ">\n";
out.indent();
out << "\t\t<body>";
out.quote(s);
out << "</body>\n";
out.indent();
out << "\t</specification>\n";
out.indent();
out << "</ownedRule>\n";
}
write_description_properties(out);
switch (_lang) {
case Uml:
write_condition(out, preCondition(), TRUE);
write_condition(out, postCondition(), FALSE);
break;
case Cpp:
write_condition(out, cppPreCondition(), TRUE);
write_condition(out, cppPostCondition(), FALSE);
break;
default:
// Java
write_condition(out, javaPreCondition(), TRUE);
write_condition(out, javaPostCondition(), FALSE);
break;
}
const QVector<UmlItem> ch = children();
unsigned n = ch.size();
unsigned i;
for (i = 0; i != n; i += 1) {
UmlActivityItem * x = dynamic_cast<UmlActivityItem *>(ch[i]);
if (x != 0)
x->memo_incoming_flow();
}
for (i = 0; i != n; i += 1)
ch[i]->write(out);
write_flows(out);
QMap<QCString, Opaque>::ConstIterator ito;
for (ito = _opaque_behavior.begin(); ito != _opaque_behavior.end(); ++ito) {
out.indent();
out << "<ownedBehavior xmi:type=\"uml:OpaqueBehavior\"";
out.id_prefix(ito.data().item, ito.data().kind);
out << ">\n";
out.indent();
out << "\t<body>";
out.quote(ito.key());
out << "</body>\n";
out.indent();
out << "</ownedBehavior>\n";
}
out.indent(-1);
out.indent();
out << "</" << k << ">\n";
QMap<QCString, UmlItem *>::ConstIterator ite;
for (ite = _opaque_expression.begin(); ite != _opaque_expression.end(); ++ite) {
out.indent();
out << '<' << k << " xmi:type=\"uml:OpaqueExpression\"";
out.id_prefix(ite.data(), "OPAQUE_EXPRESSION_");
out << ">\n";
out.indent();
out << "\t<body>";
out.quote(ite.key());
out << "</body>\n";
out.indent();
out << "</" << k << ">\n";
}
unload();
!!!201218.cpp!!! write_condition(inout out : FileOut, in cond : string, in pre : bool) : void
if (! cond.isEmpty()) {
const char * k;
const char * K;
const char * body;
if (pre) {
k = "pre";
K = "PRE_";
body = "PRE_BODY_";
}
else {
k = "post";
K = "POST_";
body = "POST_BODY_";
}
out.indent();
out << '<' << k << "condition xmi:type=\"uml:Constraint\"";
out.id_prefix(this, K);
out << ">\n";
out.indent();
out << "\t<specification xmi:type=\"uml:OpaqueExpression\"";
out.id_prefix(this, body);
out << " body=\"";
out.quote(cond);
out << "\"/>\n";
out.indent();
out << "</" << k << "condition>\n";
}
!!!209282.cpp!!! add_opaque_behavior(in beh : string, in who : UmlItem, in k : str) : UmlItem
QMap<QCString, Opaque>::Iterator iter = _opaque_behavior.find(beh);
if (iter == _opaque_behavior.end()) {
_opaque_behavior.insert(beh, Opaque(who, k));
return who;
}
else
return iter.data().item;
!!!209794.cpp!!! add_opaque_expression(in val : string, in who : UmlItem) : UmlItem
QMap<QCString, UmlItem *>::Iterator iter = _opaque_expression.find(val);
if (iter == _opaque_expression.end()) {
_opaque_expression.insert(val, who);
return who;
}
else
return iter.data();
|