VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtAgentUpdateResolverInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAgentUpdateResolverInterface.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #ifndef DtSceneObjectAbstractUpdater_H_
13 #define DtSceneObjectAbstractUpdater_H_
14 
15 #include <vrvCore/vrvCore.h>
16 
17 namespace makVrv
18 {
19  class DtMessage;
20 
24  {
25  public:
26 
29  {
30  }
31 
37  template <class ObjectType>
38  ObjectType* castObjectTypeFromUpdater(const std::string& className)
39  {
40  if(canCastToObject(className))
41  {
42  return (ObjectType*)objectMemoryAddress();
43  }
44  else
45  {
46  return 0;
47  }
48  }
49 
50 
52  virtual void handleUpdateMessage(DtMessage& message) = 0;
53 
55  virtual const std::string& className() const = 0;
56 
58  virtual bool canCastToObject(const std::string& className) = 0;
59 
62  virtual void* objectMemoryAddress() const = 0;
63 
64  };
65 
66 }
67 
68 #endif
69 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)