VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setAltitudeRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
18 #include <vlutil/vlNetTypes.h>
19 
21 #include <readerWriter/rwReal.h>
22 
36 {
37 public:
38 
41 
44  DtSetAltitudeRequest(const DtString & writeName,
45  DtReaderWriterRegistry * parentRegistry = 0);
46 
48  DtSetAltitudeRequest(const DtString & writeName, const DtSetAltitudeRequest &
49  orig, DtReaderWriterRegistry * parentRegistry = 0);
50 
53 
54  virtual ~DtSetAltitudeRequest();
55 
57  virtual const DtSetMessageType& type() const;
58 
60  virtual DtSetDataRequest * clone(const DtString & name,
61  DtReaderWriterRegistry * parentRegistry = 0) const;
62 
64  virtual DtString stringRep() const;
65 
66  virtual DtReal altitude() const;
67  virtual void setAltitude(DtReal altitude);
68 
70  virtual void setAboveGroundLevel(bool);
71  virtual bool aboveGroundLevel() const;
72 
75  virtual int netRepSize() const;
76 
78  virtual bool setFromNet(const char* contentBuffer,
79  unsigned contentSize);
80 
83  virtual bool setToNet();
84 
85  static DtSetDataRequest * creator();
86 
87 protected:
90 };
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtRwBoolean myAboveGroundLevel
Definition: setAltitudeRequest.h:89
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
File: setAltitudeRequest.h.
Definition: setAltitudeRequest.h:35
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtRwReal myAltitude
Definition: setAltitudeRequest.h:88
Description: Readable, Writable bool.
Definition: rwBoolean.h:26

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)