Files
Avancerad_CPP/Lab6/prctngle.h
2026-03-05 13:16:26 +01:00

105 lines
2.5 KiB
C++

//## begin module.cm preserve=no
// %X% %Q% %Z% %W%
//## end module.cm
//## begin module.cp preserve=no
//## end module.cp
//## Module: Prectangle; Pseudo Package specification
//## Subsystem: Figures
//## Source file: Prctngle.h
#ifndef Prctngle_h
#define Prctngle_h 1
//## begin module.additionalIncludes preserve=no
//## end module.additionalIncludes
//## begin module.includes preserve=yes
//## end module.includes
// Rectangle
#include "Rectngle.h"
// PersFig
#include "PersFig.h"
//## begin module.additionalDeclarations preserve=yes
#include "PStream.h"
#include "Point.h"
//## begin module.additionalDeclarations preserve=yes
void archive(int &i, PStream &ps);
void archive(Point& i, PStream &ps);
//## end module.additionalDeclarations
//## Class: Prectangle
//## Category: Persist
//## Subsystem: Figures
//## Persistence: Transient
//## Cardinality/Multiplicity: n
class Prectangle : public PersFig, //## Inherits: <unnamed>
public Rectangle //## Inherits: <unnamed>
{
//## begin Prectangle.initialDeclarations preserve=yes
//## end Prectangle.initialDeclarations
public:
//## Constructors (generated)
Prectangle();
Prectangle(int x1, int y1, int x2, int y2, Color c);
Prectangle(const Prectangle &src);
//## Destructor (generated)
~Prectangle();
//## Other Operations (specified)
//## Operation: archive%940866981
void archive (PStream &ps);
char* name() const {
return "Prectangle";
}
Persistent* clone1() const {
return new Prectangle(*this);
}
Figure* clone() const {
return new Prectangle(*this);
}
static Persistent* _pobj;
// Additional Public Declarations
//## begin Prectangle.public preserve=yes
//## end Prectangle.public
protected:
// Additional Protected Declarations
//## begin Prectangle.protected preserve=yes
//## end Prectangle.protected
private:
// Additional Private Declarations
//## begin Prectangle.private preserve=yes
//## end Prectangle.private
private: //## implementation
// Additional Implementation Declarations
//## begin Prectangle.implementation preserve=yes
//## end Prectangle.implementation
};
//## begin Prectangle.postscript preserve=yes
//## end Prectangle.postscript
// Class Prectangle
//## begin module.epilog preserve=yes
//## end module.epilog
#endif