TerminalManager.hpp 403 Bytes
// 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);

};