VR-Forces 4.10 Class Documentation
 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 
17 class DtEntityType;
18 
20 {
24  bool operator==(const ComponentSystem& rhs) const
25  {
28  }
29 
30  bool operator!=(const ComponentSystem& rhs) const
31  {
32  return !(*this == rhs);
33  }
34 
35  static bool compare(const ComponentSystem& a, const ComponentSystem& b)
37 };
38 
39 typedef std::vector<ComponentSystem> DtSystemVector;
40 
44 {
45 
46 public:
47 
50 
53 
57 
59  virtual ~DtSystemListResponseAdmin();
60 
62  static DtAdminContent* create();
63 
65  virtual bool init();
66 
68  virtual const DtAdminContentMessageType& type() const;
69 
71 
72  virtual void setEntityType(const DtEntityType& entityType);
73  virtual const DtEntityType& entityType() const;
75 
77 
78  virtual const DtSystemVector& systems() const;
79  virtual DtSystemVector& systems();
81 
84  virtual void addSystem(const DtString& name, const DtString& printableName, const bool& enabledDisabled);
86  virtual void clearSystems();
87 
90  virtual DtAdminContent* clone() const;
91 
93  virtual DtString stringRep() const;
94 
96  virtual int netRepSize() const;
97 
99  virtual bool setFromNet(const char* contentBuffer,
100  unsigned contentSize);
101 
103  virtual bool setToNet();
104 
106 
107  virtual void setResponseType(const DtSystemListRequestResponseType& type);
108  virtual const DtSystemListRequestResponseType responseType() const;
110 protected:
113  DtEntityType myEntityType;
115 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer.
virtual int netRepSize() const
DtSystemListRequestResponseType
Definition: systemListRequestAdmin.h:15
virtual DtAdminContent * clone() const =0
Make a copy of this content.
Definition: vrfObjectMessageTypeTemplate.h:24
DtString myPrintableSystemName
Definition: systemListResponseAdmin.h:22
DtSystemVector mySystems
The list of system names.
Definition: systemListResponseAdmin.h:112
bool operator!=(const ComponentSystem &rhs) const
Definition: systemListResponseAdmin.h:30
DtU32 myResponseType
Definition: systemListResponseAdmin.h:114
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
Admin content which contains the list of weapon systems on an entity.
Definition: systemListResponseAdmin.h:43
std::vector< ComponentSystem > DtSystemVector
Definition: systemListResponseAdmin.h:39
bool operator==(const ComponentSystem &rhs) const
Definition: systemListResponseAdmin.h:24
#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:19
static bool compare(const ComponentSystem &a, const ComponentSystem &b)
Definition: systemListResponseAdmin.h:35
DtAdminContent.
Definition: adminContent.h:24
virtual const DtAdminContentMessageType & type() const =0
virtual bool setToNet()
Sets netRep buffer to the contents of this set request.
DtEntityType myEntityType
Definition: systemListResponseAdmin.h:113
virtual DtString stringRep() const =0
Get a readable string representation of this content.
bool mySystemEnabled
Definition: systemListResponseAdmin.h:23
DtString mySystemName
Definition: systemListResponseAdmin.h:21

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)