VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/integerIOPort.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: integerIOPort.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00014 
00015 #ifndef DtIntegerInputPort_H_
00016 #define DtIntegerInputPort_H_
00017 
00018 #include "vrfobjcore/singleConnectionInputPort.h"
00019 #include "vrfobjcore/outputPort.h"
00020 #include "vrfobjcore/portData.h"
00021 
00024 #include "vrfobjcore/vrfobjcoreDefines.h"
00025 class DT_DLL_vrfobjcore DtIntegerInputPort : public DtSingleConnectionInputPort
00026 {
00027 public:
00028    DtIntegerInputPort(const DtString& portName);
00029    virtual ~DtIntegerInputPort();
00030 
00032    virtual bool acceptType(const DtString& type) const;
00033 
00037    virtual void receiveData(DtPortData* data);
00038 
00040    virtual int value() const;
00041 };
00042 
00045 class DT_DLL_vrfobjcore DtIntegerOutputPort : public DtOutputPort
00046 {
00047 public:
00048    DtIntegerOutputPort(const DtString& portName);
00049    virtual ~DtIntegerOutputPort();
00050 
00052    virtual const DtString type() const;
00053 
00055    virtual void createPortData();
00056 
00059    virtual void setValue(int value);
00060 
00062    virtual int value() const;
00063 };
00064 
00068 class DT_DLL_vrfobjcore DtIntegerPortData : public DtPortData
00069 {
00070 public:
00072    DtIntegerPortData();
00074    virtual ~DtIntegerPortData();
00076    DtIntegerPortData(const DtIntegerPortData& orig);
00078    DtIntegerPortData& operator=(const DtIntegerPortData& orig);
00079 
00081    virtual const DtString type() const;
00082 
00084    virtual void setValue(int v);
00085 
00087    virtual int value() const;
00088 
00090    virtual DtPortData* clone() const;
00091 
00092 protected:
00093    int myValue;
00094 };
00095 
00096 #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)