sources:
CashOffice.cpp (2.1k)
CashOffice.h (1.4k)
O1_2.cpp (985 bytes)
PrimitiveTypes.h (421 bytes)
Room.cpp (1.8k)
Room.h (1.4k)


website:
more info here
studies/bauelemente/Softwarebauelemente-CodeO1-2/CashOffice.h
download file

  1 ///////////////////////////////////////////////////////////
  2 // Softwarebauelemente I, Aufgabe O1.2
  3 //
  4 // author: Stephan Brumme
  5 // last changes: January 14, 2001
  6
  7 #if !defined(AFX_CASHOFFICE_H__26E07000_EA3B_11D4_9BB7_AFEE07846A21__INCLUDED_)
  8 #define AFX_CASHOFFICE_H__26E07000_EA3B_11D4_9BB7_AFEE07846A21__INCLUDED_
  9
 10 #if _MSC_VER > 1000
 11 #pragma once
 12 #endif // _MSC_VER > 1000
 13
 14
 15 #include "Room.h"
 16
 17
 18 class CCashOffice : public CRoom 
 19 {
 20 private:
 21     Ordinal m_nNumberOfCounter;
 22
 23 public:
 24     // constructor (former Init !)
 25     CCashOffice(Ordinal nNumberOfRoom, Ordinal nArea, Ordinal nNumberOfCounter) :
 26         CRoom(nNumberOfRoom, nArea), m_nNumberOfCounter(nNumberOfCounter) {}
 27
 28     // destructor (not neccessary)
 29     virtual ~CCashOffice() {}
 30
 31     // compare two rooms
 32     virtual Boolean operator==(const CCashOffice& cashOffice) const;
 33     virtual Boolean EqualValue(const CCashOffice& cashOffice) const;
 34
 35     // copy one room to another one
 36     virtual CCashOffice& operator=(const CCashOffice& cashOffice);
 37     virtual Boolean      Copy     (const CCashOffice& cashOffice);
 38    
 39     // access m_nNumberOfCounter
 40     Ordinal GetNumberOfCounter() const;
 41     void    SetNumberOfCounter(const Ordinal nNumberOfCounter);
 42
 43     // display the attributes
 44     // only for internal purposes !
 45     virtual void Show() const;
 46 };
 47
 48 #endif // !defined(AFX_CASHOFFICE_H__26E07000_EA3B_11D4_9BB7_AFEE07846A21__INCLUDED_)
 49
 50