File: UmlUseCase.cpp

package info (click to toggle)
bouml 4.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 64,396 kB
  • ctags: 49,113
  • sloc: cpp: 244,497; makefile: 219
file content (52 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (2)
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

#include "UmlUseCase.h"

#include "UmlUseCaseDiagram.h"
QCString UmlUseCase::sKind() {
  return "use case";
}

void UmlUseCase::html(QCString pfix, unsigned int rank, unsigned int level) {
  UmlItem::html(pfix, rank, "Use Case", level, "usecase");
    
  QCString ep = extensionPoints();
  
  if (! ep.isEmpty()) {
    fw.write("<p>Extension points:<br /><div class=\"sub\">");
    writeq(ep);
    fw.write("</div></p>\n");
  }

  UmlDiagram * d = associatedDiagram();
  
  if (d != 0) {
    fw.write("<p>Diagram : ");
    d->write();
    fw.write("</p>\n");
  }

  unload(FALSE, FALSE);
}

void UmlUseCase::memo_ref() {
  usecases.addElement(this);
  UmlItem::memo_ref();
}

void UmlUseCase::ref_index()
{
  if (!usecases.isEmpty())
    fw.write("<a href=\"usecases.html\" target = \"projectFrame\"><b> -Use Cases- </b></a>");
}

void UmlUseCase::generate_index()
{
  UmlItem::generate_index(usecases, "Use Cases", "usecases");
}

bool UmlUseCase::chapterp() {
  return TRUE;
}

Vector UmlUseCase::usecases;