File: UmlBaseStateAction.cpp

package info (click to toggle)
bouml 4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,336 kB
  • ctags: 55,459
  • sloc: cpp: 290,644; makefile: 228; sh: 13
file content (74 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download | duplicates (29)
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

#include "UmlCom.h"
#include "UmlBaseStateAction.h"
#include "UmlStateAction.h"
#include "UmlState.h"

UmlStateAction * UmlBaseStateAction::create(UmlState * parent)
{
  return (UmlStateAction *) parent->create_(aStateAction, "");
}

anItemKind UmlBaseStateAction::kind() {
  return aStateAction;
}

const QCString & UmlBaseStateAction::expression() {
  read_if_needed_();
  return _uml;
}

bool UmlBaseStateAction::set_Expression(const char * s) {
  return set_it_(_uml, s, setDefCmd);
}

#ifdef WITHCPP
const QCString & UmlBaseStateAction::cppExpression() {
  read_if_needed_();
  return _cpp;
}

bool UmlBaseStateAction::set_CppExpression(const char * s) {
  return set_it_(_cpp, s, setCppDeclCmd);
}
#endif

#ifdef WITHJAVA
const QCString & UmlBaseStateAction::javaExpression() {
  read_if_needed_();
  return _java;
}

bool UmlBaseStateAction::set_JavaExpression(const char * s) {
  return set_it_(_java, s, setJavaDeclCmd);
}
#endif

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

void UmlBaseStateAction::read_uml_() {
  UmlBaseItem::read_uml_();
  _uml = UmlCom::read_string();
}

#ifdef WITHCPP
void UmlBaseStateAction::read_cpp_() {
  _cpp = UmlCom::read_string();
}
#endif

#ifdef WITHJAVA
void UmlBaseStateAction::read_java_() {
  _java = UmlCom::read_string();
}
#endif