VR-Exchange 2.2 API Documentation
tenaBroker/libTenaBroker/commentTrans.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "interactionTrans.h"
13 
14 class DtCommentInteraction;
15 
16 namespace MAKVrExchange
17 {
18 
19  class DtPortalCommentInteraction;
20 
21  namespace DtTenaBroker
22  {
23 
24  class DtTenaBroker;
25 
30  {
31  public:
32 
34  Dt_DEF_TRANSLATOR_NAME( "Comment" );
35 
39 
44 
46  virtual void enableTranslator(bool enabled);
47 
64  virtual DtPortalCommentInteraction* translate( DtPortalCommentInteraction* destination,
65  const DtCommentInteraction& source );
66 
85  virtual DtCommentInteraction* translate( DtCommentInteraction* destination,
86  const DtPortalCommentInteraction& source );
87 
88  protected:
89 
98  virtual void createTenaInteraction( const DtPortalCommentInteraction& incoming );
99 
108  virtual void createPortalInteraction( const DtCommentInteraction& incoming );
109 
122  static void receiveTenaInteraction( DtCommentInteraction* interaction,
123  void* userData );
124 
137  static void receivePortalInteraction( const DtPortalCommentInteraction& interaction,
138  void* userData );
139 
140  private:
141 
145 
148 
150  int operator==( const DtCommentInteractionTranslator& );
151 
153  int operator!=( const DtCommentInteractionTranslator& );
154 
155  };
156 
157  }
158 }

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)