![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: stringIOPort.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtStringIOPort_H_ 00016 #define DtStringIOPort_H_ 00017 00018 #include <vlutil/vlString.h> 00019 00020 #include "vrfobjcore/singleConnectionInputPort.h" 00021 #include "vrfobjcore/outputPort.h" 00022 #include "vrfobjcore/portData.h" 00023 00026 #include "vrfobjcore/vrfobjcoreDefines.h" 00027 class DT_DLL_vrfobjcore DtStringInputPort : public DtSingleConnectionInputPort 00028 { 00029 public: 00031 DtStringInputPort(const DtString & portName); 00032 00034 virtual ~DtStringInputPort(); 00035 00037 virtual bool acceptType(const DtString& type) const; 00038 00039 virtual void receiveData(DtPortData* data); 00040 00041 virtual const DtString value() const; 00042 00043 protected: 00045 DtStringInputPort(const DtStringInputPort & orig); 00047 const DtStringInputPort & operator=(const DtStringInputPort & orig); 00048 }; 00049 00052 class DT_DLL_vrfobjcore DtStringOutputPort : public DtOutputPort 00053 { 00054 public: 00055 DtStringOutputPort(const DtString& portName); 00056 virtual ~DtStringOutputPort(); 00057 00059 virtual const DtString type() const; 00060 00062 virtual void createPortData(); 00063 00066 virtual void setValue(const DtString& str); 00067 00069 virtual const DtString& value() const; 00070 00071 protected: 00073 DtStringOutputPort(const DtStringOutputPort & orig); 00075 const DtStringOutputPort & operator=(const DtStringOutputPort & orig); 00076 }; 00077 00081 class DT_DLL_vrfobjcore DtStringPortData : public DtPortData 00082 { 00083 public: 00085 DtStringPortData(); 00087 virtual ~DtStringPortData(); 00089 DtStringPortData(const DtStringPortData& orig); 00091 DtStringPortData& operator=(const DtStringPortData& orig); 00092 00094 virtual const DtString type() const; 00095 00097 virtual void setValue(const DtString&); 00098 00100 virtual const DtString& value() const; 00101 00103 virtual DtPortData* clone() const; 00104 00105 protected: 00106 DtString myValue; 00107 }; 00108 00109 #endif