VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rprBroker/rprBroker/iffTranslator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/reflectedIffList.h>
14 #include <vl/iffPublisher.h>
15 
16 class DtReflectedIff;
17 class DtIffStateRepository;
18 
19 #define IFF_TEMPLATE_ARGS \
20  DtPortalIffObject, DtPortalReflectedIffObject, \
21  DtReflectedIff, DtReflectedIffList, \
22  DtIffStateRepository, DtIffPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  namespace DtRprBroker
28  {
29 
32  template <>
33  DT_DLL_RPRBROKER DtIffPublisher*
35  const DtPortalReflectedIffObject* refObj, const DtString& name );
36 
37 
41  : public DtEmbeddedSystemTranslator<IFF_TEMPLATE_ARGS>
42  {
43  public:
44 
46  Dt_DEF_TRANSLATOR_NAME( "IFF" );
47 
49  DtIffTranslator( DtBroker* broker );
50 
52  virtual ~DtIffTranslator();
53 
69  virtual DtPortalIffObject* translate( DtPortalIffObject* destination,
70  const DtIffStateRepository& source, const DtReflectedIff& refObj );
71 
88  virtual DtIffStateRepository* translate( DtIffStateRepository* destination,
89  const DtPortalIffObject& source, const DtPortalReflectedIffObject& refObj );
90 
91  protected:
92 
95  virtual bool isRprPublishable( DtBrokerObject* brokerObj,
96  const DtPortalReflectedIffObject* refObj );
97 
98  };
99 
100  }
101 }
Provides IFF object translation between HLA and the VR-Exchange Portal.
Definition: rprBroker/rprBroker/iffTranslator.h:40
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
virtual T_RprObjectPublisher * instantiateRprPublisher(const T_PortalReflectedObject *refObj, const DtString &name)
Instantiates the publisher for the given reflected object.
Base class for all broker objects.
Definition: broker.h:58
A template to create reflected object types for each type of object message.
Definition: pReflectedObject.h:58
DtPortalReflectedObjectTemplate< DtPortalIffObject > DtPortalReflectedIffObject
A RRB Object template instance.
Definition: pReflectedObjectTypes.h:107
#define DT_DLL_RPRBROKER
Definition: brokers/rprBroker/rprBroker/dllExport.h:22
Base class for all embedded system translators.
Definition: rprBroker/rprBroker/embeddedSystemTranslator.h:44
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
Portal IFF Object class.
Definition: pIffObject.h:19

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)