VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
19 #include "vrfobjcore/outputPort.h"
20 #include "vrfobjcore/portData.h"
21 
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 
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 
69 {
70 public:
74  virtual ~DtIntegerPortData();
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)