Fawkes API Fawkes Development Version
processor.h
1
2/***************************************************************************
3 * processor.h - Fawkes RefBox Processor Pure Virtual Class
4 *
5 * Created: Sun Apr 19 14:15:08 2009 (on way to German Open 2009)
6 * Copyright 2009 Tim Niemueller [www.niemueller.de]
7 *
8 ****************************************************************************/
9
10/* This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Library General Public License for more details.
19 *
20 * Read the full text in the LICENSE.GPL file in the doc directory.
21 */
22
23#ifndef _PLUGINS_REFBOXCOMM_PROCESSOR_PROCESSOR_H_
24#define _PLUGINS_REFBOXCOMM_PROCESSOR_PROCESSOR_H_
25
27
29{
30public:
31 virtual ~RefBoxProcessor();
32
33 virtual bool check_connection() = 0;
34 virtual void refbox_process() = 0;
35
36 virtual void set_handler(RefBoxStateHandler *rsh);
37
38protected:
39 /** Refbox state handler, set via set_handler() */
41};
42
43#endif
Referee Box Communication Processor.
Definition: processor.h:29
virtual void set_handler(RefBoxStateHandler *rsh)
Set handler.
Definition: processor.cpp:53
virtual bool check_connection()=0
Check if the connection is alive and reconnect.
RefBoxStateHandler * _rsh
Refbox state handler, set via set_handler()
Definition: processor.h:40
virtual void refbox_process()=0
Process incoming refbox communication.
virtual ~RefBoxProcessor()
Pure virtual destructor.
Definition: processor.cpp:45
Referee Box state handler for RefBoxProcessor.
Definition: state_handler.h:29