VR-Link API Documentation for HLA Evolved
tStartInter.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 tStartInter_H_
00008 #define tStartInter_H_
00009 
00010 #if DtTENA
00011 
00012 #include "tInteraction.h"
00013 #include <vlpi/entityIdentifier.h>
00014 #include <vlutil/vlTime.h>
00015 
00019 
00020 class DT_DLL_VL DtStartResumeInteraction;
00021 
00023 typedef void (*DtStartResumeInteractionCb)(DtStartResumeInteraction* inter, void* usr);
00024 
00028 class DT_DLL_VL DtStartResumeInteraction : public DtInteraction
00029 {
00030 public:
00032    DtStartResumeInteraction();
00033 
00035    virtual ~DtStartResumeInteraction();
00036 
00038    DtStartResumeInteraction(const DtStartResumeInteraction& orig);
00039 
00041    DtStartResumeInteraction& operator=(const DtStartResumeInteraction& orig);
00042 
00044    virtual void setSenderId(const DtEntityIdentifier& id);
00045 
00047    virtual const DtEntityIdentifier& senderId() const;
00048 
00050    virtual void setReceiverId(const DtEntityIdentifier& id);
00051 
00053    virtual const DtEntityIdentifier& receiverId() const;
00054 
00056    virtual void setRealWorldTime(const DtTime time);
00057 
00059    virtual DtTime realWorldTime() const;
00060    
00062    virtual void setSimulationTime(const DtTime time);
00063 
00065    virtual DtTime simulationTime() const;
00066 
00068    virtual void setRequestId(int id);
00069 
00071    virtual int requestId() const;
00072 
00074    virtual const char* name() const;
00075 
00077    virtual void printData() const;
00078 
00080    virtual void printDataToStream(std::ostream& stream) const;
00081 
00082 public:
00083 
00086    static DtInteraction* create();
00087 
00090    static void addCallback(DtExerciseConn* conn,
00091       DtStartResumeInteractionCb cb, void* usr);
00092    static void removeCallback(DtExerciseConn* conn,
00093       DtStartResumeInteractionCb cb, void* usr);
00094 
00095 
00096 protected:
00097    DtEntityIdentifier myOrigEnt;
00098    DtEntityIdentifier myReceiveEnt;
00099    int                myRequestId;
00100    DtTime             myRealTime;
00101    DtTime             mySimTime;
00102 };
00103 
00104 #endif
00105 #endif
00106 
00107 

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)