VR-Vantage API Documentation
DtLibraryLoader.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtLibraryLoader.h,v $ $Revision: 1.19 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtLibraryLoader_H_
14 #define DtLibraryLoader_H_
15 
16 #include <vrvCore/vrvCore.h>
17 
18 #include <map>
19 #include <list>
20 #include <string>
21 
22 class DtDynamicLibrary;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 
31  {
32  public:
33 
36 
38  virtual ~DtLibraryLoader();
39 
41  void getLibrariesInDirectory(const std::string& dir,
42  std::list<std::string>& files) const;
43 
45  void loadAllInDirectory(const std::string& dir);
46 
48  void loadLibary(const std::string& library);
49 
51  void initializeLibraries();
52 
53  protected:
54 
55  typedef bool (*IgInitFunction)(DtDe*);
56  static const char* theIgInitFunction;
57 
59  virtual bool initializeLibrary(DtDynamicLibrary* lib);
60 
62  virtual bool isLibraryIGCompatible(DtDynamicLibrary* lib);
63 
65 
66  typedef std::map<std::string, DtDynamicLibrary*> LibraryMap;
68 
69  };
70 }
71 
72 #endif
73 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)