VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/conIntegerIOPort.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: conIntegerIOPort.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00014 
00015 #ifndef DtConstrainedInegerInputPort_H_
00016 #define DtConstrainedInegerInputPort_H_
00017 
00018 
00019 #include "vrfobjcore/integerIOPort.h"
00020 
00025 #include "vrfobjcore/vrfobjcoreDefines.h"
00026 class DT_DLL_vrfobjcore DtConstrainedIntegerInputPort : public DtIntegerInputPort
00027 {
00028 public:
00029    DtConstrainedIntegerInputPort(const DtString& portName);
00030    virtual ~DtConstrainedIntegerInputPort();
00031 
00034    virtual void receiveData(DtPortData* data);
00035 
00037    virtual void setMinValue(int minVal);
00038    virtual int minValue() const;
00039 
00040    virtual void setMaxValue(int maxVal);
00041    virtual int maxValue() const;
00042 
00043 protected:
00044    int myMaxValue;
00045    int myMinValue;
00046 };
00047 
00053 class DT_DLL_vrfobjcore DtConstrainedIntegerOutputPort : public DtIntegerOutputPort
00054 {
00055 public:
00056    DtConstrainedIntegerOutputPort(const DtString& portName);
00057    virtual ~DtConstrainedIntegerOutputPort();
00058 
00060    virtual void setValue(int value);
00061 
00063    virtual void setMinValue(int minVal);
00064    virtual int minValue() const;
00065 
00066    virtual void setMaxValue(int maxVal);
00067    virtual int maxValue() const;
00068 
00069 protected:
00070    int myMaxValue;
00071    int myMinValue;
00072 };
00073 
00074 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)