Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModulesLoader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-Today Guy Deleeuw
3  *
4  * See the LICENSE file for terms of use.
5 */
6 
7 #ifndef _WsModuleLoader_H_
8 #define _WsModuleLoader_H_
9 
10 #include <dlfcn.h>
11 
12 #include "../WsModule/src/WsModule.h"
13 
15 public :
16  void* dlfcnHandler;
18 };
19 
21 public :
24  bool load();
25  const std::vector<WsModuleLoader*>& modules();
26  const WsModule* module(const std::string& moduleName);
27  std::string pathWithoutPrefix(const std::string& path);
28  std::string checkPath(const std::string& path);
29 
30 private :
31  std::string removePrefix(const std::string& path);
32 
33 private :
34  std::vector<WsModuleLoader*> m_vModules;
35 };
36 
37 #endif // ifdef _WsModuleLoader_H_
38 
WsModule * module
std::string pathWithoutPrefix(const std::string &path)
const std::vector< WsModuleLoader * > & modules()
std::vector< WsModuleLoader * > m_vModules
std::string checkPath(const std::string &path)
std::string removePrefix(const std::string &path)
const WsModule * module(const std::string &moduleName)