VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPropAdderFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <string>
15 #include <map>
16 
17 namespace makVrv
18 {
19 
20  class DtPropAdder;
21  class DtPropAdderCreator;
22  class DtAgentManagerInterface;
23  class DtDe;
24 
28  {
29  public:
31  static DtPropAdderFactory& instance(DtDe& de);
32 
34  virtual ~DtPropAdderFactory();
35 
37  DtPropAdder* createAdder(const std::string& filename,
38  DtAgentManagerInterface& agentManagerInterface);
39 
41  void setAdderCreator(const std::string& extension,
42  DtPropAdderCreator* creator);
43 
44  protected:
46 
48  static std::string extractFileExtension( const std::string& fileToOpen );
49 
50  protected:
51 
52  typedef std::map<std::string,DtPropAdderCreator*> CreatorMap;
54  };
55 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
CreatorMap myCreators
Definition: DtPropAdderFactory.h:53
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtPropAdder.h:29
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
A factory for creating prop adders.
Definition: DtPropAdderFactory.h:27
Creator class for creating a DtPropAdder.
Definition: DtPropAdder.h:53
std::map< std::string, DtPropAdderCreator * > CreatorMap
Definition: DtPropAdderFactory.h:52
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
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
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)