VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifHostilityMatrix.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
15 
16 
17 #pragma once
18 
20 #include <vlutil/vlString.h>
21 #include <vlutil/vlNetTypes.h>
22 #include <vl/hostStructs.h>
23 
24 #include <vector>
25 
27 {
28  DtNetU8 myNumForces; //Number of Forces in matrix (n x n matrix)
29  //list of force settings as chars
30 };
31 
32 
33 //forward defs
34 typedef std::vector<bool> DtHostilityVector;
35 typedef std::vector<DtHostilityVector> DtHostilityMatrix;
36 typedef std::vector<DtString> DtNameVector;
37 typedef std::vector<int> DtForceTypeVector;
38 
43 #include "vrfmsgs/vrfmsgsDefines.h"
45 {
46 
47 public:
50 
53 
56 
57  virtual ~DtIfHostilityMatrix();
58 
59  virtual int type() const;
60 
61  virtual DtSimInterfaceContent* clone() const;
62 
64  virtual int numberOfForces() const;
65  virtual void setNumberOfForces(int num);
66 
67  //get the hostility list for the given force
68  virtual const DtHostilityVector& hostilityVector(int force) const;
69  virtual DtHostilityVector& hostilityVector(int force);
70 
72  virtual int indexOfForce(int) const;
73 
74  //get the names list
75  virtual const DtNameVector& nameVector() const;
76  virtual DtNameVector& nameVector();
77 
78  //get the force type list that matches indices to actual force ids
79  virtual const DtForceTypeVector& forceTypeVector() const;
80  virtual DtForceTypeVector& forceTypeVector();
81 
82  virtual int netRepSize() const;
83 
84  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
85 
86  virtual bool setToNet();
87 
89  virtual void printDataToString(DtString& str);
90 
91  static DtSimInterfaceContent* creator();
92 
93 protected:
97 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)