102 lines
2.3 KiB
C++
102 lines
2.3 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: Point; Pseudo Package specification
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Source file: Point.h
|
|
|
|
|
|
|
|
#ifndef Point_h
|
|
|
|
#define Point_h 1
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
//## Class: Point
|
|
|
|
//## Category: Figures
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Persistence: Transient
|
|
|
|
//## Cardinality/Multiplicity: n
|
|
|
|
|
|
|
|
class Point
|
|
|
|
{
|
|
|
|
//## begin Point.initialDeclarations preserve=yes
|
|
|
|
//## end Point.initialDeclarations
|
|
|
|
|
|
|
|
public:
|
|
|
|
//## Constructors (generated)
|
|
|
|
Point();
|
|
|
|
|
|
|
|
//## Destructor (generated)
|
|
|
|
~Point();
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (specified)
|
|
|
|
//## Operation: getx%937398664
|
|
|
|
int getx ();
|
|
|
|
|
|
|
|
//## Operation: gety%937398665
|
|
|
|
int gety ();
|
|
|
|
|
|
|
|
//## Operation: setx%937398666
|
|
|
|
void setx (int src);
|
|
|
|
|
|
|
|
//## Operation: sety%937398667
|
|
|
|
void sety (int src);
|
|
|
|
|
|
|
|
// Additional Public Declarations
|
|
|
|
//## begin Point.public preserve=yes
|
|
|
|
//## end Point.public
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Additional Protected Declarations
|
|
|
|
//## begin Point.protected preserve=yes
|
|
|
|
//## end Point.protected
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Additional Private Declarations
|
|
|
|
//## begin Point.private preserve=yes
|
|
|
|
//## end Point.private
|
|
|
|
|
|
|
|
private: //## implementation
|
|
|
|
// Data Members for Class Attributes
|
|
|
|
|
|
|
|
//## Attribute: x
|
|
|
|
//## begin Point::x.attr preserve=no private: int {U}
|
|
|
|
int x;
|
|
|
|
//## end Point::x.attr
|
|
|
|
|
|
|
|
//## Attribute: y
|
|
|
|
//## begin Point::y.attr preserve=no private: int {U}
|
|
|
|
int y;
|
|
|
|
//## end Point::y.attr
|
|
|
|
|
|
|
|
// Additional Implementation Declarations
|
|
|
|
//## begin Point.implementation preserve=yes
|
|
|
|
//## end Point.implementation
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//## begin Point.postscript preserve=yes
|
|
|
|
//## end Point.postscript
|
|
|
|
|
|
|
|
// Class Point
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|