VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifControl.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifControl.h,v $ $Revision: 1.15 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 
00019 #ifndef DtIfControl_H_
00020 #define DtIfControl_H_
00021 
00022 #include <vlutil/vlString.h>
00023 #include <vrfExtProtocol/ifaceCont.h>
00024 #include <vl/hostStructs.h>
00025 
00026 
00029 struct DtNetIfControl
00030 {
00031    DtNetFloat64   myTime;              
00032    DtNetU16       myControlType;       
00033    DtNetU32       myPadding1;          
00034    DtNetU16       myPadding2;          
00035 
00036 
00037 };
00038 
00050 #include "vrfmsgs/vrfmsgsDefines.h"
00051 class DT_DLL_vrfmsgs DtIfControl : public DtSimInterfaceContent
00052 {
00053 
00054 public:
00056    DtIfControl();
00057 
00059    DtIfControl(const DtIfControl & orig);
00060 
00062    const DtIfControl & operator=(const DtIfControl & 
00063       orig);
00064 
00065    virtual ~DtIfControl();
00066 
00068    virtual int type() const;
00069 
00070    virtual DtSimInterfaceContent * clone() const;
00071 
00074    virtual int controlType() const;
00075    virtual void setControlType(int controlType);
00076 
00077    virtual int netRepSize() const;
00078    virtual bool setFromNet(const char* contentBuffer, 
00079       unsigned contentSize);
00080    virtual bool setToNet();
00081 
00082    virtual void printDataToString(DtString& str);
00083 
00084    static DtSimInterfaceContent* creator();
00085 
00088    virtual DtTime duration() const;
00089    virtual void setDuration(DtTime time);
00090 
00091 protected:
00092    int     myControlType;
00093    DtTime  myTime;
00094 };
00095 
00096 #endif
00097 
00098 
00099 

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)