Public Member Functions

nitro::ObjectManager< managing_class > Class Template Reference

Class provides routine for storing of various objects. More...

#include <managers/object_manager.h>

Inherits nitro::ObjectManagerBasic< managing_class >.

Collaboration diagram for nitro::ObjectManager< managing_class >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void AddObject (const std::string &ObjectName, managing_class *Ptr)
void AddObject (const char *ObjectName, managing_class *Ptr)
virtual ~ObjectManager ()

Detailed Description

template<class managing_class>
class nitro::ObjectManager< managing_class >

Class provides routine for storing of various objects.

Note:
Class does not delete stored objects.
Author:
Dodonov A.A.

Definition at line 650 of file object_manager.h.


Constructor & Destructor Documentation

template<class managing_class >
nitro::ObjectManager< managing_class >::~ObjectManager (  )  [virtual]

Destructor.

Author:
Dodonov A.A.

Definition at line 751 of file object_manager.h.

References nitro::ObjectManagerBasic< managing_class >::Release().

        {
                try
                {
                        ObjectManagerBasic< managing_class >::Release();
                }
                catch( ... )
                {
                }
        }

Here is the call graph for this function:


Member Function Documentation

template<class managing_class>
void nitro::ObjectManager< managing_class >::AddObject ( const std::string &  ObjectName,
managing_class *  Ptr 
)

Function adds new object to manager.

Parameters:
ObjectName - Name of the object.
Ptr - Object.
Exceptions:
nitro::exception An exception of that type is thrown.
Author:
Dodonov A.A.

Definition at line 715 of file object_manager.h.

References nitro::exception::code(), and nitro::exception::what().

Referenced by nitro::MVC::AddController(), nitro::MVC::AddModel(), nitro::MVC::AddView(), nitro::MVC::Create(), and nitro::DynamicLibManager::LoadLibrary().

        {
                try
                {
                        ObjectManagerBasic< managing_class >::Objects.push_back( 
                                std::pair< std::string , managing_class * >( ObjectName , Ptr )
                        );
                }
                catch( nitro::exception e )
                {
                        throw( nitro::exception( std::string( "ObjectManager< managing_class >::AddObject( const std::string & ObjectName , managing_class * Ptr )::" ) + e.what() , e.code() ) );
                }
                catch( ... )
                {
                        throw( nitro::exception( std::string( "ObjectManager< managing_class >::AddObject( const std::string & ObjectName )::An error occured" ) , 1 ) );
                }
        }

Here is the call graph for this function:

template<class managing_class>
void nitro::ObjectManager< managing_class >::AddObject ( const char *  ObjectName,
managing_class *  Ptr 
)

Function adds new object to manager.

Parameters:
ObjectName - Name of the object.
Ptr - Object.
Exceptions:
nitro::exception An exception of that type is thrown.
Author:
Dodonov A.A.

Definition at line 733 of file object_manager.h.

References nitro::exception::code(), and nitro::exception::what().

        {
                try
                {
                        ObjectManagerBasic< managing_class >::Objects.push_back( 
                                std::pair< std::string , managing_class * >( ObjectName , Ptr )
                        );
                }
                catch( nitro::exception e )
                {
                        throw( nitro::exception( std::string( "ObjectManager< managing_class >::AddObject( const char * ObjectName , managing_class * Ptr )::" ) + e.what() , e.code() ) );
                }
                catch( ... )
                {
                        throw( nitro::exception( std::string( "ObjectManager< managing_class >::AddObject( const char * ObjectName )::An error occured" ) , 1 ) );
                }
        }

Here is the call graph for this function:


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

Generated by  doxygen 1.6.1