VR-Exchange 2.1 API Documentation
hlaBroker/commentTrans.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 #pragma once
5 
6 
7 
8 
9 #include "interactionTrans.h" //DtInteractionTranslator
10 
11 class DtCommentInteraction;
12 
13 
14 namespace MAKVrExchange {
15  class DtPortalCommentInteraction;
16  namespace DtHlaBroker {
17 
18  class DtHlaBroker;
19 
25  {
26  public:
27 
30 
33 
39  static const char* translatorName();
40 
44  virtual const char* virtualTranslatorName() const;
45 
47  virtual void enableTranslator(bool enabled);
48 
65  virtual DtPortalCommentInteraction* translate(
66  DtPortalCommentInteraction* destination,
67  const DtCommentInteraction& source );
68 
87  virtual DtCommentInteraction* translate(
88  DtCommentInteraction* destination,
89  const DtPortalCommentInteraction& source );
90 
91  protected:
92 
101  virtual void createHlaInteraction( const DtPortalCommentInteraction &in );
102 
111  virtual void createPortalInteraction( const DtCommentInteraction &in );
112 
122  static void receiveHlaInteraction( DtCommentInteraction *comment,
123  void *userData );
124 
134  static void receivePortalInteraction(
135  const DtPortalCommentInteraction &comment, void *userData );
136 
137  private:
138 
140  static const char thisTranslatorName[];
141 
143  static const char thisInteractionName[];
144 
148 
150  DtCommentInteractionTranslator &operator=(
152 
154  int operator==( const DtCommentInteractionTranslator & );
155 
157  int operator!=( const DtCommentInteractionTranslator & );
158 
159  }; //end class DtCommentInteractionTranslator
160 
162  {
163  return thisTranslatorName;
164  }
165 
167  {
168  return translatorName();
169  }
170 
171  }
172 }
173 
174 

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)