/usr/lib/bouml/xmi2import/9089.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 | class UmlOperation
!!!194434.cpp!!! init() : void
declareFct("ownedoperation", "", &importIt);
declareFct("ownedoperation", "uml:Operation", &importIt);
!!!194818.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
where = where->container(anOperation, token, in);
if (where == 0)
return;
QCString s = token.valueOf("name");
if (s.isEmpty()) {
static unsigned n = 0;
s.sprintf("anonymous_operation_%u", ++n);
}
UmlOperation * op = create((UmlClass *) where, s);
if (op == 0)
in.error("cannot create operation '" + s +
"' in '" + where->name() + "'");
op->addItem(token.xmiId(), in);
op->setVisibility(token.valueOf("visibility"));
if (token.valueOf("isstatic") == "true")
op->set_isClassMember(TRUE);
if (token.valueOf("isabstract") == "true")
op->set_isAbstract(TRUE);
if (token.valueOf("isquery") == "true")
op->set_isCppConst(TRUE);
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if (s == "raisedexception")
op->addException(token, in);
else if ((s == "ownedparameter") ||
(s == "returnresult")) // andromda emf
op->addParameter(token, in);
else if (s == "ownedrule")
op->set_Constraint(UmlItem::readConstraint(in, token));
else
op->UmlItem::import(in, token);
}
}
!!!196098.cpp!!! addException(inout token : Token, inout in : FileIn) : void
QCString idref = token.xmiIdref();
if (! idref.isEmpty()) {
int n = exceptions().count();
UmlTypeSpec ts;
(void) setType(idref, -n -1, ts);
UmlBaseOperation::addException(n, ts);
}
if (! token.closed())
in.finish(token.what());
!!!196226.cpp!!! addParameter(inout token : Token, inout in : FileIn) : void
UmlParameter p;
QCString s;
p.name = token.valueOf("name");
s = token.valueOf("direction");
if ((s == "in") || (s == "pk_in"))
p.dir = InputDirection;
else if ((s == "out") || (s == "pk_out"))
p.dir = OutputDirection;
else if ((s == "inout") || (s == "pk_inout"))
p.dir = InputOutputDirection;
else if ((s == "return") || (s == "pk_return"))
p.dir = ReturnDirection;
else {
p.dir = InputDirection;
if (! s.isEmpty())
in.warning("wrong direction");
}
if (!(s = token.valueOf("defaultvalue")).isEmpty())
p.default_value = s;
QCString typeref = token.valueOf("type");
if (! typeref.isEmpty()) {
if (p.dir == ReturnDirection) {
UmlTypeSpec ts;
if (setType(typeref, 0, ts))
set_ReturnType(ts);
}
else
(void) setType(typeref, params().count() + 1, p.type);
}
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if (s == "type") {
if (p.dir == ReturnDirection) {
UmlTypeSpec ts;
if (setType(token, 0, ts))
set_ReturnType(ts);
}
else
(void) setType(token, params().count() + 1, p.type);
}
else if (s == "defaultvalue")
p.default_value = token.valueOf("value");
else if (s == "ownedcomment")
in.bypassedId(token);
else {
in.bypass(token);
continue;
}
if (! token.closed())
in.finish(s);
}
}
if (p.dir != ReturnDirection)
UmlBaseOperation::addParameter(params().count(), p);
!!!210946.cpp!!! solve(in context : int, in idref : string) : void
UmlTypeSpec ts;
if (getType(idref, ts)) {
if (context == 0)
set_ReturnType(ts);
else if (context > 0) {
UmlParameter p = params()[context - 1];
p.type = ts;
replaceParameter(context - 1, p);
}
else
replaceException(- context + 1, ts);
}
else if (!FileIn::isBypassedId(idref))
UmlCom::trace("operation : unknown type reference '" + idref + "'<br>");
|