VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAgentUpdateResolver.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAgentUpdateResolver.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22 
25  template <class ObjectType>
27  {
28  public:
30 
32  DtAgentUpdateResolver(DtDe& de, ObjectType* object,
33  ObjectTypeDefinition* definition);
34 
36  virtual ~DtAgentUpdateResolver();
37 
39  virtual void handleUpdateMessage(DtMessage& message);
40 
42  virtual const std::string& className() const;
43 
46  virtual bool canCastToObject(const std::string& className);
47 
50  virtual void* objectMemoryAddress() const;
51 
53  ObjectType* object();
55  const ObjectType* object() const;
57 
58  protected:
59 
61  ObjectType* myObjectPointer;
63  };
64 }
65 
66 
67 #define DtAgentUpdateResolver_INL_
68 #include "DtAgentUpdateResolver.inl"
69 #undef DtAgentUpdateResolver_INL_
70 
ObjectTypeDefinition * myObjectTypeDefinition
Definition: DtAgentUpdateResolver.h:62
The IGI Message.
Definition: DtMessage.h:33
Abstract base class for object updaters.
Definition: DtAgentUpdateResolverInterface.h:23
Use this class as the base class for definition where ObjectClass is the class whose definition defin...
Definition: DtAgentDefinition.h:35
ObjectType * object()
Get a pointer to the actual object this updater updates.
virtual void handleUpdateMessage(DtMessage &message)
Implementation of handling an update message via a definition.
virtual ~DtAgentUpdateResolver()
DTOR.
virtual void * objectMemoryAddress() const
Get the object memory address necessary for casting the ObjectType.
virtual bool canCastToObject(const std::string &className)
Implementation of if an updater&#39;s object can be cast to a particular class.
DtAgentUpdateResolver updates an instance of an object using is definition.
Definition: DtAgentUpdateResolver.h:26
Contains makVrv::DtAgentDefinition class.
DtAgentUpdateResolver(DtDe &de, ObjectType *object, ObjectTypeDefinition *definition)
Construct an updater for an object and it&#39;s type definition.
DtAgentDefinition< ObjectType > ObjectTypeDefinition
Definition: DtAgentUpdateResolver.h:29
DtDe & myDe
Definition: DtAgentUpdateResolver.h:60
ObjectType * myObjectPointer
Definition: DtAgentUpdateResolver.h:61
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual const std::string & className() const
Abstract getting the class name for the updater.
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)