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

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)