107 lines
2.4 KiB
C++
107 lines
2.4 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: Pcircle; Pseudo Package specification
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Source file: Pcircle.h
|
|
|
|
|
|
|
|
#ifndef Pcircle_h
|
|
|
|
#define Pcircle_h 1
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
// Circle
|
|
|
|
#include "Circle.h"
|
|
|
|
// PersFig
|
|
|
|
#include "PersFig.h"
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
//## Class: Pcircle
|
|
|
|
//## Category: Persist
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Persistence: Transient
|
|
|
|
//## Cardinality/Multiplicity: n
|
|
|
|
|
|
|
|
class Pcircle : public Circle, public PersFig //## Inherits: <unnamed>
|
|
|
|
|
|
|
|
|
|
|
|
//## Inherits: <unnamed>
|
|
|
|
{
|
|
|
|
//## begin Pcircle.initialDeclarations preserve=yes
|
|
|
|
//## end Pcircle.initialDeclarations
|
|
|
|
|
|
|
|
public:
|
|
|
|
//## Constructors (generated)
|
|
|
|
|
|
|
|
Pcircle(){};
|
|
|
|
Pcircle(int xPos, int yPos, int _radius, Color _color);
|
|
|
|
Pcircle(const Pcircle &src);
|
|
|
|
|
|
|
|
//## Destructor (generated)
|
|
|
|
~Pcircle();
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (specified)
|
|
|
|
//## Operation: archive%940866975
|
|
|
|
void archive (PStream& ps);
|
|
|
|
|
|
|
|
// Additional Public Declarations
|
|
|
|
//## begin Pcircle.public preserve=yes
|
|
|
|
|
|
|
|
char* name() const {
|
|
|
|
return "Pcircle";
|
|
|
|
}
|
|
|
|
Persistent* clone1() const {
|
|
|
|
return new Pcircle(*this);
|
|
|
|
}
|
|
|
|
Figure* clone() const {
|
|
|
|
return new Pcircle(*this);
|
|
|
|
}
|
|
|
|
static Persistent* _pobj;
|
|
|
|
|
|
|
|
// ************** GAMMAL ******************
|
|
|
|
// DECLARE_PERSISTENT(Pcircle);
|
|
|
|
|
|
|
|
//## end Pcircle.public
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Additional Protected Declarations
|
|
|
|
//## begin Pcircle.protected preserve=yes
|
|
|
|
//## end Pcircle.protected
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Additional Private Declarations
|
|
|
|
//## begin Pcircle.private preserve=yes
|
|
|
|
//## end Pcircle.private
|
|
|
|
|
|
|
|
private: //## implementation
|
|
|
|
// Additional Implementation Declarations
|
|
|
|
//## begin Pcircle.implementation preserve=yes
|
|
|
|
//## end Pcircle.implementation
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//## begin Pcircle.postscript preserve=yes
|
|
|
|
//## end Pcircle.postscript
|
|
|
|
|
|
|
|
// Class Pcircle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|