VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtPropAdderFactory.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
17 #include <string>
18 #include <map>
19 
20 namespace makVrv
21 {
22 
23  class DtPropAdder;
24  class DtPropAdderCreator;
25  class DtAgentManagerInterface;
26  class DtDe;
27 
31  {
32  public:
34  static DtPropAdderFactory& instance(DtDe& de);
35 
37  virtual ~DtPropAdderFactory();
38 
40  DtPropAdder* createAdder(const std::string& filename,
41  DtAgentManagerInterface& agentManagerInterface);
42 
44  void setAdderCreator(const std::string& extension,
45  DtPropAdderCreator* creator);
46 
47  protected:
49 
51  static std::string extractFileExtension( const std::string& fileToOpen );
52 
53  protected:
54 
55  typedef std::map<std::string,DtPropAdderCreator*> CreatorMap;
57  };
58 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
CreatorMap myCreators
Definition: DtPropAdderFactory.h:56
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtPropAdder.h:32
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
A factory for creating prop adders.
Definition: DtPropAdderFactory.h:30
Creator class for creating a DtPropAdder.
Definition: DtPropAdder.h:56
std::map< std::string, DtPropAdderCreator * > CreatorMap
Definition: DtPropAdderFactory.h:55
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
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)