VR-Exchange 2.1 API Documentation
hlaInTrans.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 2012 VT MAK
3  *********************************************************************/
4 
5 #pragma once
6 
8 #include <hlaBroker/hlaBroker.h>
9 #include <portal/pMacros.h>
10 #include <hlaBroker/hMacros.h>
11 
12 namespace DtHlaBrokerNamespace = DtVREXCHANGE_NAMESPACE::DtHLA_BROKER_NAMESPACE;
13 
14 // All HLA Translators must have the following template arguments:
15 // The integer define of the DtPortalMessageKind,
16 // The PortalObject this message translates,
17 // The Portal Interaction class the message translates
18 // The HLA Interaction class
19 #define HLA_INTERACTION_TEMPLATE_LIST \
20  template \
21  < class T_PortalInteraction \
22  , class T_HlaInteraction>
24 class DT_DLL_HLABROKER DtHlaInteractionTranslator : public DtInteractionTranslator
25 {
26 public:
27  DtHlaInteractionTranslator(DtHlaBroker *broker, MAKVrExchange::DtPortalMessageKind messageKind);
28  virtual ~DtHlaInteractionTranslator();
29 
30  virtual const char* virtualTranslatorName() const;
31  static const char* translatorName() { return "HLA Interaction"; }
32 
34  virtual void enableTranslator(bool enabled);
35 
36  virtual T_PortalInteraction* translate( T_PortalInteraction* destination,
37  const T_HlaInteraction& source );
38 
39  virtual T_HlaInteraction* translate( T_HlaInteraction* destination,
40  const T_PortalInteraction& source );
41 
42 protected:
43  DT_DECLARE_INTERACTION_HLA_CALLBACKS(T_PortalInteraction, T_HlaInteraction);
44  DT_DECLARE_INTERACTION_PORTAL_CALLBACKS(T_PortalInteraction);
45 
46 protected:
48 };
49 }
50 
51 #define hlaTranslator_INL_
52 #include "hlaInTrans.inl"
53 #undef hlaTranslator_INL_
54 
55 
56 

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)