VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
8 
9 #ifndef DtSceneObjectAbstractUpdater_H_
10 #define DtSceneObjectAbstractUpdater_H_
11 
12 #include <vrvCore/vrvCore.h>
13 
14 namespace makVrv
15 {
16  class DtMessage;
17 
21  {
22  public:
23 
26  {
27  }
28 
34  template <class ObjectType>
35  ObjectType* castObjectTypeFromUpdater(const std::string& className)
36  {
37  if(canCastToObject(className))
38  {
39  return (ObjectType*)objectMemoryAddress();
40  }
41  else
42  {
43  return 0;
44  }
45  }
46 
47 
49  virtual void handleUpdateMessage(DtMessage& message) = 0;
50 
52  virtual const std::string& className() const = 0;
53 
55  virtual bool canCastToObject(const std::string& className) = 0;
56 
59  virtual void* objectMemoryAddress() const = 0;
60 
61  };
62 
63 }
64 
65 #endif
66 
ObjectType * castObjectTypeFromUpdater(const std::string &className)
Attempt to cast an object from an updater using the className. It is vital that the class name is the...
Definition: DtAgentUpdateResolverInterface.h:35
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
Abstract base class for object updaters.
Definition: DtAgentUpdateResolverInterface.h:20
virtual ~DtAgentUpdateResolverInterface()
DTOR.
Definition: DtAgentUpdateResolverInterface.h:25
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)