VR-Link API Documentation for HLA 1.3
tSetDataInter.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 tSetDataInter_H_
00008 #define tSetDataInter_H_
00009 
00010 #if DtTENA
00011 
00012 #include "tInterWData.h"
00013 #include <vlpi/entityIdentifier.h>
00014 #include "globalObjDes.h"
00015 
00019 
00020 class DT_DLL_VL DtSetDataInteraction;
00021 
00023 typedef void (*DtSetDataInteractionCb)(DtSetDataInteraction* inter, void* usr);
00024 
00030 class DT_DLL_VL DtSetDataInteraction : public DtInteractionWithData
00031 {
00032 public:
00034    DtSetDataInteraction();
00035 
00037    virtual ~DtSetDataInteraction();
00038 
00040    DtSetDataInteraction(const DtSetDataInteraction& orig);
00041 
00043    DtSetDataInteraction& operator=(
00044       const DtSetDataInteraction& orig);
00045 
00047    virtual void setSenderId(const DtEntityIdentifier& id);
00048 
00050    virtual const DtEntityIdentifier& senderId() const;
00051 
00053    virtual void setReceiverId(const DtEntityIdentifier& id);
00054 
00056    virtual const DtEntityIdentifier& receiverId() const;
00057 
00059    virtual void setRequestId(unsigned long id);
00060 
00062    virtual unsigned long requestId() const;
00063 
00065    virtual const char* name() const;
00066 
00068    virtual void printData() const;
00069 
00071    virtual void printDataToStream(std::ostream& stream) const;
00072 
00073 public:
00074 
00077    static DtInteraction* create();
00078 
00081    static void addCallback(DtExerciseConn* conn,
00082       DtSetDataInteractionCb cb, void* usr);
00083    static void removeCallback(DtExerciseConn* conn,
00084       DtSetDataInteractionCb cb, void* usr);
00085 
00086 
00087 protected:
00088    DtEntityIdentifier myOrigEnt;
00089    DtEntityIdentifier myReceiveEnt;
00090    int                myRequestId;
00091 };
00092 
00093 #endif
00094 #endif
00095 
00096 

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)