VR-Forces 4.5 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
vrfobjcore
integerIOPort.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: integerIOPort.h,v $ $Revision: 1.8 $ $State: Exp $
7
*******************************************************************************/
8
11
14
15
#ifndef DtIntegerInputPort_H_
16
#define DtIntegerInputPort_H_
17
18
#include "
vrfobjcore/singleConnectionInputPort.h
"
19
#include "
vrfobjcore/outputPort.h
"
20
#include "
vrfobjcore/portData.h
"
21
24
#include "
vrfobjcore/vrfobjcoreDefines.h
"
25
class
DT_DLL_vrfobjcore
DtIntegerInputPort
:
public
DtSingleConnectionInputPort
26
{
27
public
:
28
DtIntegerInputPort
(
const
DtString
& portName);
29
virtual
~
DtIntegerInputPort
();
30
32
virtual
bool
acceptType
(
const
DtString
& type)
const
;
33
37
virtual
void
receiveData
(
DtPortData
* data);
38
40
virtual
int
value()
const
;
41
};
42
45
class
DT_DLL_vrfobjcore
DtIntegerOutputPort
:
public
DtOutputPort
46
{
47
public
:
48
DtIntegerOutputPort
(
const
DtString
& portName);
49
virtual
~
DtIntegerOutputPort
();
50
52
virtual
const
DtString
type
()
const
;
53
55
virtual
void
createPortData
();
56
59
virtual
void
setValue(
int
value);
60
62
virtual
int
value()
const
;
63
};
64
68
class
DT_DLL_vrfobjcore
DtIntegerPortData
:
public
DtPortData
69
{
70
public
:
72
DtIntegerPortData
();
74
virtual
~
DtIntegerPortData
();
76
DtIntegerPortData
(
const
DtIntegerPortData
& orig);
78
DtIntegerPortData
&
operator=
(
const
DtIntegerPortData
& orig);
79
81
virtual
const
DtString
type
()
const
;
82
84
virtual
void
setValue(
int
v);
85
87
virtual
int
value()
const
;
88
90
virtual
DtPortData
*
clone
()
const
;
91
92
protected
:
93
int
myValue
;
94
};
95
96
#endif
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)