|
NVIDIA DeepStream SDK API Reference
|
8.0 Release
|
Go to the documentation of this file.
23 #ifndef NVIDIA_DEEPSTREAM_SIGNAL_EMITTER
24 #define NVIDIA_DEEPSTREAM_SIGNAL_EMITTER
50 virtual std::vector<std::string>
list() = 0;
83 SignalEmitter(
const std::string& name,
const char* factory, IActionOwner* owner);
89 static unsigned long type();
100 SignalEmitter&
emit(
const std::string& action_name,
const std::string& object_name, ...);
SignalEmitter & emit(const std::string &action_name, const std::string &object_name,...)
Emit the action by name.
Base class for all the custom objects.
SignalEmitter & attach(const std::string &action_name, Object &object)
Attach the signal emitter to an object on specified action.
std::unique_ptr< IActionOwner > owner_
virtual void onAttached(SignalEmitter *emitter, const std::string &action, const std::string &object)=0
Callback to be triggered when the emitter is attached.
static unsigned long type()
Return the type id assigned to signal emitter.
required interface for a signal emitter
SignalEmitter(const std::string &name, IActionOwner *owner)
Constructor.
std::multimap< std::string, Object > object_map_
virtual ~SignalEmitter()
Destructor.
virtual std::vector< std::string > list()=0
list the name of actions supported by this emitter