VR-Link API Documentation for HLA 1516
hCommentInter.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 hCommentInter_H_
00008 #define hCommentInter_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 DtCommentInteraction;
00024 
00025 
00027 typedef void (*DtCommentInteractionCb) 
00028    (DtCommentInteraction* inter, void* usr);
00029 
00030 
00031 
00037 class DT_DLL_VL DtCommentInteraction : public DtInteractionWithData
00038 {
00039 public:
00040 
00042    DtCommentInteraction();
00043 
00045    virtual ~DtCommentInteraction();
00046 
00048    DtCommentInteraction(const DtCommentInteraction& orig);
00049 
00051    DtCommentInteraction& operator=(
00052       const DtCommentInteraction& orig);
00053 
00055    virtual void printData() const;
00056 
00058    virtual void printDataToStream(std::ostream& stream) const;
00059 
00061    virtual void setSenderId(const DtEntityIdentifier& id);
00062    virtual const DtEntityIdentifier& senderId() const;
00063 
00065    virtual void setReceiverId(const DtEntityIdentifier& id);
00066    virtual const DtEntityIdentifier& receiverId() const;
00067 
00071    virtual void setComment(const char *message, int size);
00072    virtual const char* comment() const;
00073 
00075    virtual const char* name() const;
00076 
00077 public:
00078 
00081    static DtInteraction* create();
00082 
00085    static void addCallback(DtExerciseConn* conn,
00086       DtCommentInteractionCb cb, void* usr,
00087       DtDDMRegionSP region = DtDDMRegionSP());
00088    static void removeCallback(DtExerciseConn* conn,
00089       DtCommentInteractionCb cb, void* usr,
00090       DtDDMRegionSP region = DtDDMRegionSP());
00091 
00092 protected:
00093 
00094    DtEntityIdentifier myOrigEnt;
00095    DtEntityIdentifier myReceiveEnt;
00096 };
00097 
00098 #endif
00099 #endif
00100 

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)