VR-Forces 5.0.2 Developer's Guide
 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 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
15 
16 namespace makVrv
17 {
18  class DtDe;
19 
22  template <class ObjectType>
24  {
25  public:
27 
29  DtAgentUpdateResolver(DtDe& de, ObjectType* object,
30  ObjectTypeDefinition* definition);
31 
33  virtual ~DtAgentUpdateResolver();
34 
36  virtual void handleUpdateMessage(DtMessage& message);
37 
39  virtual const std::string& className() const;
40 
43  virtual bool canCastToObject(const std::string& className);
44 
47  virtual void* objectMemoryAddress() const;
48 
50  ObjectType* object();
52  const ObjectType* object() const;
54 
55  protected:
56 
58  ObjectType* myObjectPointer;
60  };
61 }
62 
63 
64 #define DtAgentUpdateResolver_INL_
65 #include "DtAgentUpdateResolver.inl"
66 #undef DtAgentUpdateResolver_INL_
67 
ObjectTypeDefinition * myObjectTypeDefinition
Definition: DtAgentUpdateResolver.h:59
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
Use this class as the base class for definition where ObjectClass is the class whose definition defin...
Definition: DtAgentDefinition.h:32
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:23
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:26
DtDe & myDe
Definition: DtAgentUpdateResolver.h:57
ObjectType * myObjectPointer
Definition: DtAgentUpdateResolver.h:58
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual const std::string & className() const
Abstract getting the class name for the updater.
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)