VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sensorDataEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vlutil/vlString.h>
18 #include <vlutil/vlNetTypes.h>
20 #include <vlpi/disEnums.h>
21 #include <vector>
22 #include <vrfutil/rwUUID.h>
23 
26 #include "vrfmsgs/vrfmsgsDefines.h"
28 {
29 public:
32  DtSensorDataEntry& operator=(const DtSensorDataEntry& orig);
33 
34  virtual ~DtSensorDataEntry();
35 
37  virtual void setTarget(const DtUUID&);
38 
40  virtual const DtUUID& target() const;
41 
42  virtual void setContactType(const DtObjectType& type);
43  virtual DtObjectType contactType() const;
44 
45  virtual void setCombatIdentificationLevel(const int level);
46  virtual const int combatIdentificationLevel() const;
47 
49  virtual void setForceType(const DtForceType forceType);
50  virtual const DtForceType forceType() const;
51 
52  virtual int netRepSize() const;
53 
54  virtual bool setFromNet(const char* contentBuffer,
55  unsigned contentSize);
56 
57  virtual bool setToNet(char* contentBuffer);
58 
59 protected:
62  DtForceType myForceType;
64 };
65 
66 namespace DtBufferSerialize
67 {
69  DT_DLL_vrfmsgs int getSize(const DtSensorDataEntry& data);
70 
76  DT_DLL_vrfmsgs char *encode(const DtSensorDataEntry& data, char *buffer);
77 
83  DT_DLL_vrfmsgs const char *decode(DtSensorDataEntry &data, const char *buffer) ;
84 }
85 
86 typedef std::vector<DtSensorDataEntry> DtSensorDataEntryList;

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)