VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
requestLaunchedMunitionsAdmin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
15 {
16 public:
18  {
19  NextMunition = 0,
20  AllMunitions = 1,
21  NextLaunchTime = 2
22  };
23 
26 
29 
33 
36 
38  static DtAdminContent* create();
39 
41  virtual bool init();
42 
44  virtual const DtAdminContentMessageType& type() const;
45 
48  virtual DtAdminContent * clone() const;
49 
51  virtual DtString stringRep() const;
52 
54  virtual int netRepSize() const;
55 
57  virtual bool setFromNet(const char* contentBuffer,
58  unsigned contentSize);
59 
61  virtual bool setToNet();
62 
67  virtual void setRequestType(RequestType);
68  int requestType() const
69  {
70  return myRequestType;
71  }
72 
73 protected:
75 };
76 
77 
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
int requestType() const
Definition: requestLaunchedMunitionsAdmin.h:68
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
int myRequestType
Definition: requestLaunchedMunitionsAdmin.h:74
RequestType
Definition: requestLaunchedMunitionsAdmin.h:17
#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...
Admin content for a message that will respond with a single munition (DtNextLaunchedMunitionResponseA...
Definition: requestLaunchedMunitionsAdmin.h:14
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...

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)