VR-Exchange 2.2 API Documentation
tenaBroker/libTenaBroker/interactionTrans.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 <broker/translator.h>
13 #include <vl/globalObjDes.h>
14 #include <vlutil/vlString.h>
15 
16 class DtInteraction;
17 
18 namespace MAKVrExchange
19 {
20 
21  class DtPortalInteraction;
22 
23  namespace DtTenaBroker
24  {
25 
26  class DtTenaBroker;
27 
30  class DT_DLL_TENABROKER DtInteractionTranslator : public DtTranslator
31  {
32  public:
33 
35  DtInteractionTranslator( DtTenaBroker* broker, const DtString& name,
36  DtPortalMessageKind kind );
37 
39  virtual ~DtInteractionTranslator();
40 
42  virtual void printIncomingOutgoingInteractions( const DtPortalInteraction& incoming,
43  const DtInteraction& outgoing ) const;
44 
46  virtual void printIncomingOutgoingInteractions( const DtInteraction& incoming,
47  const DtPortalInteraction& outgoing ) const;
48 
49  virtual bool printDumpGuiToText( const DtString& protocol,
50  const DtString& description ) const;
51 
53  virtual unsigned int numInteractions() const;
55  virtual void setNumInteractions( unsigned int num );
56 
57  protected:
58 
60  virtual const DtGlobalObjectDesignator& convertGlobalId( const DtString& id ) const;
61 
63  virtual const DtString& convertGlobalId( const DtGlobalObjectDesignator& id ) const;
64 
76  inline bool isEntityIdentifierValid( const DtEntityIdentifier& entityId ) const
77  {
78  return ((entityId.site() != 0) &&
79  (entityId.host() != 0) &&
80  (entityId.entityNum() != 0));
81  }
82 
83  private:
84 
87 
89  DtInteractionTranslator& operator = ( const DtInteractionTranslator& );
90 
92  bool operator == ( const DtInteractionTranslator& );
93 
95  bool operator != ( const DtInteractionTranslator& );
96 
97  protected:
98 
99  unsigned int myNumInteractions;
100 
102 
103  };
104 
105  }
106 }

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)