VR-Link API Documentation for HLA 1.3
hSetDataInter.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #ifndef hSetDataInter_H_
00008 #define hSetDataInter_H_
00009 
00010 #if DtHLA
00011 
00012 #include "hInterWData.h"
00013 #include "hostStructs.h"
00014 #include <matrix/vlMath.h>
00015 
00016 
00017 
00021 
00022 class DT_DLL_VL DtExerciseConn;
00023 class DT_DLL_VL DtSetDataInteraction;
00024 
00025 
00026 
00028 typedef void (*DtSetDataInteractionCb) 
00029    (DtSetDataInteraction* inter, void* usr);
00030 
00036 class DT_DLL_VL DtSetDataInteraction : public DtInteractionWithData
00037 {
00038 public:
00039 
00041    DtSetDataInteraction();
00042 
00044    virtual ~DtSetDataInteraction();
00045 
00047    DtSetDataInteraction(const DtSetDataInteraction& orig);
00048 
00050    DtSetDataInteraction& operator=(
00051       const DtSetDataInteraction& orig);
00052 
00054    virtual void printData() const;
00055 
00057    virtual void printDataToStream(std::ostream& stream) const;
00058 
00060    virtual void setSenderId(const DtEntityIdentifier& id);
00061    virtual const DtEntityIdentifier& senderId() const;
00062 
00064    virtual void setReceiverId(const DtEntityIdentifier& id);
00065    virtual const DtEntityIdentifier& receiverId() const;
00066 
00068    virtual void setRequestId(unsigned long id);
00069    virtual unsigned long requestId() const;
00070 
00072    virtual const char* name() const;
00073 
00074 public:
00075 
00078    static DtInteraction* create();
00079 
00082    static void addCallback(DtExerciseConn* conn,
00083       DtSetDataInteractionCb cb, void* usr,
00084       DtDDMRegionSP region = DtDDMRegionSP());
00085    static void removeCallback(DtExerciseConn* conn,
00086       DtSetDataInteractionCb cb, void* usr, 
00087       DtDDMRegionSP region = DtDDMRegionSP());
00088 
00089 protected:
00090 
00091    DtEntityIdentifier myOrigEnt;
00092    DtEntityIdentifier myReceiveEnt;
00093    unsigned long myRequestId;
00094 };
00095 
00096 #endif
00097 #endif
00098 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)