]> git.mxchange.org Git - flightgear.git/blob - src/NetworkOLK/features.cxx
David Megginson writes:
[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 #if defined( FG_HAVE_NATIVE_SGI_COMPILERS )
27 #  include <iostream.h>
28 #else
29 #  include <iostream>
30 #endif
31
32 #include <simgear/math/sg_types.hxx>
33
34 FG_USING_NAMESPACE(std);
35
36 #include "features.hxx"
37
38
39 \f
40 ////////////////////////////////////////////////////////////////////////
41 // Declare how to do registrations
42 ////////////////////////////////////////////////////////////////////////
43
44    void FGFeature::register_float  ( char *name, float  *value )
45                         { register_void ( name, 'F', (void*) value ); };
46
47    void FGFeature::register_double ( char *name, double *value )
48                         { register_void ( name, 'D', (void*) value ); };
49
50    void FGFeature::register_int    ( char *name, int    *value )
51                         { register_void ( name, 'I', (void*) value ); };
52
53    void FGFeature::register_char80 ( char *name, char   *value )
54                         { register_void ( name, 'C', (void*) value ); };
55
56    void FGFeature::register_string ( char *name, char   *value )
57                         { register_void ( name, 'A', (void*) value ); };
58
59    void FGFeature::register_alias  ( char *name, char   *value )
60                         { register_void ( name, '-', (void*) value ); };
61
62
63 \f
64 ////////////////////////////////////////////////////////////////////////
65 // Everything else stubbed out
66 ////////////////////////////////////////////////////////////////////////
67
68    void FGFeature::register_void ( char *name, char itstype, void *value )
69                         { return; };
70
71    int FGFeature::modify   ( char *name, char *newvalue )
72         { return 1; /* failed */ };
73
74    int   FGFeature::index_count ( void ) { return 0; };
75    char* FGFeature::index_name  ( int index ) { return NULL; };
76    char* FGFeature::index_value ( int index ) { return NULL; };
77    char* FGFeature::get_value ( char *name )  { return NULL; };
78
79    void  FGFeature::maybe_rebuild_menu() {};
80
81    void  FGFeature::update() {};
82
83 // end of features.cxx