VR-Link API Documentation for HLA 1.3
testSimpInter.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 TestInteraction_H_
00008 #define TestInteraction_H_
00009 
00010 #if DtHLA
00011 
00012 #include <vl/hInteraction.h>
00013 #include <matrix/vlVector.h>
00014 #include <vl/hExerciseConn.h>
00015 
00016 class TestSimpleInteraction;
00017 
00022 typedef void (*TestSimpleInteractionCb)(TestSimpleInteraction* inter, void* usr);
00023 
00029 class TestSimpleInteraction : public DtInteraction
00030 {
00031 public:
00032 
00036    TestSimpleInteraction();
00037 
00041    virtual ~TestSimpleInteraction();
00042 
00046    TestSimpleInteraction(const TestSimpleInteraction& orig);
00047 
00051    TestSimpleInteraction& operator=(const TestSimpleInteraction& orig);
00052 
00061 #if DtHLA_1516
00062    virtual const RTI::ParameterHandleValueMap& phvm() const;
00063 #else
00064    virtual const RTI::ParameterHandleValuePairSet& phvps() const;
00065 #endif
00066 
00075 #if DtHLA_1516
00076    virtual void setFromPhvm(const RTI::ParameterHandleValueMap& pvMap);
00077 #else
00078    virtual void setFromPhvps(const RTI::ParameterHandleValuePairSet& pvSet);
00079 #endif
00080 
00084    virtual const char* name() const;
00085 
00089    virtual void printData() const;
00090 
00098 
00100    virtual void setNumber(int num);
00101    virtual int number() const;
00102 
00104    virtual void setVector(const DtVector& vec);
00105    virtual const DtVector& vector() const;
00106 
00107 public:
00108 
00114    static DtInteraction* create();
00115 
00122    static void addCallback(DtExerciseConn* conn,
00123       TestSimpleInteractionCb cb, void* usr);
00124    static void removeCallback(DtExerciseConn* conn,
00125       TestSimpleInteractionCb cb, void* usr);
00126 
00127 protected:
00128 
00136    virtual char* interactionClassToUse(DtExerciseConn* exConn) const;
00137 
00138 protected:
00139    
00141    int myNum;
00142    DtVector myVec;
00143 };
00144 
00145 #endif
00146 #endif

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)