VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwAircraftEngineEfficiency.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <readerWriter/rwReal.h>
13 
15 
21 {
22 public:
24  const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
27  DtReaderWriterRegistry* parentRegistry = 0);
28 
30 
32  static const char* theXmlType();
33 
34  virtual const char* xmlType() const override;
35 
36  virtual const char* readerWriterType() const override;
37 
38  virtual double altitude() const;
39  virtual void setAltitude(double alt);
40 
41  virtual double speed() const;
42  virtual void setSpeed(double speed);
43 
44  virtual double range() const;
45  virtual void setRange(double range);
46 
48  {
49  return (DtReaderWriter::operator==(rhs) &&
50  (myAltitude == rhs.myAltitude) &&
51  (mySpeed == rhs.mySpeed) &&
52  (myRange == rhs.myRange));
53  }
54 
56  {
57  return !(*this == rhs);
58  }
59 
60 protected:
64 };
65 
67  : public DtRwTemplatedListPtr<DtRwAircraftEngineEfficiencyDataPoint, true>
68 {
70 
71 public:
73  const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
75  const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = 0);
77  const DtRwAircraftEngineEfficiencyDataPointList& orig, DtReaderWriterRegistry* parentRegistry = 0);
79  const DtString& name, const DtRwAircraftEngineEfficiencyDataPointList& orig, DtReaderWriterRegistry* parentRegistry = 0);
80 
82 };
virtual DtRwTemplatedListPtr & operator=(const DtRwTemplatedListPtr &orig)
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
DtRwReal myRange
Definition: rwAircraftEngineEfficiency.h:63
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
bool operator!=(const DtRwAircraftEngineEfficiencyDataPoint &rhs) const
Definition: rwAircraftEngineEfficiency.h:55
DtRwReal myAltitude
Definition: rwAircraftEngineEfficiency.h:61
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
bool operator==(const DtRwAircraftEngineEfficiencyDataPoint &rhs) const
Definition: rwAircraftEngineEfficiency.h:47
virtual const char * xmlType() const
Definition: readerWriter.h:366
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Single data point for the aircraft fuel usage model. Each data point defines the range that an aircra...
Definition: rwAircraftEngineEfficiency.h:20
DtRwReal mySpeed
Definition: rwAircraftEngineEfficiency.h:62
Definition: rwTemplatedList.h:34
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DtRwTemplatedListPtr< DtRwAircraftEngineEfficiencyDataPoint, true > Base
Definition: rwAircraftEngineEfficiency.h:69
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: rwAircraftEngineEfficiency.h:66

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)