VR-Exchange 2.1 API Documentation
tenaBroker/translator.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: translator.h,v $ $Revision: 1.13 $ $State: Exp $
7 *********************************************************************/
8 #ifndef translator_H_
9 #define translator_H_
10 
14 
15 #include <namespace.h>
16 #include <vl/globalObjDes.h>
17 
18 class DtString;
19 
20 namespace MAKVrExchange
21 {
22  namespace DtTenaBroker
23  {
24 
25  class DtTenaBroker;
26 
35  {
36  public:
37 
38  DtTranslator(DtTenaBroker *broker);
39  virtual ~DtTranslator();
40 
41  virtual const char* virtualTranslatorName() const = 0;
42 
44  virtual void enableTranslator(bool enabled) = 0;
45 
46  private:
47 
49  DtTranslator(const DtTranslator& other);
50 
52  DtTranslator& operator=(const DtTranslator& other);
53 
54  protected:
55 
57  virtual const DtGlobalObjectDesignator& convertGlobalId( const DtString& id ) const;
58 
60  virtual const DtString& convertGlobalId( const DtGlobalObjectDesignator& id ) const;
61 
62  protected:
63 
65  };
66 
78  inline bool isEntityIdentifierValid( const DtEntityIdentifier& entityId )
79  {
80  return ((entityId.site() != 0) &&
81  (entityId.host() != 0) &&
82  (entityId.entityNum() != 0));
83  }
84 
85  }
86 }
87 
88 #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)