1 // features.cxx - Exporting simulator features
3 // Copyright (C) 2000 Alexander Perry - alex.perry@ieee.org
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.
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.
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.
26 #if defined( FG_HAVE_NATIVE_SGI_COMPILERS )
27 # include <iostream.h>
32 #include <simgear/math/fg_types.hxx>
34 FG_USING_NAMESPACE(std);
36 #include "features.hxx"
40 ////////////////////////////////////////////////////////////////////////
41 // Declare how to do registrations
42 ////////////////////////////////////////////////////////////////////////
44 void FGFeature::register_float ( char *name, float *value )
45 { register_void ( name, 'F', (void*) value ); };
47 void FGFeature::register_double ( char *name, double *value )
48 { register_void ( name, 'D', (void*) value ); };
50 void FGFeature::register_int ( char *name, int *value )
51 { register_void ( name, 'I', (void*) value ); };
53 void FGFeature::register_char80 ( char *name, char *value )
54 { register_void ( name, 'C', (void*) value ); };
56 void FGFeature::register_string ( char *name, char *value )
57 { register_void ( name, 'A', (void*) value ); };
59 void FGFeature::register_alias ( char *name, char *value )
60 { register_void ( name, '-', (void*) value ); };
64 ////////////////////////////////////////////////////////////////////////
65 // Everything else stubbed out
66 ////////////////////////////////////////////////////////////////////////
68 void FGFeature::register_void ( char *name, char itstype, void *value )
71 int FGFeature::modify ( char *name, char *newvalue )
72 { return 1; /* failed */ };
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; };
79 void FGFeature::maybe_rebuild_menu() {};
81 void FGFeature::update() {};
83 // end of features.cxx