VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simComponentFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 #include <vlutil/vlHashlist.h>
17 
20 class DtSimComponent;
21 class DtSimManager;
23 class DtVrfObject;
24 
25 typedef DtSimComponent* (*DtSimComponentCreatorFcn)(const DtString& name,
28 
36 class DT_DLL_vrfobjcore DtSimComponentFactory : public DtHashlist
37 {
38 public:
41 
44 
46  const DtSimComponentFactory& operator=(const DtSimComponentFactory& orig);
47 
49  virtual ~DtSimComponentFactory();
50 
52  virtual void addCreatorFcn(const DtString& type,
54 
55  virtual DtSimComponent* createComponent(
56  const DtString& name, const DtString& type, DtVrfObject* owner,
57  DtSimManager* simManager, DtComponentDescriptor* compDesc,
58  DtReaderWriterRegistry* registry = 0);
59 
60  static DtSimComponentFactory* create();
61 
62 protected:
63 
64 };
65 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
DtSimComponent *(* DtSimComponentCreatorFcn)(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *registry)
Definition: simComponentFactory.h:25
File: compFactEnt.h.
Definition: simComponentFactoryEntry.h:30
Definition: readerWriterRegistry.h:39
class DtSimComponentFactory:
Definition: simComponentFactory.h:36
virtual const DtSimManager * simManager() const
Get a pointer to our sim manager.
const DtReaderWriterRegistry & registry() const
Collection of child DtReaderWriter nodes owned by this object.
Definition: readerWriter.h:496
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.

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)