-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.h
executable file
·29 lines (22 loc) · 925 Bytes
/
printer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include <string>
#include <iostream>
_Monitor Printer {
unsigned int numStudents;
unsigned int numVendingMachines;
unsigned int numCouriers;
class PrintEntry;
PrintEntry **printBuffer;
void flushBuffer(int index);
int getIndex(int kind, unsigned int lid);
public:
enum Kind { Parent, Groupoff, WATCardOffice, NameServer, Truck, BottlingPlant, Student, Vending, Courier };
Printer( unsigned int numStudents, unsigned int numVendingMachines, unsigned int numCouriers );
~Printer();
void print( Kind kind, char state );
void print( Kind kind, char state, unsigned int value1 );
void print( Kind kind, char state, unsigned int value1, unsigned int value2 );
void print( Kind kind, unsigned int lid, char state );
void print( Kind kind, unsigned int lid, char state, unsigned int value1 );
void print( Kind kind, unsigned int lid, char state, unsigned int value1, unsigned int value2 );
};