first commit
This commit is contained in:
102
Lab6/pcircle.cpp
Normal file
102
Lab6/pcircle.cpp
Normal file
@@ -0,0 +1,102 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: Pcircle; Pseudo Package body
|
||||
|
||||
//## Subsystem: Figures
|
||||
|
||||
//## Source file: Pcircle.cpp
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Pcircle
|
||||
|
||||
#include "Pcircle.h"
|
||||
|
||||
#include "PStream.h"
|
||||
|
||||
#include "Point.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
void archive(int &i, PStream &ps);
|
||||
|
||||
void archive(Point& i, PStream &ps);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Persistent* Pcircle::_pobj = Persistent::addType("Pcircle", new Pcircle);
|
||||
|
||||
// ************** GAMMAL ******************
|
||||
|
||||
//IMPLEMENT_PERSISTENT(Pcircle);
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Class Pcircle
|
||||
|
||||
|
||||
|
||||
Pcircle::~Pcircle()
|
||||
|
||||
{
|
||||
|
||||
//## begin Pcircle::~Pcircle%.body preserve=yes
|
||||
|
||||
//## end Pcircle::~Pcircle%.body
|
||||
|
||||
}
|
||||
|
||||
Pcircle::Pcircle(int xPos, int yPos, int _radius, Color _color)
|
||||
|
||||
//## begin Pcircle::Pcircle%.hasinit preserve=no
|
||||
|
||||
//## end Pcircle::Pcircle%.hasinit
|
||||
|
||||
//## begin Pcircle::Pcircle%.initialization preserve=yes
|
||||
|
||||
//## end Pcircle::Pcircle%.initialization
|
||||
|
||||
{
|
||||
|
||||
//## begin Pcircle::Pcircle%.body preserve=yes
|
||||
|
||||
// Circle::Circle(xPos, yPos, _radius, _color);
|
||||
|
||||
|
||||
|
||||
_pobj = Persistent::addType("Pcircle", new Pcircle);
|
||||
|
||||
setCenter(xPos, yPos);
|
||||
|
||||
setRad(_radius);
|
||||
|
||||
Reference in New Issue
Block a user