VR-Forces 4.3 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
vrfutil
ceRandom.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: ceRandom.h,v $ $Revision: 1.3 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtCeRandom_H_
13
#define DtCeRandom_H_
14
15
#include "
vrfutil/readerWriter.h
"
16
#include "
vrfutil/rwString.h
"
17
#include "
vrfutil/rwReal.h
"
18
#include "
vrfutil/simCondExpr.h
"
19
20
const
char
DtCeRandomTypeName
[] =
"Random"
;
21
22
25
struct
DtNetCeRandom
26
{
27
DtNetFloat64
myProbability
;
28
};
29
35
#include "
vrfutil/vrfutilDefines.h
"
36
class
DT_DLL_vrfutil
DtCeRandom
:
public
DtSimCondExpr
37
{
38
public
:
39
41
DtCeRandom
();
42
44
DtCeRandom
(
DtReaderWriterRegistry
* parentRegistry);
45
47
DtCeRandom
(
const
DtCeRandom
& orig,
48
DtReaderWriterRegistry
* parentRegistry = NULL);
49
51
virtual
~
DtCeRandom
();
52
54
DtCeRandom
&
operator=
(
const
DtCeRandom
& orig);
55
57
virtual
DtSimCondExpr
*
clone
(
DtReaderWriterRegistry
* parentRegistry = NULL);
58
60
virtual
int
type
()
const
;
61
63
virtual
DtReal probability()
const
;
65
virtual
void
setProbability(DtReal arg);
66
79
virtual
DtString
stringRep
(
int
subExprIndex = DtSR_EXPR)
const
;
80
83
virtual
int
netRepSize
()
const
;
84
86
virtual
bool
setFromNet
(
const
char
* contentBuffer,
87
unsigned
contentSize);
88
91
virtual
bool
setToNet
();
92
93
static
DtSimCondExpr
* creator();
94
95
protected
:
96
DtRwReal
myProbability
;
97
};
98
99
#endif
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)