1 | /*! |
---|
2 | * @file executor_const_member.h |
---|
3 | * Definition of an Executor to Member Functions |
---|
4 | */ |
---|
5 | /* |
---|
6 | orxonox - the future of 3D-vertical-scrollers |
---|
7 | |
---|
8 | Copyright (C) 2004 orx |
---|
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, or (at your option) |
---|
13 | any later version. |
---|
14 | |
---|
15 | ### File Specific: |
---|
16 | main-programmer: Benjamin Grauer |
---|
17 | co-programmer: ... |
---|
18 | */ |
---|
19 | |
---|
20 | |
---|
21 | #ifndef __EXECUTOR_CONST_MEMBER_H_ |
---|
22 | #define __EXECUTOR_CONST_MEMBER_H_ |
---|
23 | |
---|
24 | /// Define all Constructs, that define an Executor. |
---|
25 | //! The Name to be attached to the functional (for normal, static, and const modes) |
---|
26 | #define __EXECUTOR_FUNCTIONAL_NAME(ParamCount, Ext) Executor##ParamCount##Ext##_const |
---|
27 | |
---|
28 | //! if Functional is constant calling |
---|
29 | #define __EXECUTOR_FUNCTIONAL_CONST const |
---|
30 | //! The Execution-mode (either static or objective) |
---|
31 | #define __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC dynamic_cast<T*>(object)->*(functionPointer) |
---|
32 | //! The Function-Pointer, and how to save it internally. |
---|
33 | #define __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER T::*functionPointer |
---|
34 | //! The Type of Function |
---|
35 | #define __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE Executor<CallType, BaseClass>::FunctionConstMember |
---|
36 | |
---|
37 | |
---|
38 | /// We want to include __EXECUTOR_GENERIC_H again, with current settings. |
---|
39 | |
---|
40 | #include "executor_generic.h" |
---|
41 | |
---|
42 | #undef __EXECUTOR_FUNCTIONAL_NAME |
---|
43 | |
---|
44 | #undef __EXECUTOR_FUNCTIONAL_CONST |
---|
45 | #undef __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC |
---|
46 | #undef __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER |
---|
47 | #undef __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE |
---|
48 | |
---|
49 | #endif /* __EXECUTOR_CONST_MEMBER_H_ */ |
---|