VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assignRefuelPositionAdmin.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 #include <list>
15 
19 {
20 public:
21 
24 
27 
31 
33  virtual ~DtAssignRefuelPositionAdmin() override;
34 
36  static DtAdminContent* create();
37 
39  virtual bool init() override;
40 
42  virtual const DtAdminContentMessageType& type() const override;
43 
46 
47  virtual const DtVector& positionOffset() const;
48  virtual void setPositionOffset(const DtVector& positionOffset);
50 
52 
53  virtual int positionId() const;
54  virtual void setPositionId(int id);
56 
59  virtual DtAdminContent* clone() const override;
60 
62  virtual DtString stringRep() const override;
63 
65  virtual int netRepSize() const override;
66 
68  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
69 
71  virtual bool setToNet() override;
72 
73 protected:
74  DtVector myPositionOffset;
76 };
77 
DtVector myPositionOffset
Definition: assignRefuelPositionAdmin.h:74
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.
Admin content which contains the refuel positiona and offset information. This is the response to the...
Definition: assignRefuelPositionAdmin.h:18
Definition: vrfObjectMessageTypeTemplate.h:24
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...
int myPositionId
Definition: assignRefuelPositionAdmin.h:75
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...

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)