VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
requestRefuelPositionAdmin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrftasks/adminContent.h"
14 
16 {
17  Boom = 0,
18  Drogue = 1
19 };
20 
25 {
26 public:
27 
30 
33 
37 
40 
42  static DtAdminContent* create();
43 
45  virtual bool init();
46 
48  virtual const DtAdminContentMessageType& type() const;
49 
52  virtual DtAdminContent * clone() const;
53 
56 
57  virtual const int refuelMethod() const;
58  virtual void setRefuelMethod(int refuelMethod);
60 
62  virtual DtString stringRep() const;
63 
65  virtual int netRepSize() const;
66 
68  virtual bool setFromNet(const char* contentBuffer,
69  unsigned contentSize);
70 
72  virtual bool setToNet();
73 
74 protected:
76 
77 };
DtRefuelMethod
Definition: requestRefuelPositionAdmin.h:15
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...
virtual int netRepSize() const
virtual DtAdminContent * clone() const =0
Make a copy of this content. Returns a pointer to a newly created copy of this class. Derived classes must override this function to create and return an instance of the derived type.
Definition: vrfObjectMessageTypeTemplate.h:24
Definition: requestRefuelPositionAdmin.h:18
Definition: requestRefuelPositionAdmin.h:17
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual bool init()
Base class init does nothing, but this will be called by create, in case any other deriving class nee...
DtAdminContent.
Definition: adminContent.h:23
virtual const DtAdminContentMessageType & type() const =0
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...
Admin content for a message that requests the available positions along a tanker for refueling...
Definition: requestRefuelPositionAdmin.h:24
int myRefuelMethodType
Definition: requestRefuelPositionAdmin.h:75

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)