VR-Forces 4.6 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 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)