VR-Exchange 2.5 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
brokers
disBroker
disBroker
disBroker/disBroker/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
12
#include <
disBroker/embeddedSystemTranslator.h
>
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
class
DtPortalIffObject;
28
29
namespace
DtDisBroker
30
{
31
32
template
<>
33
DT_DLL_DISBROKER
DtEntityIdentifier
34
DtDisObjectTranslator<IFF_TEMPLATE_ARGS>::mapIdentifier
(
35
const
DtPortalReflectedIffObject
* refObj,
36
const
DtString
& identifier );
37
38
template
<>
39
DT_DLL_DISBROKER
DtObjectPublisher*
40
DtDisObjectTranslator<IFF_TEMPLATE_ARGS>::instantiateDisPublisher
(
41
const
DtPortalReflectedIffObject
* refObj,
42
const
DtEntityIdentifier& name );
43
44
47
class
DT_DLL_DISBROKER
DtIffTranslator
48
:
public
DtEmbeddedSystemTranslator
<IFF_TEMPLATE_ARGS>
49
{
50
public
:
51
53
Dt_DEF_TRANSLATOR_NAME
(
"IFF"
);
54
56
DtIffTranslator
(
DtBroker
* disBroker );
57
59
virtual
~
DtIffTranslator
();
60
61
protected
:
62
65
virtual
bool
isDisPublishable(
DtBrokerObject
* brokerObj,
66
const
DtPortalReflectedIffObject
* refObj );
67
70
virtual
bool
performDisGlobalIdMapping(
const
DtObjectPublisher* publisher,
71
const
DtPortalReflectedIffObject
& refObj,
72
DtGlobalIdMapper::ObjectType
type
/* = DtGlobalIdMapper::EntityType */
,
73
int
systemId
/* = DtGlobalIdMapper::NoSystemId */
,
74
int
beamId
/* = DtGlobalIdMapper::NoBeamId */
);
75
78
virtual
DtString
portalObjectName(
const
DtReflectedIff* refObj )
const
;
79
83
virtual
bool
performPortalGlobalIdMapping(
84
const
DtPortalIffObjectPublisher
* publisher,
85
const
DtReflectedIff& refObj,
86
DtGlobalIdMapper::ObjectType
type
/* = DtGlobalIdMapper::EntityType */
,
87
int
systemId
/* = DtGlobalIdMapper::NoSystemId */
,
88
int
beamId
/* = DtGlobalIdMapper::NoBeamId */
);
89
92
virtual
void
deleteDisPublisher(
DtBrokerObject
*
object
);
93
95
virtual
DtPortalIffObject
* translate(
DtPortalIffObject
* destination,
96
const
DtIffStateRepository& source,
const
DtReflectedIff& refObj );
97
99
virtual
DtIffStateRepository* translate( DtIffStateRepository* destination,
100
const
DtPortalIffObject
& source,
const
DtPortalReflectedIffObject
& refObj );
101
102
};
103
104
}
105
}
Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)