This file is indexed.

/usr/lib/bouml/rose/128002.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
class Artifact
!!!128130.cpp!!!	find(in uid : string) : Artifact
  return all[uid];
!!!128258.cpp!!!	import_component_view(inout f : File) : void
  QCString s;
  
  f.read(s);
  
  for (;;) {
    switch (f.read(s)) {
    case ATOM:
      break;
    case ')':
      return;
    case -1:
      f.eof();
      throw 0;
    default:
      f.syntaxError(s, "an atom");
    }
    
    if (s == "visible_modules") {
      // module dependency
      f.skipNextForm();
      /*f.read("(");
      f.read("list");
      f.read("dependency_list");
      ...*/
    }
    else if (s == "physical_models") {
      f.read("(");
      f.read("list");
      f.read("unit_reference_list");
      import_components(f);
    }
    else if (s == "physical_presentations") {
      // diagrams
      f.skipNextForm();
    }
    else if (s == "file_name") {
      if (f.read(s) != STRING)
	f.syntaxError(s, "a filename");
      
      File f2(s, f.name());
      
      if (! f2.open(IO_ReadOnly))
	UmlCom::trace("<br>cannot open '" + s + "' referenced in "
		      + QCString(f.name()));
      else {     
        f2.read("(");
        f2.read("object");
        f2.read("Petal");
        f2.skipBlock();
      
        f2.read("(");
        f2.read("object");
        f2.read("SubSystem");
        import_component_view(f2);
      }

      f.skipBlock();
      return;
    }
    else
      f.skipNextForm();
  }
!!!128386.cpp!!!	import_components(inout f : File) : void
  for (;;) {
    QCString s;
  
    switch (f.read(s)) {
    case '(':
      break;
    case ')':
      return;
    case -1:
      f.eof();
      throw 0;
    default:
      f.syntaxError(s);
    }

    f.read("object");
    
    switch (f.read(s)) {
    case ATOM:
      break;
    case -1:
      f.eof();
      throw 0;
    default:
      f.syntaxError(s, "an atom");
    }

    if (s == "module")
      import(f);
    else if (s == "SubSystem")
      import_component_view(f);
    else {
#ifdef DEBUGROSE
      UmlCom::trace("<br>import does not manage '" + s + "'");
#endif
      f.skipBlock();
    }
  }
!!!128514.cpp!!!	import(inout f : File) : void
  QCString name;
  
  if (f.read(name) != STRING)
    f.syntaxError(name, "artifact's name");
  
  QCString s;
  
  f.read(s);
  f.read(s);
    
  QCString id;
  QCString ste;
  QCString doc;
  QDict<QCString> prop;
  Language lang = None;
  
  while (f.readDefinitionBeginning(s, id, ste, doc, prop) != ')') {
    // atom
    if (s == "language")
      lang = f.readLanguage();
  }

  // may already exist because of "visible_modules"
  Artifact * art = all[id];
  
  if (art == 0) {
    art = new Artifact;
    all.insert(strdup(id), art);
  }

  art->name = name;
  art->stereotype = ste;
  art->description = doc;
  art->language = lang;
  
  QCString * v;
  
  switch (lang) {
  case Cplusplus:
    if ((v = prop.find("Traversal/CodeFile")) != 0)
      art->cpp_path = *v;
    break;
  case AnsiCplusplus:
    if ((v = prop.find("Cplusplus/RevEngRootDirectory")) != 0)
      art->cpp_path = *v;
    break;
  case VCplusplus:
    break;
  case Java:
    if ((v = prop.find("Java/FileName")) != 0)
      art->java_path = *v;
    break;
  default:
    break;
  }
!!!128770.cpp!!!	add(inout pack : UmlPackage, inout cl : UmlClass, inout art_path : string) : void
  //pack, cl

  switch (language) {
  case Cplusplus:
    // cpp_path is the header pathname
    {
      int index = cpp_path.findRev('.');
      
      if (index != -1) {
	QCString s = cpp_path.left(index + 1);
	
	add_cpp(pack, cl,
		s + CppSettings::headerExtension(),
		s + CppSettings::sourceExtension());
      }
    }
    break;
  case AnsiCplusplus:
    // cl's header and body files may contains a path part
    {
      QDir d(cpp_path);
      QCString h = cl->file();
      QCString body = cl->bodyFile();
      
      add_cpp(pack, cl,
	      (h.isEmpty()) ? h : QCString(QDir::cleanDirPath(d.filePath(cl->file()))),
	      (body.isEmpty()) ? body : QCString(QDir::cleanDirPath(d.filePath(cl->bodyFile()))));
    }
    break;
  case Corba:
    // no info
    add_corba(pack, cl, name + "." + IdlSettings::sourceExtension());
    break;
  case Java:
    // java_path is the pathname
    {
      int index = java_path.findRev('.');
      
      if (index != -1)
	add_java(pack, cl, art_path,
		 java_path.left(index + 1) + JavaSettings::sourceExtension());
    }
    break;
  default:
    break;
  }
!!!129154.cpp!!!	add_cpp(inout pack : UmlPackage, inout cl : UmlClass, inout h : string, inout src : string) : void
  QCString basename;
  QCString hpath;
  QCString srcpath;
  
  if (! h.isEmpty()) {
    h = normalize(h, CppSettings::rootDir());
    
    QFileInfo fi(h);
    
    basename = fi.baseName();
    hpath = fi.dirPath();
  }

  if (! src.isEmpty()) {
    src = normalize(src, CppSettings::rootDir());
    
    QFileInfo fi(src);
    
    if (basename.isEmpty())
      basename = fi.baseName();
    srcpath = fi.dirPath();
  }

  if (basename.isEmpty())
    return;

  QList<UmlArtifact> artifacts;
  UmlArtifact * art;
  UmlPackage * p = 0;	// to avoid compiler warning
  
  pack->subArtifacts(artifacts, basename, name);
  
  // search for an existing artifact
  for (art = artifacts.first(); art != 0; art = artifacts.next()) {
    p = (UmlPackage *) art->parent()->parent();
    if ((hpath.isEmpty() || p->cppHDir().isEmpty() || (hpath == p->cppHDir())) &&
	(srcpath.isEmpty() || p->cppSrcDir().isEmpty() || (srcpath == p->cppSrcDir()))) {
      // p & art compatible
      break;
    }
  }

  if (art == 0) {
    // no compatible artifact
    QList<UmlDeploymentView> deplviews;
    UmlDeploymentView * deplview;
    UmlPackage * compatible = 0;
    
    pack->subDeplViews(deplviews, name);

    if (deplviews.isEmpty()) {
      if ((hpath.isEmpty() || pack->cppHDir().isEmpty() || (hpath == pack->cppHDir())) &&
	  (srcpath.isEmpty() || pack->cppSrcDir().isEmpty() || (srcpath == pack->cppSrcDir())))
	// pack compatible
	compatible = pack;
    }
    else {
      for (deplview = deplviews.first(); deplview != 0; deplview = deplviews.next()) {
	p = (UmlPackage *) deplview->parent();
	
	if ((hpath.isEmpty() || p->cppHDir().isEmpty() || (hpath == p->cppHDir())) &&
	    (srcpath.isEmpty() || p->cppSrcDir().isEmpty() || (srcpath == p->cppSrcDir()))) {
	  // p is compatible
	  compatible = p;
	  art = UmlArtifact::create(deplview, basename);
	  
	  if (art != 0) {
	    art->set_Stereotype("source");
	    break;
	  }
	}
      }
    }
    
    if (art == 0) {
      if (compatible == 0) {
	// must create a package to have the right paths
	p = pack->addPackage(pack->name());
	p->set_CppNamespace(pack->cppNamespace());
      }
      else
	p = compatible;
      
      // must create a artifact view
      deplview = pack->addDeplView(name, p);
      art = UmlArtifact::create(deplview, basename);
      art->set_Stereotype("source");
    }
  }

  // art is the artifact, p its associated package
    
  if (!hpath.isEmpty()) {
    if (p->cppHDir().isEmpty())
      p->set_CppHDir(hpath);
    if (art->cppHeader().isEmpty())
      art->set_CppHeader(CppSettings::headerContent());
  }

  if (!srcpath.isEmpty()) {
    if (p->cppSrcDir().isEmpty())
      p->set_CppSrcDir(srcpath);
    if (art->cppSource().isEmpty())
      art->set_CppSource(CppSettings::sourceContent());
  }
    
  art->addAssociatedClass(cl);
!!!129282.cpp!!!	add_corba(inout pack : UmlPackage, inout cl : UmlClass, inout src : string) : void
  // src if the filename without path
  QFileInfo fi(src);
  QCString basename;
  
  basename = fi.baseName();
  
  QList<UmlArtifact> artifacts;
  UmlArtifact * art;
  UmlPackage * p;
  
  // search for an existing artifact
  pack->subArtifacts(artifacts, basename, name);
  if (! artifacts.isEmpty()) {
    p = pack;
    art = artifacts.first();
  }
  else {
    QList<UmlDeploymentView> deplviews;
    UmlDeploymentView * deplview;
    
    pack->subDeplViews(deplviews, name);
    art = 0;
    
    for (deplview = deplviews.first(); deplview != 0; deplview = deplviews.next()) {
      if ((art = UmlArtifact::create(deplview, basename)) != 0) {
	art->set_Stereotype("source");
	p = (UmlPackage *) deplview->parent();
	break;
      }
    }
      
    if (art == 0) {
      // must create a deployment view
      deplview = pack->addDeplView(name, pack);
      art = UmlArtifact::create(deplview, basename);
      art->set_Stereotype("source");
      p = pack;
    }
  }

  // art is the artifact, p its associated package
    
  if (art->idlSource().isEmpty())
      art->set_IdlSource(IdlSettings::sourceContent());
    
  art->addAssociatedClass(cl);
!!!129410.cpp!!!	add_java(inout pack : UmlPackage, inout cl : UmlClass, in art_path : string, in src : string) : void
  QCString basename;
  QCString srcpath;
  
  src = normalize(src, JavaSettings::rootDir());
    
  QFileInfo fi(src);
    
  basename = fi.baseName();
  srcpath = fi.dirPath();
  
  // manage java package using the artifact path
  int index;
  
  if ((index = art_path.find("::")) != -1) {
    // mandatory : Component View::
    art_path = art_path.mid(index + 2);
    
    if ((index = art_path.findRev("::")) != -1) {
      // pack::...::file, remove ::file
      art_path = art_path.left(index);
      
      while ((index = art_path.findRev("::")) != -1)
	// :: -> .
	art_path = art_path.left(index) + "." + art_path.mid(index + 2);
    }
  }

  QList<UmlArtifact> artifacts;
  UmlArtifact * art;
  UmlPackage * p = 0;	// to avoid compiler warning
  
  pack->subArtifacts(artifacts, basename, "java deployment view");
  
  // search for an existing artifact
  for (art = artifacts.first(); art != 0; art = artifacts.next()) {
    p = (UmlPackage *) art->parent()->parent();
    if ((srcpath.isEmpty() || p->javaDir().isEmpty() || (srcpath == p->javaDir())) &&
	(p->javaPackage() == art_path)) {
      // p & art compatible
      break;
    }
  }

  if (art == 0) {
    // no compatible artifact
    QList<UmlDeploymentView> deplviews;
    UmlDeploymentView * deplview;
    UmlPackage * compatible = 0;
    
    pack->subDeplViews(deplviews, "java deployment view");

    if (deplviews.isEmpty()) {
      if (srcpath.isEmpty() || pack->javaDir().isEmpty() || (srcpath == pack->javaDir()))
	// pack compatible
	compatible = pack;
    }
    else {
      for (deplview = deplviews.first(); deplview != 0; deplview = deplviews.next()) {
	p = (UmlPackage *) deplview->parent();
	
	if ((srcpath.isEmpty() || p->javaDir().isEmpty() || (srcpath == p->javaDir())) &&
	    (p->javaPackage() == art_path)) {
	  // p is compatible
	  compatible = p;
	  art = UmlArtifact::create(deplview, basename);
	  
	  if (art != 0) {
	    art->set_Stereotype("source");
	    break;
	  }
	}
      }
    }
    
    if (art == 0) {
      if (compatible == 0) {
	// must create a package to have the right paths
	p = pack->addPackage("java package");
      }
      else
	p = compatible;
      
      // must create a artifact view
      deplview = pack->addDeplView("java deployment view", p);
      art = UmlArtifact::create(deplview, basename);
      art->set_Stereotype("source");
    }
  }

  // art is the artifact, p its associated package

  if (!srcpath.isEmpty()) {
    if (p->javaDir().isEmpty())
      p->set_JavaDir(srcpath);
    if (art->javaSource().isEmpty())
      art->set_JavaSource(IdlSettings::sourceContent());
  }
  if (p->javaPackage() != art_path)
    p->set_JavaPackage(art_path);
    
  art->addAssociatedClass(cl);
!!!129538.cpp!!!	normalize(inout path : string, in root : string) : string
  File f(path, "");	// normalize, replace $var
  
  path = QCString(f.name());
  
  int rl = root.length();
  
  if (rl != 0) {
    if (root[rl-1] != '/') {
      root += '/';
      rl += 1;
    }
    
    if (path.left(rl) == root)
      return path.mid(rl);
  }

  return path;