//## begin module.cm preserve=no // %X% %Q% %Z% %W% //## end module.cm //## begin module.cp preserve=no //## end module.cp //## Module: Rectangle; Pseudo Package body //## Subsystem: lab7 //## Source file: H:\kurs\avC++\lab7\Rectngle.cpp //## begin module.additionalIncludes preserve=no //## end module.additionalIncludes //## begin module.includes preserve=yes //## end module.includes // Rectangle #include "Rectngle.h" //## begin module.additionalDeclarations preserve=yes //## end module.additionalDeclarations // Class Rectangle Rectangle::Rectangle() //## begin Rectangle::Rectangle%.hasinit preserve=no //## end Rectangle::Rectangle%.hasinit //## begin Rectangle::Rectangle%.initialization preserve=yes //## end Rectangle::Rectangle%.initialization { //## begin Rectangle::Rectangle%.body preserve=yes //## end Rectangle::Rectangle%.body } Rectangle::~Rectangle() { //## begin Rectangle::~Rectangle%.body preserve=yes //## end Rectangle::~Rectangle%.body } //## Other Operations (implementation) int Rectangle::getXpos () { //## begin Rectangle::getXpos%940945803.body preserve=yes return xPos; //## end Rectangle::getXpos%940945803.body } int Rectangle::getYpos () { //## begin Rectangle::getYpos%940945804.body preserve=yes return yPos; //## end Rectangle::getYpos%940945804.body } int Rectangle::getWidth () { //## begin Rectangle::getWidth%940945805.body preserve=yes return width; //## end Rectangle::getWidth%940945805.body } int Rectangle::getHeight() { //## begin Rectangle::getHeight%940945806.body preserve=yes return height; //## end Rectangle::getHeight%940945806.body } void Rectangle::setValue (int x1, int y1, int x2, int y2) { //## begin Rectangle::setValue%940945813.body preserve=yes xPos = x1; yPos = y1; width = x2; height = y2; //## end Rectangle::setValue%940945813.body } // Additional Declarations //## begin Rectangle.declarations preserve=yes //## end Rectangle.declarations //## begin module.epilog preserve=yes //## end module.epilog