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
|
#include "UmlBaseComponent.h"
#include "UmlComponent.h"
#include "UmlComponentView.h"
#include "UmlComponentDiagram.h"
#include "UmlCom.h"
UmlComponent * UmlBaseComponent::create(UmlComponentView * parent, const char * s)
{
return (UmlComponent *) parent->create_(aComponent, s);
}
anItemKind UmlBaseComponent::kind() {
return aComponent;
}
UmlComponentDiagram * UmlBaseComponent::associatedDiagram() {
read_if_needed_();
return _assoc_diagram;
}
bool UmlBaseComponent::set_AssociatedDiagram(UmlComponentDiagram * d) {
UmlCom::send_cmd(_identifier, setAssocDiagramCmd, ((UmlBaseItem *) d)->_identifier);
if (UmlCom::read_bool()) {
_assoc_diagram = d;
return TRUE;
}
else
return FALSE;
}
void UmlBaseComponent::read_uml_() {
_assoc_diagram = (UmlComponentDiagram *) UmlBaseItem::read_();
UmlBaseItem::read_uml_();
}
|