MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrSim
lgrDisArtPart.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef lgrDisArtPart_H_
10
#define lgrDisArtPart_H_
11
12
#if DtDIS
13
14
#include "
lgrSim.h
"
15
16
class
DtString;
17
18
#include <vlpi/apSpec.h>
19
20
namespace
MAKLogger
21
{
22
23
class
DtLgrArtPartList;
24
29
class
DT_DLL_LGRSIM
DtLgrArtPart
30
{
31
protected
:
34
36
DtLgrArtPart
();
37
39
virtual
~
DtLgrArtPart
();
40
42
DtLgrArtPart
(
const
DtArtPartSpec& spec );
43
45
DtLgrArtPart
(
const
DtLgrArtPart
& src );
46
48
DtLgrArtPart
& operator=(
const
DtLgrArtPart
& src );
49
50
public
:
51
friend
class
DtLgrArtPartList
;
52
53
public
:
55
virtual
bool
setUsingParam(
int
paramType,
bool
yesNo =
true
);
56
virtual
bool
usingParam(
int
paramType )
const
;
57
61
virtual
bool
setParamValue(
int
paramType,
float
value );
62
virtual
bool
paramValue(
int
paramType,
float
& value )
const
;
63
65
virtual
int
numParams()
const
;
66
68
inline
void
setPartType(
int
val );
69
inline
int
partType()
const
;
70
72
inline
void
setPartNum(
int
val );
73
inline
int
partNum()
const
;
74
76
inline
void
setPartAttachedTo(
int
val );
77
inline
int
partAttachedTo()
const
;
78
80
virtual
int
firstValidParamType()
const
;
81
83
virtual
int
nextValidParamType(
int
paramType )
const
;
84
86
virtual
void
print();
87
virtual
void
print( DtString& str );
88
89
public
:
91
static
bool
artParamIsRate(
int
paramType );
93
static
int
computePartType(
int
partPlusParam );
95
static
int
computeParameterType(
int
partPlusParam );
96
97
protected
:
98
float
myParamVals[DtMAX_PARAMS_PER_PART+1];
99
unsigned
int
myParamSetMask
;
100
int
myPartType
;
101
int
myPartNum
;
102
int
myPartAttachedTo
;
103
};
104
105
106
inline
void
DtLgrArtPart::setPartType
(
int
val )
107
{
108
myPartType
= val;
109
}
110
111
112
inline
int
DtLgrArtPart::partType
()
const
113
{
114
return
myPartType
;
115
}
116
117
118
inline
void
DtLgrArtPart::setPartNum
(
int
val )
119
{
120
myPartNum
= val;
121
}
122
123
124
inline
int
DtLgrArtPart::partNum
()
const
125
{
126
return
myPartNum
;
127
}
128
129
130
inline
void
DtLgrArtPart::setPartAttachedTo
(
int
val )
131
{
132
myPartAttachedTo
= val;
133
}
134
135
136
inline
int
DtLgrArtPart::partAttachedTo
()
const
137
{
138
return
myPartAttachedTo
;
139
}
140
141
}
142
143
#endif
144
#endif
145
146
Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)