]> git.mxchange.org Git - flightgear.git/blob - src/NetworkOLK/features.cxx
- adjusted for no-value constructor for FGPanel
[flightgear.git] / src / NetworkOLK / features.cxx
1 // features.cxx - Exporting simulator features
2 //
3 // Copyright (C) 2000  Alexander Perry - alex.perry@ieee.org
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License as
7 // published by the Free Software Foundation; either version 2 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //
19 // $Id$
20
21
22 #ifdef HAVE_CONFIG_H
23 #  include <config.h>
24 #endif
25
26 #include <simgear/compiler.h>
27
28 #include STL_IOSTREAM
29
30 #include <simgear/math/sg_types.hxx>
31
32 SG_USING_NAMESPACE(std);
33
34 #include "features.hxx"
35
36
37 \f
38 ////////////////////////////////////////////////////////////////////////
39 // Declare how to do registrations
40 ////////////////////////////////////////////////////////////////////////
41
42    void FGFeature::register_float  ( char *name, float  *value )
43                         { register_void ( name, 'F', (void*) value ); };
44
45    void FGFeature::register_double ( char *name, double *value )
46                         { register_void ( name, 'D', (void*) value ); };
47
48    void FGFeature::register_int    ( char *name, int    *value )
49                         { register_void ( name, 'I', (void*) value ); };
50
51    void FGFeature::register_char80 ( char *name, char   *value )
52                         { register_void ( name, 'C', (void*) value ); };
53
54    void FGFeature::register_string ( char *name, char   *value )
55                         { register_void ( name, 'A', (void*) value ); };
56
57    void FGFeature::register_alias  ( char *name, char   *value )
58                         { register_void ( name, '-', (void*) value ); };
59
60
61 \f
62 ////////////////////////////////////////////////////////////////////////
63 // Everything else stubbed out
64 ////////////////////////////////////////////////////////////////////////
65
66    void FGFeature::register_void ( char *name, char itstype, void *value )
67                         { return; };
68
69    int FGFeature::modify   ( char *name, char *newvalue )
70         { return 1; /* failed */ };
71
72    int   FGFeature::index_count ( void ) { return 0; };
73    char* FGFeature::index_name  ( int index ) { return NULL; };
74    char* FGFeature::index_value ( int index ) { return NULL; };
75    char* FGFeature::get_value ( char *name )  { return NULL; };
76
77    void  FGFeature::maybe_rebuild_menu() {};
78
79    void  FGFeature::update() {};
80
81 // end of features.cxx