FlightGear next
native_structs.hxx
Go to the documentation of this file.
1// native_fdm.hxx -- FGFS "Native" flight dynamics protocal class
2//
3// Written by Curtis Olson, started September 2001.
4//
5// Copyright (C) 2001 Curtis L. Olson - http://www.flightgear.org/~curt
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public License as
9// published by the Free Software Foundation; either version 2 of the
10// License, or (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful, but
13// WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15// General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20//
21// $Id$
22
23
24#pragma once
25
26// Helper functions which may be useful outside this class
27
28// Populate the FGNetFDM/FG_DDS_FDM structure from the property tree.
29template<typename T>
30void FGProps2FDM( SGPropertyNode *props, T *net, bool net_byte_order = true );
31
32// Update the property tree from the FGNetFDM/FG_DDS_FDM structure.
33template<typename T>
34void FGFDM2Props( SGPropertyNode *props, T *net, bool net_byte_order = true );
35
36
37// Populate the FGNetGUI/FG_DDS_GUI structure from the property tree.
38template<typename T>
39void FGProps2GUI( SGPropertyNode *props, T *net );
40
41// Update the property tree from the FGNetGUI/FG_DDS_GUI structure.
42template<typename T>
43void FGGUI2Props( SGPropertyNode *props, T *net );
44
45
46// Populate the FGNetCtrls/FG_DDS_Ctrls structure from the property tree.
47template<typename T>
48void FGProps2Ctrls( SGPropertyNode *props, T *net, bool honor_freezes, bool net_byte_order );
49
50// Update the property tree from the FGNetCtrls/FG_DDS_Ctrls structure.
51template<typename T>
52void FGCtrls2Props( SGPropertyNode *props, T *net, bool honor_freezes, bool net_byte_order );
void FGCtrls2Props(SGPropertyNode *props, T *net, bool honor_freezes, bool net_byte_order)
void FGGUI2Props(SGPropertyNode *props, T *net)
void FGProps2GUI(SGPropertyNode *props, T *net)
void FGProps2Ctrls(SGPropertyNode *props, T *net, bool honor_freezes, bool net_byte_order)
void FGProps2FDM(SGPropertyNode *props, T *net, bool net_byte_order=true)
void FGFDM2Props(SGPropertyNode *props, T *net, bool net_byte_order=true)