~ubuntu-branches/ubuntu/precise/flightgear/precise

« back to all changes in this revision

Viewing changes to src/FDM/JSBSim/math/FGCondition.h

  • Committer: Bazaar Package Importer
  • Author(s): Ove Kaaven
  • Date: 2011-01-30 15:46:35 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110130154635-rlynmg9n5hzxq5xe
Tags: 2.0.0-3
* Recommend fgfs-aircraft-base and fgfs-models-base.
  Closes. #610276.
* Added note about scenery SharedModels.tgz to README.Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
39
39
 
40
40
#include <map>
41
 
#include <FGJSBBase.h>
42
 
#include <input_output/FGXMLElement.h>
43
 
#include <input_output/FGPropertyManager.h>
 
41
#include "FGJSBBase.h"
44
42
 
45
43
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46
44
DEFINITIONS
54
52
 
55
53
namespace JSBSim {
56
54
 
 
55
class FGPropertyManager;
 
56
class Element;
 
57
 
57
58
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58
59
CLASS DOCUMENTATION
59
60
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
69
70
{
70
71
public:
71
72
  FGCondition(Element* element, FGPropertyManager* PropertyManager);
72
 
  FGCondition(string test, FGPropertyManager* PropertyManager);
 
73
  FGCondition(const std::string& test, FGPropertyManager* PropertyManager);
73
74
  ~FGCondition(void);
74
75
 
75
76
  bool Evaluate(void);
78
79
private:
79
80
  enum eComparison {ecUndef=0, eEQ, eNE, eGT, eGE, eLT, eLE};
80
81
  enum eLogic {elUndef=0, eAND, eOR};
81
 
  map <string, eComparison> mComparison;
 
82
  std::map <std::string, eComparison> mComparison;
82
83
  eLogic Logic;
83
84
 
84
85
  FGPropertyManager *TestParam1, *TestParam2, *PropertyManager;
85
86
  double TestValue;
86
87
  eComparison Comparison;
87
88
  bool isGroup;
88
 
  string conditional;
89
 
 
90
 
  static string indent;
91
 
 
92
 
  vector <FGCondition*> conditions;
 
89
  std::string conditional;
 
90
 
 
91
  static std::string indent;
 
92
 
 
93
  std::vector <FGCondition*> conditions;
93
94
  void InitializeConditionals(void);
94
95
 
95
96
  void Debug(int from);