File: UmlBaseTransition.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 (139 lines) | stat: -rw-r--r-- 2,926 bytes parent folder | download | duplicates (19)
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

#include "UmlCom.h"
#include "UmlBaseTransition.h"
#include "UmlTransition.h"

anItemKind UmlBaseTransition::kind() {
  return aTransition;
}

UmlTransition * UmlBaseTransition::create(UmlItem * start, UmlItem * end)
{
  UmlCom::send_cmd(start->_identifier, createCmd, aTransition,
		   end->_identifier);
  UmlTransition * result = (UmlTransition *) UmlBaseItem::read_();

  if (result != 0)
    start->reread_children_if_needed_();
  return result;
}

UmlItem * UmlBaseTransition::target() {
  read_if_needed_();
  return _target;
}

const QCString & UmlBaseTransition::trigger() {
  read_if_needed_();
  return _uml.trigger;
}

bool UmlBaseTransition::set_Trigger(const char * s) {
  return set_it_(_uml.trigger, s, setUmlTriggerCmd);
}

const QCString & UmlBaseTransition::guard() {
  read_if_needed_();
  return _uml.guard;
}

bool UmlBaseTransition::set_Guard(const char * s) {
  return set_it_(_uml.guard, s, setUmlGuardCmd);
}

const QCString & UmlBaseTransition::activity() {
  read_if_needed_();
  return _uml.activity;
}

bool UmlBaseTransition::set_Activity(const char * s) {
  return set_it_(_uml.activity, s, setUmlActivityCmd);
}

#ifdef WITHCPP
const QCString & UmlBaseTransition::cppTrigger() {
  read_if_needed_();
  return _cpp.trigger;
}

bool UmlBaseTransition::set_CppTrigger(const char * s) {
  return set_it_(_cpp.trigger, s, setCppTriggerCmd);
}

const QCString & UmlBaseTransition::cppGuard() {
  read_if_needed_();
  return _cpp.guard;
}

bool UmlBaseTransition::set_CppGuard(const char * s) {
  return set_it_(_cpp.guard, s, setCppGuardCmd);
}

const QCString & UmlBaseTransition::cppActivity() {
  read_if_needed_();
  return _cpp.activity;
}

bool UmlBaseTransition::set_CppActivity(const char * s) {
  return set_it_(_cpp.activity, s, setCppActivityCmd);
}
#endif

#ifdef WITHJAVA
const QCString & UmlBaseTransition::javaTrigger() {
  read_if_needed_();
  return _java.trigger;
}

bool UmlBaseTransition::set_JavaTrigger(const char * s) {
  return set_it_(_java.trigger, s, setJavaTriggerCmd);
}

const QCString & UmlBaseTransition::javaGuard() {
  read_if_needed_();
  return _java.guard;
}

bool UmlBaseTransition::set_JavaGuard(const char * s) {
  return set_it_(_java.guard, s, setJavaGuardCmd);
}

const QCString & UmlBaseTransition::javaActivity() {
  read_if_needed_();
  return _java.activity;
}

bool UmlBaseTransition::set_JavaActivity(const char * s) {
  return set_it_(_java.activity, s, setJavaActivityCmd);
}
#endif

void UmlBaseTransition::unload(bool rec, bool del) {
  _uml.unload();
#ifdef WITHCPP
  _cpp.unload();
#endif
#ifdef WITHJAVA
  _java.unload();
#endif
  UmlBaseItem::unload(rec, del);
}

void UmlBaseTransition::read_uml_() {
  UmlBaseItem::read_uml_();
  _target = UmlBaseItem::read_();
  _uml.read();
}

#ifdef WITHCPP
void UmlBaseTransition::read_cpp_() {
  _cpp.read();
}
#endif

#ifdef WITHJAVA
void UmlBaseTransition::read_java_() {
  _java.read();
}
#endif