MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AbstractDualDriver.h
Go to the documentation of this file.
1 /* -*- mode:C++ -*-
2  AbstractDualDriver.h Compilation switch for GUI enabling
3  Copyright (C) 2014 The Regents of the University of New Mexico. All rights reserved.
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18  USA
19 */
20 
27 #ifndef ABSTRACT_DUAL_DRIVER_H
28 #define ABSTRACT_DUAL_DRIVER_H
29 
30 
31 #ifdef MFM_GUI_DRIVER
32 
33 #include "AbstractGUIDriver.h"
34 #define DUAL_DRIVER_TYPE AbstractGUIDriver
35 
36 #else
37 
38 #include "AbstractHeadlessDriver.h"
39 #define DUAL_DRIVER_TYPE AbstractHeadlessDriver
40 
41 #endif
42 
43 namespace MFM
44 {
51  template<class GC>
52  class AbstractDualDriver : public DUAL_DRIVER_TYPE<GC>
53  {
54  private: typedef DUAL_DRIVER_TYPE<GC> Super;
55 
56  protected:
57 
59  { }
60 
61  virtual void AddDriverArguments()
62  {
63  Super::AddDriverArguments();
64  }
65 
66  virtual void OnceOnly(VArguments& args)
67  {
68  Super::OnceOnly(args);
69  }
70 
71  };
72 }
73 
74 #endif /* ABSTRACT_DUAL_DRIVER_H */
Definition: AbstractDualDriver.h:52
Definition: VArguments.h:48