Browse Source

Simplified InputProcessor

git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@6 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
master
madscientist 15 years ago
parent
commit
dd748b38ef
1 changed files with 1 additions and 8 deletions
  1. 1
    8
      SNF4CGP/InputProcessor.hpp

+ 1
- 8
SNF4CGP/InputProcessor.hpp View File

// See www.armresearch.com for more information. // See www.armresearch.com for more information.
// //
// The InputProcessor is responsible for accpting and parsing commands from // The InputProcessor is responsible for accpting and parsing commands from
// CommuniGate, assigning Jobs to Workers, and watching for the QUIT command.
// CommuniGate.
#ifndef IncludedInputProcessor #ifndef IncludedInputProcessor
#define IncludedInputProcessor #define IncludedInputProcessor
#include "JobPool.hpp"
#include "WorkerPool.hpp"
#include <string> #include <string>
using namespace std; using namespace std;
}; };
class InputProcessor { // Here is the InputProcessor object. class InputProcessor { // Here is the InputProcessor object.
private:
JobPool& Jobs; // It knows where to get jobs.
WorkerPool& Workers; // It knows where to get workers.
public: public:
InputProcessor(JobPool J, WorkerPool W);
Command getCommand(); // One method: get the next command. Command getCommand(); // One method: get the next command.
}; };

Loading…
Cancel
Save