VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weaponListResponseAdmin.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 
18 {
24 };
25 
27  {
30  std::list<DtString> myResources;
31  bool operator==(const WeaponSystem& rhs) const
32  {
33  return ((myWeaponName == rhs.myWeaponName) && (myWeaponType == rhs.myWeaponType) && (myResources == rhs.myResources) );
34  }
35 
36  bool operator!=(const WeaponSystem& rhs) const
37  {
38  return !(*this == rhs);
39  }
40  };
41 
42 typedef std::list<WeaponSystem> DtWeaponList;
43 
47 {
48 public:
49 
52 
55 
59 
61  virtual ~DtWeaponListResponseAdmin();
62 
64  static DtAdminContent* create();
65 
67  virtual bool init();
68 
70  virtual const DtAdminContentMessageType& type() const;
71 
73 
74  virtual const DtWeaponList& weaponSystems() const;
75  virtual DtWeaponList& weaponSystems();
77 
80  virtual void addWeaponSystem(const DtString& modeName,DtWeaponSystemType systemType,std::list<DtString>& resourceList);
82  virtual void clearWeaponSystems();
83 
86  virtual DtAdminContent* clone() const;
87 
89  virtual DtString stringRep() const;
90 
92  virtual int netRepSize() const;
93 
95  virtual bool setFromNet(const char* contentBuffer,
96  unsigned contentSize);
97 
99  virtual bool setToNet();
100 
101 protected:
104 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer.
bool operator!=(const WeaponSystem &rhs) const
Definition: weaponListResponseAdmin.h:36
Definition: weaponListResponseAdmin.h:22
Admin content which contains the list of weapon systems on an entity.
Definition: weaponListResponseAdmin.h:46
virtual int netRepSize() const
bool operator==(const WeaponSystem &rhs) const
Definition: weaponListResponseAdmin.h:31
Definition: weaponListResponseAdmin.h:23
virtual DtAdminContent * clone() const =0
Make a copy of this content.
DtString myWeaponName
Definition: weaponListResponseAdmin.h:28
Definition: vrfObjectMessageTypeTemplate.h:24
DtWeaponSystemType
This now allows us to query the backend for specific types of weapons.
Definition: weaponListResponseAdmin.h:17
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
Definition: weaponListResponseAdmin.h:20
std::list< DtString > myResources
Definition: weaponListResponseAdmin.h:30
Definition: weaponListResponseAdmin.h:21
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
std::list< WeaponSystem > DtWeaponList
Definition: weaponListResponseAdmin.h:42
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:24
virtual const DtAdminContentMessageType & type() const =0
DtWeaponList myWeaponSystems
The list of weapon system names.
Definition: weaponListResponseAdmin.h:103
Definition: weaponListResponseAdmin.h:26
virtual bool setToNet()
Sets netRep buffer to the contents of this set request.
virtual DtString stringRep() const =0
Get a readable string representation of this content.
DtWeaponSystemType myWeaponType
Definition: weaponListResponseAdmin.h:29
Definition: weaponListResponseAdmin.h:19

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)