/usr/lib/bouml/rose/5889.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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | class UmlAttribute
!!!128748.cpp!!! import(inout f : File) : void
if (scanning) {
f.skipBlock();
return;
}
QCString s;
UmlTypeSpec t;
for (;;) {
switch (f.read(s)) {
case ')':
set_Type(t);
return;
case ATOM:
break;
default:
f.syntaxError(s);
}
// atom
if (s == "type") {
if (f.read(s) != STRING)
f.syntaxError(s, "attribute type");
t.explicit_type = s;
}
else if (s == "initv") {
if (f.read(s) != STRING)
f.syntaxError(s, "attribute initial value");
s = "= " + s;
set_DefaultValue(s);
}
else if (s == "static")
set_isClassMember(f.readBool());
else if (s == "quidu") {
if (f.read(s) != STRING)
f.syntaxError(s, "wrong quidu");
if (UmlClass::replaceType(t, s, "${type}")) {
switch (((UmlClass *) parent())->language()) {
case Cplusplus:
case AnsiCplusplus:
case VCplusplus:
set_CppDecl(replace(cppDecl(), "${type}", s));
break;
case Oracle8:
break;
case Corba:
set_IdlDecl(replace(idlDecl(), "${type}", s));
break;
case Java:
set_JavaDecl(replace(javaDecl(), "${type}", s));
break;
default:
break;
}
}
}
else if (s == "exportControl")
set_Visibility(f.readVisibility());
else
f.skipNextForm();
}
!!!128308.cpp!!! import(inout f : File, inout parent : UmlClass) : void
QCString s;
if (f.read(s) != STRING)
f.syntaxError(s, "attributes's name");
QCString id;
QCString ste;
QCString doc;
QDict<QCString> prop;
QCString s2;
int k;
do {
k = f.readDefinitionBeginning(s2, id, ste, doc, prop);
} while (id.isEmpty());
UmlAttribute * x;
if (scanning) {
if ((x = UmlBaseAttribute::create(parent, legalName(s))) == 0) {
UmlCom::trace("<br>cannot create attribute '" + s + "' in " +
parent->fullName());
throw 0;
}
newItem(x, id);
if (!ste.isEmpty())
x->set_Stereotype(ste);
if (!doc.isEmpty())
x->set_Description(doc);
}
else if ((x = (UmlAttribute *) findItem(id, anAttribute)) == 0) {
UmlCom::trace("<br>unknown attribute '" + s + "' in " +
parent->fullName());
throw 0;
}
else {
switch (((UmlClass *) x->parent())->language()) {
case Cplusplus:
case AnsiCplusplus:
case VCplusplus:
x->cplusplus(prop);
break;
case Oracle8:
x->oracle8(prop);
break;
case Corba:
x->corba(prop);
break;
case Java:
x->java(prop);
break;
default:
break;
}
x->setProperties(prop);
}
f.unread(k, s2);
x->import(f);
!!!128124.cpp!!! importIdlConstant(inout parent : UmlClass, in id : string, in s : string, in doc : string, inout prop : string) : void
UmlAttribute * x;
if ((x = UmlBaseAttribute::create(parent, legalName(s))) == 0) {
UmlCom::trace("<br>cannot create attribute '" + s + "' in " +
parent->fullName());
throw 0;
}
newItem(x, id);
if (!doc.isEmpty())
x->set_Description(doc);
x->set_IdlDecl(IdlSettings::constDecl());
QCString * v;
if ((v = prop.find("CORBA/ImplementationType")) != 0) {
if (!v->isEmpty()) {
UmlTypeSpec t;
t.explicit_type = *v;
x->set_Type(t);
}
prop.remove("CORBA/ImplementationType");
}
if ((v = prop.find("CORBA/ConstValue")) != 0) {
if (!v->isEmpty()) {
*v = "= " + *v;
x->set_DefaultValue(*v);
}
prop.remove("CORBA/ConstValue");
}
x->setProperties(prop);
!!!128459.cpp!!! cplusplus(inout prop : string) : void
set_CppDecl((parent()->stereotype() == "enum")
? CppSettings::enumItemDecl()
: CppSettings::attributeDecl());
!!!128203.cpp!!! corba(inout prop : string) : void
QCString * v;
QCString decl;
if (parent()->stereotype() == "union")
decl = IdlSettings::unionItemDecl();
else if (parent()->stereotype() == "enum")
decl = IdlSettings::enumItemDecl();
else
decl = IdlSettings::attributeDecl();
if ((v = prop.find("CORBA/IsReadOnly")) != 0) {
if (*v == "TRUE")
set_isReadOnly(TRUE);
prop.remove("CORBA/IsReadOnly");
}
if ((v = prop.find("CORBA/CaseSpecifier")) != 0) {
set_IdlCase(*v); // !!!!!!!!!!! chercher union attr
prop.remove("CORBA/CaseSpecifier");
}
if ((v = prop.find("CORBA/ArrayDimensions")) != 0) {
if (!v->isEmpty()) {
int index;
if ((index = decl.find("${name}")) != -1)
decl.insert(index + 7, "[" + *v + "]");
}
prop.remove("CORBA/ArrayDimensions");
}
set_IdlDecl(decl);
!!!128075.cpp!!! java(inout prop : string) : void
QCString * v;
if ((v = prop.find("Java/Final")) != 0) {
if (*v == "TRUE")
set_isReadOnly(TRUE);
prop.remove("Java/Final");
}
if ((v = prop.find("Java/Transient")) != 0) {
if (*v == "TRUE")
set_isJavaTransient(TRUE);
prop.remove("Java/Transient");
}
if ((v = prop.find("Java/Volatile")) != 0) {
if (*v == "TRUE")
set_isVolatile(TRUE);
prop.remove("Java/Volatile");
}
set_JavaDecl(JavaSettings::attributeDecl());
|