VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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;
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtForceType myForceType
Definition: sensorDataEntry.h:62
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
DtUUID myTarget
Definition: sensorDataEntry.h:63
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Contains the DtUUID class declaration.
std::vector< DtSensorDataEntry > DtSensorDataEntryList
Definition: sensorDataEntry.h:86
DtObjectType myContactType
Definition: sensorDataEntry.h:60
Definition: objectType.h:27
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
File: sensorDataEntry.h.
Definition: sensorDataEntry.h:27
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
int myCombatIdentificationLevel
Definition: sensorDataEntry.h:61

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)