AnimatLab  2
Test
EquationGain.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Gains
12  {
24  class ANIMAT_PORT EquationGain : public Gain
25  {
26  protected:
28  std::string m_strGainEquation;
29 
31  CStdPostFixEval *m_lpEval;
32 
33  public:
34  EquationGain();
35  virtual ~EquationGain();
36 
37  static EquationGain *CastToDerived(AnimatBase *lpBase) {return static_cast<EquationGain*>(lpBase);}
38 
39  virtual std::string GainEquation();
40  virtual void GainEquation(std::string strEquation);
41 
42  virtual void Copy(CStdSerialize *lpSource);
43  virtual CStdSerialize *Clone();
44 
45  virtual float CalculateGain(float fltInput);
46 
47  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
48  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
49  virtual void Load(CStdXml &oXml);
50  };
51 
52  } //Gains
53 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
std::string m_strGainEquation
The post-fix gain equation.
Definition: EquationGain.h:28
The Gain base class.
Definition: Gain.h:35
CStdPostFixEval * m_lpEval
The pointer to the postfix equation evaluator.
Definition: EquationGain.h:31
Animat base class.
Definition: AnimatBase.h:36