/usr/lib/bouml/xmi2import/134018.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 | class UmlFlow
!!!217858.cpp!!! init() : void
declareFct("edge", "uml:ObjectFlow", &importIt);
declareFct("containededge", "uml:ObjectFlow", &importIt);
declareFct("interruptingedge", "uml:ObjectFlow", &importIt);
declareFct("edge", "uml:ControlFlow", &importIt);
declareFct("containededge", "uml:ControlFlow", &importIt);
declareFct("interruptingedge", "uml:ControlFlow", &importIt);
!!!218114.cpp!!! solveThem() : void
QValueList<Flow>::Iterator iter;
for (iter = All.begin(); iter != All.end(); ++iter) {
Flow & flow = *iter;
QMap<QCString, UmlItem*>::Iterator isrc = UmlItem::All.find(flow.source);
QMap<QCString, UmlItem*>::Iterator itgt = UmlItem::All.find(flow.target);
if ((isrc == UmlItem::All.end()) &&
((isrc = Outgoings.find(flow.id)) == Outgoings.end())) {
if (!FileIn::isBypassedId(flow.source))
UmlCom::trace("flow '" + flow.id + "' : unknown source reference '" + flow.source + "'<br>");
}
else if ((itgt == UmlItem::All.end()) &&
((itgt = Incomings.find(flow.id)) == Incomings.end())) {
if (!FileIn::isBypassedId(flow.target))
UmlCom::trace("flow '" + flow.id + "' : unknown target reference '" + flow.target + "'<br>");
}
else {
UmlActivityNode * src = dynamic_cast<UmlActivityNode*>(*isrc);
UmlActivityNode * tgt = dynamic_cast<UmlActivityNode*>(*itgt);
if (src == 0)
UmlCom::trace("'" + flow.source + "' is not an activity node<br>");
else if (tgt == 0)
UmlCom::trace("'" + flow.target + "' is not an activity node<br>");
else {
UmlFlow * f = UmlFlow::create(src, tgt);
if (f == 0)
UmlCom::trace("cannot create flow '" + flow.id + "'<br>");
else {
UmlItem::All.insert(flow.id, f);
if (! flow.name.isEmpty())
f->set_Name(flow.name);
if (flow.interrupt)
f->set_Stereotype("interrupt");
if (! flow.selection.isEmpty()) {
QMap<QCString, QCString>::Iterator iter =
OpaqueDefs.find(flow.selection);
if (iter == OpaqueDefs.end()) {
if (!FileIn::isBypassedId(flow.selection))
UmlCom::trace("flow '" + flow.id + "' : unknown selection reference '" + flow.selection + "'<br>");
}
else
f->set_Selection(*iter);
}
if (! flow.transformation.isEmpty()) {
QMap<QCString, QCString>::Iterator iter =
OpaqueDefs.find(flow.transformation);
if (iter == OpaqueDefs.end()) {
if (!FileIn::isBypassedId(flow.transformation))
UmlCom::trace("flow '" + flow.id + "' : unknown transformation reference '" + flow.transformation + "'<br>");
}
else
f->set_Transformation(*iter);
}
if (! flow.weight.isEmpty())
f->set_Weight(flow.weight);
if (! flow.guard.isEmpty())
f->set_Guard(flow.guard);
f->unload(FALSE, FALSE);
}
}
}
}
All.clear();
!!!217986.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
Flow & flow = *(All.append(Flow()));
QCString s;
flow.id = token.xmiId();
flow.name = token.valueOf("name");
flow.interrupt = (token.what() == "interruptingedge");
flow.source = token.valueOf("source");
flow.target = token.valueOf("target");
flow.selection = token.valueOf("selection");
flow.transformation = token.valueOf("transformation");
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if (s == "selection") {
flow.selection = token.valueOf("idref");
if (! token.closed())
in.finish(s);
}
else if (s == "transformation") {
flow.transformation = token.valueOf("idref");
if (! token.closed())
in.finish(s);
}
else if (s == "weight") {
flow.weight = token.valueOf("value");
if (! token.closed())
in.finish(s);
}
else if (s == "guard") {
QCString b = token.valueOf("body");
if (! b.isNull()) {
flow.guard = b;
if (! token.closed())
in.finish(s);
}
else if (! token.closed()) {
while (in.read(), !token.close("guard")) {
b = token.what();
if (b == "body") {
flow.guard = in.body("body");
in.finish("guard");
break;
}
else if (! token.closed())
in.finish(b);
}
}
}
else if (! token.closed())
in.finish(s);
}
}
|