| 
      
        
       | 
    
    
        
            NVIDIA DeepStream SDK API Reference
         | 
        
            
                8.0 Release
            
         | 
    
  
 
 
Go to the documentation of this file.
   21 #ifndef NVIDIA_DEEPSTREAM_COMMON_FACTORY 
   22 #define NVIDIA_DEEPSTREAM_COMMON_FACTORY 
   50   virtual std::unique_ptr<CustomObject> 
createObject(
const std::string& factory_key, 
const std::string& name) = 0;
 
   77   static bool _load(
const std::string& plugin_name);
 
  
 
CommonFactory & operator=(const CommonFactory &)=delete
 
static bool _load(const std::string &plugin_name)
 
r\Represents a unified interface for managing custom objects and factories
 
static CommonFactory & getInstance()
Acquire the reference of the singleton.
 
virtual bool addCustomFactory(CustomFactory *factory, const char *key)=0
Add a custom factory.
 
virtual CustomFactory * getCustomFactory(const char *factory_name)=0
Find a custom factory that supports a certan object type.
 
Interface definition for a custom factory.
 
virtual ~CommonFactory()=default
 
virtual std::unique_ptr< CustomObject > createObject(const std::string &factory_key, const std::string &name)=0
Create a custom object from a custom factory.