File: UmlBaseAccessVariableValueAction.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 (25 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
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

#include "UmlCom.h"
#include "UmlBaseAccessVariableValueAction.h"
#include "UmlItem.h"

UmlItem * UmlBaseAccessVariableValueAction::variable() {
  read_if_needed_();
  return _variable;
}

bool UmlBaseAccessVariableValueAction::set_Variable(UmlItem * v) {
  UmlCom::send_cmd(_identifier, setDefCmd, (v == 0) ? (void *) v : ((UmlBaseItem *) v)->_identifier);
  if (UmlCom::read_bool()) {
    _variable = v;
    return TRUE;
  }
  else
    return FALSE;
}

void UmlBaseAccessVariableValueAction::read_uml_() {
  UmlBaseActivityAction::read_uml_();
  _variable = UmlBaseItem::read_();
}