/usr/lib/bouml/rose/128017.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 | class Role
!!!128657.cpp!!! import(inout f : File) : void
f.read("(");
f.read("object");
f.read("Role");
if (f.read(name) != STRING)
f.syntaxError(name, "role name");
if (*name == '$')
// unnamed
name = "";
visibility = PublicVisibility;
is_navigable = FALSE;
is_aggregate = FALSE;
is_static = FALSE;
is_byvalue = FALSE;
QCString ste;
QCString s;
int k;
do {
k = f.readDefinitionBeginning(s, id, ste, doc, prop);
} while (id.isEmpty());
for (;;) {
switch (k) {
case ')':
target = 0;
return;
case ATOM:
break;
default:
f.syntaxError(s);
}
// atom
if (s == "quid") {
if (f.read(id) != STRING)
f.syntaxError(id, "quid value");
}
else if (s == "quidu") {
if (f.read(target_id) != STRING)
f.syntaxError(target_id, "quidu value");
target = (UmlClass *) UmlItem::findItem(target_id, aClass);
}
else if (s == "client_cardinality") {
f.read("(");
f.read("value");
f.read("cardinality");
if (f.read(cardinality) != STRING)
f.syntaxError(cardinality, "the cardinality");
f.read(")");
}
else if (s == "exportControl")
visibility = f.readVisibility();
else if (s == "is_navigable")
is_navigable = f.readBool();
else if (s == "is_aggregate")
is_aggregate = f.readBool();
else if (s == "Containment") {
if (f.read(s) != STRING)
f.syntaxError(s, "containment value");
is_byvalue = (s == "By Value");
}
else if (s == "static")
is_static = f.readBool();
else
f.skipNextForm();
k = f.read(s);
}
!!!128033.cpp!!! rel_kind(in bidir : bool) : aRelationKind
if (bidir) {
if (is_byvalue)
return anAggregationByValue;
if (is_aggregate)
return anAggregation;
return anAssociation;
}
if (is_byvalue)
return aDirectionalAggregationByValue;
if (is_aggregate)
return aDirectionalAggregation;
return aDirectionalAssociation;
|