VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
systemListResponseAdmin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrftasks/adminContent.h>
14 #include <list>
16 #include <vrfutil/hitZoneId.h>
17 
18 class DtEntityType;
19 
21 {
26 
27  bool operator==(const ComponentSystem& rhs) const
28  {
31  }
32 
33  bool operator!=(const ComponentSystem& rhs) const
34  {
35  return !(*this == rhs);
36  }
37 
38  static bool compare(const ComponentSystem& a, const ComponentSystem& b)
40 };
41 
42 typedef std::vector<ComponentSystem> DtSystemVector;
43 
47 {
48 
49 public:
50 
53 
56 
60 
62  virtual ~DtSystemListResponseAdmin() override;
63 
65  static DtAdminContent* create();
66 
68  virtual bool init() override;
69 
71  virtual const DtAdminContentMessageType& type() const override;
72 
74 
75  virtual void setEntityType(const DtEntityType& entityType);
76  virtual const DtEntityType& entityType() const;
78 
80 
81  virtual const DtSystemVector& systems() const;
82  virtual DtSystemVector& systems();
84 
87  virtual void addSystem(const DtString& name,
88  const DtString& printableName, const bool& enabledDisabled, const DtHitZoneId& zoneId);
90  virtual void clearSystems();
91 
94  virtual DtAdminContent* clone() const override;
95 
97  virtual DtString stringRep() const override;
98 
100  virtual int netRepSize() const override;
101 
103  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
104 
106  virtual bool setToNet() override;
107 
109 
110  virtual void setResponseType(const DtSystemListRequestResponseType& type);
111  virtual const DtSystemListRequestResponseType responseType() const;
113 protected:
116  DtEntityType myEntityType;
118 };
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
DtSystemListRequestResponseType
Definition: systemListRequestAdmin.h:15
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
DtString myPrintableSystemName
Definition: systemListResponseAdmin.h:23
DtSystemVector mySystems
The list of system names.
Definition: systemListResponseAdmin.h:115
bool operator!=(const ComponentSystem &rhs) const
Definition: systemListResponseAdmin.h:33
DtU32 myResponseType
Definition: systemListResponseAdmin.h:117
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
ID value for a hit zone. Consists of a zone function (weapon, sensor, movement, etc.) and a zone number. Includes functions for packing/unpacking into an int.
Definition: hitZoneId.h:21
int myHitZoneId
Definition: systemListResponseAdmin.h:25
Admin content which contains the list of weapon systems on an entity. This is the response to the DtR...
Definition: systemListResponseAdmin.h:46
std::vector< ComponentSystem > DtSystemVector
Definition: systemListResponseAdmin.h:42
bool operator==(const ComponentSystem &rhs) const
Definition: systemListResponseAdmin.h:27
#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...
Definition: systemListResponseAdmin.h:20
static bool compare(const ComponentSystem &a, const ComponentSystem &b)
Definition: systemListResponseAdmin.h:38
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...
DtEntityType myEntityType
Definition: systemListResponseAdmin.h:116
virtual DtString stringRep() const =0
Get a readable string representation of this content. Derived classes must implement this function...
bool mySystemEnabled
Definition: systemListResponseAdmin.h:24
DtString mySystemName
Definition: systemListResponseAdmin.h:22

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)