sources:
BasicClass.h (1.4k)
CashOffice.cpp (3.6k)
CashOffice.h (1.7k)
Date.cpp (6.0k)
Date.h (2.9k)
Exception.cpp (2.5k)
Exception.h (1.4k)
House.cpp (7.5k)
House.h (2.5k)
O3_5.cpp (577 bytes)
Room.cpp (2.9k)
Room.h (1.5k)


binaries:
Release/O3_5.exe (132.0k)


website:
more info here
studies/bauelemente/Softwarebauelemente-CodeO3-5/CashOffice.h
download file

  1 ///////////////////////////////////////////////////////////
  2 // Softwarebauelemente II, Aufgabe O3.2
  3 //
  4 // author: Stephan Brumme
  5 // last changes: May 29, 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 // we derive from CRoom
 16 #include "Room.h"
 17
 18
 19 // derive publicly
 20 class CCashOffice : public CRoom 
 21 {
 22 public:
 23     // constructors
 24     CCashOffice();
 25     CCashOffice(const CCashOffice& cashOffice);
 26     CCashOffice(int nNumberOfRoom, int nArea, int nNumberOfCounter);
 27
 28     // return class name
 29     virtual string ClassnameOf() const { return "CCashOffice"; }
 30
 31     // display the attributes
 32     virtual string Show() const;
 33     // only for internal purposes !
 34     virtual string ShowDebug() const;
 35    
 36     // validate a cashoffice
 37     virtual bool ClassInvariant() const;
 38
 39     // copy one cashoffice to another one
 40     virtual CCashOffice& operator=(const CCashOffice& cashOffice);
 41     virtual bool Copy(const CBasicClass* pClass);
 42    
 43     // compare two rooms
 44     virtual bool operator==(const CCashOffice& cashOffice) const;
 45     virtual bool EqualValue(const CBasicClass* pClass) const;
 46
 47     // access m_nNumberOfCounter
 48     int  GetNumberOfCounter() const;
 49     void SetNumberOfCounter(const int nNumberOfCounter);
 50
 51     // access m_nNumberOfRoom of CRoom
 52     int  GetNumberOfCashOffice() const;
 53     void SetNumberOfCashOffice(const int nNumberOfCashOffice);
 54
 55     // deliver m_nArea of CRoom
 56     int GetAreaOfCashOffice() const;
 57
 58     enum { MAXCOUNTER = 100 };
 59 private:
 60     int m_nNumberOfCounter;
 61 };
 62
 63 #endif // !defined(AFX_CASHOFFICE_H__26E07000_EA3B_11D4_9BB7_AFEE07846A21__INCLUDED_)
 64
 65