JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
FGTemplateFunc.h
1
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
3
Header: FGTemplateFunc.h
4
Author: Bertrand Coconnier
5
Date started: March 10 2018
6
7
--------- Copyright (C) 2018 B. Coconnier (bcoconni@users.sf.net) -----------
8
9
This program is free software; you can redistribute it and/or modify it under
10
the terms of the GNU Lesser General Public License as published by the Free
11
Software Foundation; either version 2 of the License, or (at your option) any
12
later version.
13
14
This program is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17
details.
18
19
You should have received a copy of the GNU Lesser General Public License along
20
with this program; if not, write to the Free Software Foundation, Inc., 59
21
Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
Further information about the GNU Lesser General Public License can also be
24
found on the world wide web at http://www.gnu.org.
25
26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27
SENTRY
28
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
29
30
#ifndef FGTEMPLATEFUNC_H
31
#define FGTEMPLATEFUNC_H
32
33
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34
INCLUDES
35
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
36
37
#include "math/FGFunction.h"
38
#include "math/FGPropertyValue.h"
39
40
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41
FORWARD DECLARATIONS
42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
43
44
namespace
JSBSim {
45
46
class
FGFDMExec;
47
48
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49
CLASS DOCUMENTATION
50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
51
52
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53
DECLARATION: FGTemplateFunc
54
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
55
56
class
FGTemplateFunc
:
public
FGFunction
57
{
58
public
:
59
60
FGTemplateFunc
(
FGFDMExec
* fdmex,
Element
* element);
61
62
double
GetValue
(
FGPropertyNode
* node) {
63
var->SetNode(node);
64
return
FGFunction::GetValue
();
65
}
66
67
private
:
70
void
bind(
Element
*,
const
std::string&)
override
{}
71
FGPropertyValue_ptr var;
72
};
73
74
typedef
SGSharedPtr<FGTemplateFunc> FGTemplateFunc_ptr;
75
76
}
// namespace JSBSim
77
78
#endif
JSBSim::FGFDMExec
Encapsulates the JSBSim simulation executive.
Definition:
FGFDMExec.h:185
JSBSim::FGFunction
Represents a mathematical function.
Definition:
FGFunction.h:752
JSBSim::FGPropertyNode
Class wrapper for property handling.
Definition:
FGPropertyManager.h:70
JSBSim::FGTemplateFunc
Definition:
FGTemplateFunc.h:56
JSBSim::FGFunction::GetValue
double GetValue(void) const override
Retrieves the value of the function object.
Definition:
FGFunction.cpp:925
JSBSim::Element
Definition:
FGXMLElement.h:143
src
math
FGTemplateFunc.h
Generated on Sun Feb 13 2022 13:06:37 for JSBSim Flight Dynamics Model by
1.8.17