69 lines
1.6 KiB
C++
69 lines
1.6 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: Figure; Pseudo Package body
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Figure.cpp
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
// Figure
|
|
|
|
#include "H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Figure.h"
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
// Class Figure
|
|
|
|
|
|
|
|
|
|
|
|
Figure::Figure()
|
|
|
|
//## begin Figure::Figure%.hasinit preserve=no
|
|
|
|
//## end Figure::Figure%.hasinit
|
|
|
|
//## begin Figure::Figure%.initialization preserve=yes
|
|
|
|
//## end Figure::Figure%.initialization
|
|
|
|
{
|
|
|
|
//## begin Figure::Figure%.body preserve=yes
|
|
|
|
//## end Figure::Figure%.body
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Figure::~Figure()
|
|
|
|
{
|
|
|
|
//## begin Figure::~Figure%.body preserve=yes
|
|
|
|
//## end Figure::~Figure%.body
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (implementation)
|
|
|
|
Color Figure::getColor ()
|
|
|
|
{
|
|
|
|
//## begin Figure::getColor%939623933.body preserve=yes
|
|
|
|
return color;
|
|
|
|
//## end Figure::getColor%939623933.body
|
|
|
|
}
|
|
|
|
|
|
|
|
void Figure::setColor (Color c)
|
|
|
|
{
|
|
|
|
//## begin Figure::setColor%939623934.body preserve=yes
|
|
|
|
color=c;
|
|
|
|
//## end Figure::setColor%939623934.body
|
|
|
|
}
|
|
|
|
|
|
|
|
// Additional Declarations
|
|
|
|
//## begin Figure.declarations preserve=yes
|
|
|
|
//## end Figure.declarations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|