Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
command-dispatch.hpp
Go to the documentation of this file.
1 /*
2  COMMAND-DISPATCH.hpp - Interface to enqueue and dispatch command messages
3 
4  Copyright (C) Lumiera.org
5  2016, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
35 #ifndef PROC_CONTROL_COMMAND_DISPATCH_H
36 #define PROC_CONTROL_COMMAND_DISPATCH_H
37 
38 #include "proc/control/command.hpp"
39 
40 
41 
42 namespace proc {
43 namespace control {
44 
45 
46 
47 
55  {
56 
57  public:
58  virtual ~CommandDispatch() { }
59 
60  virtual void clear() =0;
61  virtual void enqueue (Command&&) =0;
62  };
63 
64 
65 
66 
67 }} // namespace proc::control
68 #endif /*PROC_CONTROL_COMMAND_DISPATCH_H*/
virtual ~CommandDispatch()
this is an interface
Proc-Layer command frontend.
Handle object representing a single Command instance to be used by client code.
Definition: command.hpp:125
Interface of a service to perform Commands on the session.
virtual void enqueue(Command &&)=0
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63