VR-Link API Documentation for HLA 1.3
tCommentInter.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 #ifndef tCommentInter_H_
00007 #define tCommentInter_H_
00008 
00012 
00013 #if DtTENA
00014 
00015 #include "tInterWData.h"
00016 #include <vlpi/entityIdentifier.h>
00017 #include "globalObjDes.h"
00018 
00019 class DT_DLL_VL DtCommentInteraction;
00020 
00022 typedef void (*DtCommentInteractionCb)(DtCommentInteraction* inter, void* usr);
00023 
00029 class DT_DLL_VL DtCommentInteraction : public DtInteractionWithData
00030 {
00031 public:
00033    DtCommentInteraction();
00034 
00036    virtual ~DtCommentInteraction();
00037 
00039    DtCommentInteraction(const DtCommentInteraction& orig);
00040 
00042    DtCommentInteraction& operator=(
00043       const DtCommentInteraction& orig);
00044 
00046    virtual void setSenderId(const DtEntityIdentifier& id);
00047 
00049    virtual const DtEntityIdentifier& senderId() const;
00050 
00052    virtual void setReceiverId(const DtEntityIdentifier& id);
00053 
00055    virtual const DtEntityIdentifier& receiverId() const;
00056 
00059    virtual void setComment(const char *message, int size);
00060 
00064    virtual const char* comment() const;
00065 
00067    virtual const char* name() const;
00068 
00070    virtual void printData() const;
00071 
00073    virtual void printDataToStream(std::ostream& stream) const;
00074 
00075 public:
00076 
00079    static DtInteraction* create();
00080 
00082    static void addCallback(DtExerciseConn* conn,
00083       DtCommentInteractionCb cb, void* usr);
00084 
00086    static void removeCallback(DtExerciseConn* conn,
00087       DtCommentInteractionCb cb, void* usr);
00088 
00089 protected:
00090    DtEntityIdentifier myOrigEnt;
00091    DtEntityIdentifier myReceiveEnt;
00092 };
00093 
00094 #endif
00095 #endif
00096 
00097 

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)