Public Member Functions | Private Attributes

nitro::DynamicLibManager Class Reference

Manager for working with dynamic libraries. More...

#include <managers/dynamic_lib_manager.h>

Collaboration diagram for nitro::DynamicLibManager:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Manager for working with dynamic libraries.

Author:
Dodonov A.A.

Definition at line 50 of file dynamic_lib_manager.h.


Member Function Documentation

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.

Parameters:
LibraryPath - Path to the loading library.
Exceptions:
std::exception An exception of that type is thrown.
Author:
Dodonov A.A.

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 ) );
                }
        }

Here is the call graph for this function:

void nitro::DynamicLibManager::LoadLibrary ( const std::string &  LibraryPath  ) 

Function loads library.

Parameters:
LibraryPath - Path to the loading library.
Exceptions:
std::exception An exception of that type is thrown.
Author:
Dodonov A.A.

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 ) );
                }
        }

Here is the call graph for this function:


Member Data Documentation

Manager for working with dynamic libraries.

Author:
Dodonov A.A.

Definition at line 115 of file dynamic_lib_manager.h.

Referenced by LoadLibrary().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.1