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
|
#include "UmlCom.h"
#include "UmlBaseActivityPartition.h"
#include "UmlActivityPartition.h"
#include "UmlActivityDiagram.h"
UmlActivityPartition * UmlBaseActivityPartition::create(UmlItem * parent, const char * s)
{
return (UmlActivityPartition *) parent->create_(aPartition, s);
}
anItemKind UmlBaseActivityPartition::kind() {
return aPartition;
}
UmlActivityDiagram * UmlBaseActivityPartition::associatedDiagram() {
read_if_needed_();
return _assoc_diagram;
}
bool UmlBaseActivityPartition::set_AssociatedDiagram(UmlActivityDiagram * d) {
UmlCom::send_cmd(_identifier, setAssocDiagramCmd, (d == 0) ? (void *) 0 : ((UmlBaseItem *) d)->_identifier);
if (UmlCom::read_bool()) {
_assoc_diagram = d;
return TRUE;
}
else
return FALSE;
}
bool UmlBaseActivityPartition::isDimension() {
read_if_needed_();
return _dimension;
}
bool UmlBaseActivityPartition::set_isDimension(bool v) {
return set_it_(_dimension, v, setMultiplicityCmd);
}
bool UmlBaseActivityPartition::isExternal() {
read_if_needed_();
return _external;
}
bool UmlBaseActivityPartition::set_isExternal(bool v) {
return set_it_(_external, v, setIsCppExternalCmd);
}
UmlItem * UmlBaseActivityPartition::represents() {
read_if_needed_();
return _represents;
}
bool UmlBaseActivityPartition::set_Represents(UmlItem * v) {
UmlCom::send_cmd(_identifier, setDerivedCmd, (v == 0) ? (void *) v : ((UmlBaseItem *) v)->_identifier);
if (UmlCom::read_bool()) {
_represents = v;
return TRUE;
}
else
return FALSE;
}
void UmlBaseActivityPartition::read_uml_() {
_assoc_diagram = (UmlActivityDiagram *) UmlBaseItem::read_();
UmlBaseItem::read_uml_();
_dimension = UmlCom::read_bool();
_external = UmlCom::read_bool();
_represents = (UmlItem *) UmlBaseItem::read_();
}
|