VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmsgs
ifSensorData.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifSensorData.h,v $ $Revision: 1.8 $ $State: Exp $
7
*******************************************************************************/
8
11
17
18
19
#ifndef ifSensorData_H_
20
#define ifSensorData_H_
21
22
#include <vlutil/vlString.h>
23
#include <vrfExtProtocol/simInterfaceContent.h>
24
#include <vlutil/vlNetTypes.h>
25
#include <vl/hostStructs.h>
26
#include "
vrfmsgs/sensorDataEntry.h
"
27
28
struct
DtNetIfSensorData
29
{
30
DtNetU32
mySensorType
;
31
DtNetU32
myNumSensorEntries
;
32
};
33
34
40
#include "
vrfmsgs/vrfmsgsDefines.h
"
41
class
DT_DLL_vrfmsgs
DtIfSensorData
:
public
DtSimInterfaceContent
42
{
43
44
public
:
46
DtIfSensorData
();
47
49
DtIfSensorData
(
const
DtIfSensorData
& orig);
50
52
const
DtIfSensorData
& operator=(
const
DtIfSensorData
& orig);
53
54
virtual
~
DtIfSensorData
();
55
56
virtual
int
type()
const
;
57
58
virtual
DtSimInterfaceContent
* clone()
const
;
59
62
virtual
void
setSensorType(
int
type);
63
virtual
int
sensorType()
const
;
64
65
virtual
void
setSourceEntityName(
const
DtString
& entityName);
66
virtual
DtString
sourceEntityName()
const
;
67
68
virtual
void
setSensorName(
const
DtString
& sensorName);
69
virtual
DtString
sensorName()
const
;
70
71
virtual
const
DtSensorDataEntryList
& sensorDataEntryList()
const
;
72
virtual
DtSensorDataEntryList
& sensorDataEntryList();
73
74
virtual
int
netRepSize()
const
;
75
76
virtual
bool
setFromNet(
const
char
* contentBuffer,
77
unsigned
contentSize);
78
79
virtual
bool
setToNet();
80
82
virtual
void
printDataToString(
DtString
& str);
83
84
static
DtSimInterfaceContent
* creator();
85
86
protected
:
87
DtU32
mySensorType
;
88
DtString
mySourceEntityName
;
89
DtString
mySensorName
;
90
DtSensorDataEntryList
mySensorDataEntryList
;
91
};
92
93
#endif
94
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
)