VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLibraryLoader.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtLibraryLoader_H_
11 #define DtLibraryLoader_H_
12 
13 #include <vrvCore/vrvCore.h>
14 
15 #include <map>
16 #include <list>
17 #include <string>
18 
19 class DtDynamicLibrary;
20 
21 namespace makVrv
22 {
23  class DtDe;
24 
28  {
29  public:
30 
33 
35  virtual ~DtLibraryLoader();
36 
38  void getLibrariesInDirectory(const std::string& dir,
39  std::list<std::string>& files) const;
40 
42  void loadAllInDirectory(const std::string& dir);
43 
45  void loadLibary(const std::string& library);
46 
48  void initializeLibraries();
49 
50  protected:
51 
52  typedef bool (*IgInitFunction)(DtDe*);
53  static const char* theIgInitFunction;
54 
56  virtual bool initializeLibrary(DtDynamicLibrary* lib);
57 
59  virtual bool isLibraryIGCompatible(DtDynamicLibrary* lib);
60 
62 
63  typedef std::map<std::string, DtDynamicLibrary*> LibraryMap;
65 
66  };
67 }
68 
69 #endif
70 
LibraryMap myLibraries
Definition: DtLibraryLoader.h:64
DtDe * myDe
Definition: DtLibraryLoader.h:61
std::map< std::string, DtDynamicLibrary * > LibraryMap
Definition: DtLibraryLoader.h:63
DtLibraryLoader is used to load VR-Vantage plugins.
Definition: DtLibraryLoader.h:27
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
static const char * theIgInitFunction
Definition: DtLibraryLoader.h:53
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:72
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)