You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
403 B
35 lines
403 B
// TerminalManager header file. We will be using this class
|
|
|
|
// as an example for Object Oriented Programming in C.
|
|
|
|
#include "Terminal.hpp"
|
|
|
|
|
|
|
|
class TerminalManager
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
enum {MAX_TERMINALS=500};
|
|
|
|
|
|
|
|
Terminal terminals[MAX_TERMINALS];
|
|
|
|
|
|
|
|
Terminal *FindTerminal(int terminalId);
|
|
|
|
|
|
|
|
public:
|
|
|
|
TerminalManager();
|
|
|
|
~TerminalManager();
|
|
|
|
void HandleMessage(Msg* pMsg);
|
|
|
|
};
|