fgms 0.11.8
The
FlightGear MultiPlayer Server
project
filter.cxx
Go to the documentation of this file.
1 //
2 // This program is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU General Public License as
4 // published by the Free Software Foundation; either version 2 of the
5 // License, or (at your option) any later version.
6 //
7 // This program is distributed in the hope that it will be useful, but
8 // WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // General Public License for more details.
11 //
12 // You should have received a copy of the GNU General Public License
13 // along with this program; if not, write to the Free Software
14 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, U$
15 //
16 // derived from libcli by David Parrish (david@dparrish.com)
17 // Copyright (C) 2011 Oliver Schroeder
18 //
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif
22 
23 #include "common.hxx"
24 #include "filter.hxx"
25 
26 namespace LIBCLI
27 {
28 
29 using namespace std;
30 
31 int
33 (
34  Client& Instance,
35  char *cmd
36 )
37 {
38  DEBUG d (__FUNCTION__,__FILE__,__LINE__);
39  return (CALL_MEMBER_FN (Instance, this->filter)(cmd, this->data));
40 }
41 
42 int
44 (
45  Client& Instance,
46  char *cmd,
47  void *data
48 )
49 {
50  DEBUG d (__FUNCTION__,__FILE__,__LINE__);
51  return (CALL_MEMBER_FN (Instance, this->filter)(cmd, data));
52 }
53 
54 }; // namespace LIBCLI
55 
int exec(Client &Instance, char *cmd)
Definition: filter.cxx:33
Definition: debug.hxx:31
#define CALL_MEMBER_FN(object, ptrToMember)
Definition: common.hxx:36