A singleton that can be used to observe the available libraries in the system.  
 More...
#include <LibraryManager.h>
A singleton that can be used to observe the available libraries in the system. 
- Note
 - This singleton doesn't control the libraries lifetime, it just make smart references to them that will be automatically removed when a library goes out of scope (or been destroyed). Actually it works like an observer of known libraries.
 
- 
This class is based on pimpl idiom. 
 
Definition at line 56 of file LibraryManager.h.
 
  
  
      
        
          | te::common::LibraryManager::LibraryManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | te::common::LibraryManager::~LibraryManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | void te::common::LibraryManager::add  | 
          ( | 
          const std::string &  | 
          id,  | 
        
        
           | 
           | 
          const LibraryPtr &  | 
          l  | 
        
        
           | 
          ) | 
           |  | 
        
        
          | throw  | ( |  | 
        
        
           | ) |  |  | 
        
      
 
It adds a new Library to be managed. 
This implementaion will keep the library in the manager while there is at least someone pointing to it. As soon as no one keeps a reference to it the manager will be communicated and the library will not be available anymore.
- Parameters
 - 
  
    | id | An identifier used to search for the library in successive lookups.  | 
    | l | The library to be managed.  | 
  
   
 
 
      
        
          | LibraryPtr te::common::LibraryManager::find  | 
          ( | 
          const std::string &  | 
          name | ) | 
           | 
        
        
          | throw  | ( |  | 
        
        
           | ) |  |  | 
        
      
 
Returns a null pointer if a library doesnt't exist. 
- Parameters
 - 
  
  
 
- Returns
 - A pointer to an already loaded library or null. 
 
 
 
It returns a reference to the singleton instance. 
- Returns
 - A reference to the singleton instance. 
 
 
 
  
  
      
        
          | Impl* te::common::LibraryManager::m_pImpl | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: