VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwAerodromeSpecification.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <readerWriter/rwVector.h>
11 #include <readerWriter/rwReal.h>
12 
15 {
16 public:
17 
18  //Default constructor
20 
21  //Real constructors
23  DtReaderWriterRegistry* parentRegistry = NULL);
25  DtReaderWriterRegistry* parentRegistry = NULL);
26 
27  //Copy constructor
29 
31 
32  virtual void setAerodrome(const DtString& s) { myAerodrome = s; };
33  virtual const DtString& aerodrome() const { return myAerodrome; };
34 
35  virtual void setRunway(const DtString& s) { myRunway = s; };
36  virtual const DtString& runway() const { return myRunway; };
37 
41  virtual void setLocation(const DtVector&);
42  virtual const DtVector& location() const { return myLocation; };
43 
44  virtual void setRange(double);
45  double range() const { return myRange; };
47 
48  virtual bool operator==(const DtRwAerodromeSpecification&) const;
49  virtual bool operator!=(const DtRwAerodromeSpecification& rhs) const { return !(*this == rhs); };
50 
54  virtual const char* readerWriterType() const;
55 
57  static const char* theXmlType();
58 
59  virtual const char* xmlType() const
60  {
61  return theXmlType();
62  }
63 
64  virtual DtString prettyPrint() const override;
65 
66 protected:
71 };
72 
73 namespace DtBufferSerialize
74 {
76  DT_DLL_vrfutil char *encode(const DtRwAerodromeSpecification& val, char *buffer);
77  DT_DLL_vrfutil const char *decode(DtRwAerodromeSpecification &val, const char *buffer) ;
78 }
bool operator==(const DtReaderWriter &) const
Equivalence operator.
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...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
virtual void setAerodrome(const DtString &s)
Definition: rwAerodromeSpecification.h:32
virtual const DtString & aerodrome() const
Definition: rwAerodromeSpecification.h:33
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual const char * xmlType() const
Definition: rwAerodromeSpecification.h:59
virtual const DtString & runway() const
Definition: rwAerodromeSpecification.h:36
Reader-Writer specification for aerodrome information.
Definition: rwAerodromeSpecification.h:14
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual DtString prettyPrint() const
Routine to return a human readable form of the reader/writer variable. Not all reader/writer classes ...
DtRwString myRunway
Definition: rwAerodromeSpecification.h:68
Definition: rwVector.h:23
virtual const DtVector & location() const
If location and range are specific and the aerodrome and runway are not, then, use the location and r...
Definition: rwAerodromeSpecification.h:42
DtRwString myAerodrome
Definition: rwAerodromeSpecification.h:67
virtual bool operator!=(const DtRwAerodromeSpecification &rhs) const
Definition: rwAerodromeSpecification.h:49
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwVector myLocation
Definition: rwAerodromeSpecification.h:69
#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
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
static const char * theXmlType()
The type that is used when archiving to an XML stream.
File: rwVector.h.
double range() const
If location and range are specific and the aerodrome and runway are not, then, use the location and r...
Definition: rwAerodromeSpecification.h:45
DtRwReal myRange
Definition: rwAerodromeSpecification.h:70
virtual void setRunway(const DtString &s)
Definition: rwAerodromeSpecification.h:35

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)