/usr/lib/bouml/xmi2import/128386.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 | class UmlState
!!!197250.cpp!!! container(in kind : anItemKind, in token : Token, inout in : FileIn) : UmlItem
switch (kind) {
case aState:
case aRegion:
case anInitialPseudoState:
case anEntryPointPseudoState:
case aFinalState:
case aTerminatePseudoState:
case anExitPointPseudoState:
case aDeepHistoryPseudoState:
case aShallowHistoryPseudoState:
case aJunctionPseudoState:
case aChoicePseudoState:
case aForkPseudoState:
case aJoinPseudoState:
return this;
default:
return parent()->container(kind, token, in);
}
!!!293763.cpp!!! importActivity(inout in : FileIn, inout token : Token) : void
QCString k = token.what();
const char * kstr = k;
QCString b = token.valueOf("body");
if (b.isEmpty()) {
if (! token.closed()) {
while (in.read(), !token.close(kstr)) {
QCString s = token.what();
if (s == "body") {
b = in.body("body");
in.finish(k);
break;
}
else if ((s == "node") &&
(token.xmiType() == "uml:CallOperationAction")) {
s = token.valueOf("operation");
if (! s.isEmpty()) {
if (k == "entry")
UnresolvedWithContext::add(this, s, 0);
else if (k == "exit")
UnresolvedWithContext::add(this, s, 1);
else
UnresolvedWithContext::add(this, s, 2);
}
if (! token.closed())
in.finish("node");
in.finish(k);
return;
}
else if (! token.closed())
in.finish(s);
}
}
}
else if (! token.closed())
in.finish(k);
if (! b.isEmpty()) {
if (k == "entry")
set_EntryBehavior(b);
else if (k == "exit")
set_ExitBehavior(b);
else
set_DoActivity(b);
}
!!!293891.cpp!!! solve(in context : int, in idref : string) : void
QMap<QCString, UmlItem *>::Iterator it = All.find(idref);
if (it == All.end()) {
if (!FileIn::isBypassedId(idref))
UmlCom::trace("state : unknown operation reference '" + idref + "'<br>");
}
else if ((*it)->kind() == anOperation) {
if (context == 3)
set_Specification((UmlOperation *) *it);
else {
QCString b = (*it)->name() + "()";
switch(context) {
case 0:
set_EntryBehavior(b);
break;
case 1:
set_ExitBehavior(b);
break;
default:
set_DoActivity(b);
break;
}
}
}
!!!192386.cpp!!! init() : void
declareFct("ownedmember", "uml:StateMachine", &importIt);
declareFct("packagedelement", "uml:StateMachine", &importIt);
declareFct("subvertex", "uml:State", &importIt);
declareFct("ownedstatemachine", "", &importIt); // andromda emf
declareFct("ownedbehavior", "uml:StateMachine", &importIt); // magic draw
UmlRegion::init();
UmlPseudoState::init();
UmlFinalState::init();
UmlTransition::init();
!!!196866.cpp!!! importIt(inout in : FileIn, inout token : Token, inout where : UmlItem) : void
where = where->container(aState, token, in);
if (where != 0) {
bool machine = ((token.xmiType() == "uml:StateMachine") ||
(token.valueOf("issubmachinestate") == "true") ||
(token.what() == "ownedstatemachine")); // andromda emf
QCString s = token.valueOf("name");
if (s.isEmpty()) {
static unsigned n = 0;
s.sprintf((machine) ? "anonymous_state_machine_%u"
: "anonymous_state_%u",
++n);
}
UmlState * st = create(where, s);
if (st == 0)
in.error((machine) ? "cannot create state machine '"
: "cannot create state '"
+ s + "' in '" + where->name() + "'");
st->addItem(token.xmiId(), in);
if (token.valueOf("isactive") == "true")
st->set_isActive(TRUE);
QCString spec = token.valueOf("specification");
if (! token.closed()) {
QCString k = token.what();
const char * kstr = k;
while (in.read(), !token.close(kstr)) {
s = token.what();
if ((s == "entry") || (s == "doactivity") || (s == "exit"))
st->importActivity(in, token);
else if (s == "specification") {
spec = token.xmiIdref();
if (! token.closed())
in.finish(s);
}
else
st->UmlItem::import(in, token);
}
}
if (machine)
st->set_Stereotype("machine");
if (! spec.isEmpty()) {
QMap<QCString, UmlItem *>::Iterator it = All.find(spec);
if (it == All.end())
UnresolvedWithContext::add(st, spec, 3);
else if ((*it)->kind() == anOperation)
st->set_Specification((UmlOperation *) *it);
}
st->unload(TRUE, FALSE);
}
|