VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifRequestEmbarkationInformation.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifRequestEmbarkationInformation.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtIfRequestEmbarkationInformation_H_
00013 #define DtIfRequestEmbarkationInformation_H_
00014 
00015 #include <vrfExtProtocol/ifaceCont.h>
00016 #include <vlutil/vlNetTypes.h>
00017 #include <vlpi/NetStructs.h>
00018 
00023 
00024 const int DtEmbarkRequestSlotInformation = 0;
00025 const int DtEmbarkRequestSlotReservation = 1;
00026 const int DtEmbarkRequestGiveUpSlot = 2;
00027 const int DtEmbarkRequestDisembarkInformation = 3;
00028 
00029 struct DtNetIfRequestEmbarkationInformation
00030 {
00031    DtNetU32      myRequestId;                
00032    DtNetU8       myEmbarkObjectNameLength;
00033    DtNetU8       myParentNameLength;
00034    DtNetU8       myRequestType;
00035    DtNetU8       myPadding;
00036 };                                            
00037 
00043 #include "vrfmsgs/vrfmsgsDefines.h"
00044 class DT_DLL_vrfmsgs DtIfRequestEmbarkationInformation : public DtSimInterfaceContent
00045 {
00046 
00047 public:
00049    DtIfRequestEmbarkationInformation();
00050 
00052    DtIfRequestEmbarkationInformation(
00053       const DtIfRequestEmbarkationInformation & orig);
00054 
00056    const DtIfRequestEmbarkationInformation & operator=(
00057       const DtIfRequestEmbarkationInformation & orig);
00058 
00059    virtual ~DtIfRequestEmbarkationInformation();
00060 
00062    virtual int type() const;
00063 
00065    virtual DtSimInterfaceContent * clone() const;
00066 
00067    virtual void setEmbarkObject(const DtString&);
00068    virtual const DtString& embarkObject() const;
00069 
00070    virtual void setParent(const DtString&);
00071    virtual const DtString& parent() const;
00072 
00073    virtual void setRequestType(short);
00074    virtual short requestType() const;
00075 
00077    virtual int netRepSize() const;
00078 
00080    virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
00081 
00084    virtual bool setToNet();
00085 
00088    virtual void printDataToString(DtString& str);
00089 
00091    virtual void setRequestId(DtU32);
00092    virtual DtU32 requestId() const;
00093 
00097    static DtSimInterfaceContent* creator();
00098 
00099 protected:
00100    DtString myEmbarkObject;
00101    DtString myParent;
00102    short    myRequestType;
00103    DtU32    myRequestId;
00104 };
00105 
00106 #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)