#include <ModuleManager.h>
Public 型 | |
| typedef void(* | ModuleInitFunc )(Manager *) |
Public メソッド | |
| ModuleManager (Properties &prop) | |
| ~ModuleManager () | |
| std::string | load (const std::string &file_name) |
| モジュールのロード | |
| std::string | load (const std::string &file_name, const std::string &init_func) |
| void | unload (const std::string &file_name) |
| モジュールのアンロード | |
| void | unloadAll () |
| 全モジュールのアンロード. | |
| void * | symbol (const std::string &file_name, const std::string &func_name) throw (ModuleNotFound, SymbolNotFound) |
| モジュールのシンボルの参照 | |
| void | setLoadpath (const std::vector< std::string > &load_path) |
| モジュールロードパスを指定する | |
| std::vector< std::string > | getLoadPath () |
| void | addLoadpath (const std::vector< std::string > &load_path) |
| モジュールロードパスを追加する | |
| std::vector< std::string > | getLoadedModules () |
| ロード済みのモジュールリストを取得する | |
| std::vector< std::string > | getLoadableModules () |
| ロード可能なモジュールリストを取得する | |
| void | allowAbsolutePath () |
| モジュールの絶対パス指定許す | |
| void | disallowAbsolutePath () |
| モジュールの絶対パス指定禁止する | |
| void | allowModuleDownload () |
| モジュールのダウンロードを許す | |
| void | disallowModuleDownload () |
| モジュールのダウンロードを禁止する | |
| std::string | findFile (const std::string &fname, const std::vector< std::string > &load_path) |
| LoadPath からのファイルの検索. | |
| bool | fileExist (const std::string &filename) |
| ファイルが存在するかどうかのチェック | |
| std::string | getInitFuncName (const std::string &file_path) |
| 初期化関数シンボルを生成する | |
Protected 型 | |
| typedef std::vector< std::string > | StringVector |
| typedef StringVector::iterator | StringVectorItr |
| typedef StringVector::const_iterator | StringVectorConstItr |
| typedef std::map< std::string, DLL > | DllMap |
| typedef DllMap::iterator | DllMapItr |
| typedef DllMap::const_iterator | DllMapConstItr |
Protected 変数 | |
| Properties & | m_properties |
| DllMap | m_modules |
| StringVector | m_loadPath |
| StringVector | m_configPath |
| bool | m_downloadAllowed |
| bool | m_absoluteAllowed |
| std::string | m_initFuncSuffix |
| std::string | m_initFuncPrefix |
構成 | |
| struct | DLL |
| struct | Error |
| struct | FileNotFound |
| struct | InvalidArguments |
| struct | InvalidOperation |
| struct | ModuleNotFound |
| struct | NotAllowedOperation |
| struct | NotFound |
| struct | SymbolNotFound |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
モジュールロードパスを追加する
|
|
|
モジュールの絶対パス指定許す
|
|
|
モジュールのダウンロードを許す
|
|
|
モジュールの絶対パス指定禁止する
|
|
|
モジュールのダウンロードを禁止する
|
|
|
ファイルが存在するかどうかのチェック
|
|
||||||||||||
|
LoadPath からのファイルの検索.
|
|
|
初期化関数シンボルを生成する
|
|
|
ロード可能なモジュールリストを取得する
|
|
|
ロード済みのモジュールリストを取得する
|
|
|
|
|
||||||||||||
|
|
|
|
モジュールのロード file_name をDLL もしくは共有ライブラリとしてロードする。 file_name は既定のロードパス (manager.modules.load_path) に対する 相対パスで指定する。 Property manager.modules.abs_path_allowed が yes の場合、 ロードするモジュールを絶対パスで指定することができる。 Property manager.modules.download_allowed が yes の場合、 ロードするモジュールをURLで指定することができる。 file_name は絶対パスで指定することができる。 manager.modules.allowAbsolutePath が no の場合、 既定のモジュールロードパスから、file_name のモジュールを探しロードする。 |
|
|
モジュールロードパスを指定する
|
|
||||||||||||
|
モジュールのシンボルの参照
|
|
|
モジュールのアンロード
|
|
|
全モジュールのアンロード.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.1