VR-Exchange 2.1 API Documentation
tenaBroker/stopTrans.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 M�K Technologies, Inc.** All rights reserved.
3 ******************************************************************************/
4 /*******************************************************************************
5 * $RCSfile: stopTrans.h,v $ $Revision: 1.6 $ $State:
6 $******************************************************************************/
7 
8 #ifndef stopTrans_H_
9 #define stopTrans_H_
10 
14 
15 
16 #include "interactionTrans.h" //DtInteractionTranslator
17 
18 class DtStopFreezeInteraction;
19 
20 namespace MAKVrExchange {
21 class DtPortalStopInteraction;
22 }
23 
24 namespace MAKVrExchange { namespace DtTenaBroker {
25 
26 class DtTenaBroker;
27 
32 {
33 public:
34 
38 
42  virtual ~DtStopInteractionTranslator();
43 
49  static const char* translatorName();
50 
54  virtual const char* virtualTranslatorName() const;
55 
57  virtual void enableTranslator(bool enabled);
58 
75  virtual DtPortalStopInteraction* translate( DtPortalStopInteraction* destination,
76  const DtStopFreezeInteraction& source );
77 
96  virtual DtStopFreezeInteraction* translate( DtStopFreezeInteraction* destination,
97  const DtPortalStopInteraction& source );
98 
99 protected:
100 
109  virtual void createTenaInteraction( const DtPortalStopInteraction& incoming );
110 
119  virtual void createPortalInteraction( const DtStopFreezeInteraction& incoming );
120 
133  static void receiveTenaInteraction( DtStopFreezeInteraction* interaction,
134  void* userData );
135 
148  static void receivePortalInteraction( const DtPortalStopInteraction& interaction,
149  void* userData );
150 
151 private:
152 
154  static const char thisTranslatorName[];
155 
157  static const char thisInteractionName[];
158 
161 
164 
166  int operator==( const DtStopInteractionTranslator& );
167 
169  int operator!=( const DtStopInteractionTranslator& );
170 
171 }; //end class DtStopInteractionTranslator
172 
174 {
175  return thisTranslatorName;
176 }
177 
179 {
180  return translatorName();
181 }
182 
183 }}
184 
185 #endif //end #ifndef stopTrans_H_

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)