VR-Forces 4.3.1 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) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: sensorDataEntry.h,v $ $Revision: 1.5 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 
19 #ifndef sensorDataEntry_H_
20 #define sensorDataEntry_H_
21 
22 #include <vlutil/vlString.h>
23 #include <vlutil/vlNetTypes.h>
24 #include <vrfExtProtocol/objectType.h>
25 #include <vlpi/disEnums.h>
26 #include <vector>
27 
30 #include "vrfmsgs/vrfmsgsDefines.h"
32 {
33 public:
36  DtSensorDataEntry& operator=(const DtSensorDataEntry& orig);
37 
38  virtual ~DtSensorDataEntry();
39 
40  virtual void setTargetName(const DtString& name);
41  virtual DtString targetName() const;
42 
43  virtual void setContactType(const DtObjectType& type);
44  virtual DtObjectType contactType() const;
45 
46  virtual void setCombatIdentificationLevel(const int level);
47  virtual const int combatIdentificationLevel() const;
48 
50  virtual void setForceType(const DtForceType forceType);
51  virtual const DtForceType forceType() const;
52 
53  virtual int netRepSize() const;
54 
55  virtual bool setFromNet(const char* contentBuffer,
56  unsigned contentSize);
57 
58  virtual bool setToNet(char* contentBuffer);
59 
60 protected:
61  DtObjectType myContactType;
63  DtForceType myForceType;
65 };
66 
67 namespace DtBufferSerialize
68 {
70  DT_DLL_vrfmsgs int getSize(const DtSensorDataEntry& data);
71 
77  DT_DLL_vrfmsgs char *encode(const DtSensorDataEntry& data, char *buffer);
78 
84  DT_DLL_vrfmsgs const char *decode(DtSensorDataEntry &data, const char *buffer) ;
85 }
86 
87 typedef std::vector<DtSensorDataEntry> DtSensorDataEntryList;
88 
89 #endif

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)