Manager for working with dynamic libraries. More...
#include <managers/dynamic_lib_manager.h>

Public Member Functions | |
| DECLARE_SQUARE_BRACE_OPERATOR_REF_LOCATOR (nitro::DynamicLibLoader) | |
| DECLARE_SQUARE_BRACE_OPERATOR_REF_CURSOR (nitro::DynamicLibLoader) | |
| void | LoadLibrary (const char *LibraryPath) |
| void | LoadLibrary (const std::string &LibraryPath) |
Private Attributes | |
| nitro::ObjectManager < nitro::DynamicLibLoader > | Manager |
Manager for working with dynamic libraries.
Definition at line 50 of file dynamic_lib_manager.h.
| nitro::DynamicLibManager::DECLARE_SQUARE_BRACE_OPERATOR_REF_CURSOR | ( | nitro::DynamicLibLoader | ) |
| nitro::DynamicLibManager::DECLARE_SQUARE_BRACE_OPERATOR_REF_LOCATOR | ( | nitro::DynamicLibLoader | ) |
| void nitro::DynamicLibManager::LoadLibrary | ( | const char * | LibraryPath | ) |
Function loads library.
| LibraryPath | - Path to the loading library. |
| std::exception | An exception of that type is thrown. |
Definition at line 14 of file dynamic_lib_manager.cpp.
References nitro::ObjectManager< managing_class >::AddObject(), nitro::exception::code(), Manager, and nitro::exception::what().
Referenced by LoadLibrary(), and nitro::MVC::LoadModules().
{
try
{
Manager.AddObject( LibraryPath , new nitro::DynamicLibLoader( LibraryPath ) );
}
catch( nitro::exception e )
{
throw( nitro::exception( std::string( "DynamicLibManager::LoadLibrary( const str_type & LibraryPath )::" ) + e.what() , e.code() ) );
}
catch( ... )
{
throw( nitro::exception( std::string( "DynamicLibManager::LoadLibrary( const str_type & LibraryPath )::An error occured" ) , 0 ) );
}
}

| void nitro::DynamicLibManager::LoadLibrary | ( | const std::string & | LibraryPath | ) |
Function loads library.
| LibraryPath | - Path to the loading library. |
| std::exception | An exception of that type is thrown. |
Definition at line 30 of file dynamic_lib_manager.cpp.
References nitro::exception::code(), LoadLibrary(), and nitro::exception::what().
{
try
{
LoadLibrary( LibraryPath.c_str() );
}
catch( nitro::exception e )
{
throw( nitro::exception( std::string( " DynamicLibManager::LoadLibrary( const std::string & LibraryPath )::" ) + e.what() , e.code() ) );
}
catch( ... )
{
throw( nitro::exception( std::string( " DynamicLibManager::LoadLibrary( const std::string & LibraryPath )::An error occured" ) , 0 ) );
}
}

Manager for working with dynamic libraries.
Definition at line 115 of file dynamic_lib_manager.h.
Referenced by LoadLibrary().
1.6.1