![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifInitConn.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00017 00018 00019 #ifndef DtIfInitConn_H_ 00020 #define DtIfInitConn_H_ 00021 00022 #include <vlutil/vlString.h> 00023 #include <vrfExtProtocol/ifaceCont.h> 00024 #include <vlutil/vlNetTypes.h> 00025 00026 struct DtNetIfInitConnection 00027 { 00028 DtNetU32 port; 00029 }; 00030 00031 #include "vrfmsgs/vrfmsgsDefines.h" 00032 class DT_DLL_vrfmsgs DtIfInitConnection : public DtSimInterfaceContent 00033 { 00034 00035 public: 00037 DtIfInitConnection(); 00038 00040 DtIfInitConnection(const DtIfInitConnection & orig); 00041 00043 const DtIfInitConnection & operator=(const DtIfInitConnection & orig); 00044 00045 virtual ~DtIfInitConnection(); 00046 00048 virtual int type() const; 00049 00050 virtual DtSimInterfaceContent * clone() const; 00051 00052 virtual int port() const; 00053 virtual void setPort(int port); 00054 00055 virtual int netRepSize() const; 00056 virtual bool setFromNet(const char* contentBuffer, 00057 unsigned contentSize); 00058 virtual bool setToNet(); 00059 00060 virtual void printDataToString(DtString& str); 00061 00062 static DtSimInterfaceContent* creator(); 00063 00064 protected: 00065 00066 int myPort; 00067 }; 00068 00069 #endif 00070