diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-05 20:43:24 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-05 20:43:24 +0100 |
commit | 01bd4791cbeabcf85ea72f91c1edd0af8ac17b1f (patch) | |
tree | 5c24611842cfefd1866a1e915c5d55279aae0234 /algo1w4d2/Kassa.h | |
parent | bdf6588d9154889d897d6b102fc32f49bf92fa7b (diff) |
Diffstat (limited to 'algo1w4d2/Kassa.h')
-rw-r--r-- | algo1w4d2/Kassa.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/algo1w4d2/Kassa.h b/algo1w4d2/Kassa.h new file mode 100644 index 0000000..511015b --- /dev/null +++ b/algo1w4d2/Kassa.h @@ -0,0 +1,22 @@ +#pragma once + +#include <iostream> + +#include "Klant.h" +#include "Queue.h" + +class Kassa { +public: + void step(); /** @brief handle MAX_TRANSACTION_PER_CHECKOUT amount of customers */ + void add_customer(const Klant&); /** @brief add customer to checkout queue */ + +public: + Kassa(); + virtual ~Kassa(); + +public: + friend std::ostream& operator << (std::ostream& output, const Kassa& kassa); + +private: + Queue* _queue; +}; |