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
|
#include "UmlCom.h"
#include "UmlBaseStateAction.h"
#include "UmlStateAction.h"
UmlStateAction * UmlBaseStateAction::create(UmlItem * 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
|