CLAM-Development  1.4.0
RunTimeProcessingLibraryLoader.cxx
Go to the documentation of this file.
2 
3 class RunTimeProcessingLibraryLoader : public RunTimeLibraryLoader
4 {
5 
6 protected:
7 
8  const bool needReleaseHandlerOnReload() const { return true; }
9  const char ** standardPaths() const
10  {
11  static const char * result[] =
12  {
13  "/usr/local/lib/clam",
14  "/usr/lib/clam",
15  "/opt/lib/clam",
16  "c:/Program Files/CLAM/NetworkEditor/lib/clam",
17  0
18  };
19  return result;
20  }
21 
22  const char * homePath() const { return "/.clam/plugins"; }
23  const char * pathEnvironmentVar() const { return "CLAM_PLUGIN_PATH"; }
24  const char * libraryType() const { return "CLAM"; }
25 };
26 
27 class AutomaticRunTimeProcessingLibraryLoader
28 {
29 public:
30  AutomaticRunTimeProcessingLibraryLoader()
31  {
32  RunTimeProcessingLibraryLoader loader;
33  loader.Load();
34  }
35 };
36 
37 static AutomaticRunTimeProcessingLibraryLoader dllLoader;
38