Base Object class.
Definition at line 44 of file object.hpp.

Data Structures | |
| class | Value |
| Value wrapper for various types. More... | |
Public Member Functions | |
| Object () | |
| Constructor of a void object. More... | |
| Object (unsigned long type_id, const std::string &name) | |
| Create an object from a type id. More... | |
| Object (const Object &) | |
| Copy constructor. More... | |
| Object (Object &&) | |
| Move constructor. More... | |
| Object & | operator= (const Object &) |
| Copy assignment. More... | |
| Object & | operator= (Object &&) |
| Move assignment. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| const std::string | getName () const |
| Return the name assigned during the construction. More... | |
| operator bool () const noexcept | |
| Check if the object is void. More... | |
| bool | operator== (const Object &other) noexcept |
| Check if the two objects are the same. More... | |
| GstObject * | give () |
| Give up the ownership and return the opaque pointer. More... | |
| GstObject * | getGObject () |
| Return the opaque object pointer. More... | |
| Object & | take (GstObject *object) |
| Takes the ownership of a object through the opaque pointer. More... | |
| Object & | seize (GstObject *object) |
| Seize a opaque object to prevent it from being destroyed somewhere. More... | |
| Object & | set (const YAML::Node ¶ms) |
| Set the properties from key/value pairs in the yaml format. More... | |
| Object & | set (const std::string &name, const Value &value) |
| template<typename T , typename... Args> | |
| Object & | set (const std::string &name, const T &value, const Args &... args) |
| template<typename T , typename... Args> | |
| Object & | getProperty (const std::string &name, T &value, Args &... args) |
| Template for getting multiple properties. More... | |
| std::vector< std::string > | listSignals (bool is_action) |
| List all the supported signals from the object. More... | |
| bool | connectSignal (const std::string &signal_name, SignalHandler &handler) |
| Connect a signal handler to the object. More... | |
| void | emitSignal (const std::string &signal_name, va_list args) |
| Emit a signal. More... | |
Static Public Member Functions | |
| static unsigned long | type () |
| Return the object's type id. More... | |
Protected Member Functions | |
| virtual void | set_ (const std::string &name, const Value &value) |
| virtual void | set_ (const std::string &name, const YAML::Node &value) |
| virtual Value | get_ (const std::string &name) |
Protected Attributes | |
| GstObject * | object_ |
Friends | |
| class | Pipeline |
| class | Element |
| deepstream::Object::Object | ( | ) |
Constructor of a void object.
| deepstream::Object::Object | ( | unsigned long | type_id, |
| const std::string & | name | ||
| ) |
Create an object from a type id.
| [in] | name | name to be assigned to the object instance |
| deepstream::Object::Object | ( | const Object & | ) |
Copy constructor.
| deepstream::Object::Object | ( | Object && | ) |
Move constructor.
|
virtual |
Destructor.
| bool deepstream::Object::connectSignal | ( | const std::string & | signal_name, |
| SignalHandler & | handler | ||
| ) |
Connect a signal handler to the object.
| [in] | signal_name | name of the signal to be connected |
| [in] | handler | handler for the signal |
| void deepstream::Object::emitSignal | ( | const std::string & | signal_name, |
| va_list | args | ||
| ) |
Emit a signal.
|
protectedvirtual |
Reimplemented in deepstream::CustomObject.
Referenced by getProperty().
|
inline |
| const std::string deepstream::Object::getName | ( | ) | const |
Return the name assigned during the construction.
|
inline |
Template for getting multiple properties.
Definition at line 171 of file object.hpp.
References get_().
Referenced by deepstream::CountMarker::handleData(), deepstream::TensorMetaParser::handleData(), deepstream::MsgMetaGenerator::handleData(), deepstream::NvDsKittiDump::handleData(), deepstream::LiDARDataSource::initialize(), deepstream::SmartRecordingAction::onAttached(), and deepstream::FileDataSource::read().
| GstObject* deepstream::Object::give | ( | ) |
Give up the ownership and return the opaque pointer.
| std::vector<std::string> deepstream::Object::listSignals | ( | bool | is_action | ) |
List all the supported signals from the object.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
Check if the two objects are the same.
Definition at line 134 of file object.hpp.
References object_.
Seize a opaque object to prevent it from being destroyed somewhere.
|
inline |
Definition at line 161 of file object.hpp.
Definition at line 154 of file object.hpp.
References set_().
| Object& deepstream::Object::set | ( | const YAML::Node & | params | ) |
Set the properties from key/value pairs in the yaml format.
Referenced by deepstream::Pipeline::add(), and set().
|
protectedvirtual |
Reimplemented in deepstream::CustomObject.
Referenced by set().
|
protectedvirtual |
Reimplemented in deepstream::CustomObject.
Takes the ownership of a object through the opaque pointer.
|
static |
Return the object's type id.
|
friend |
Definition at line 205 of file object.hpp.
Referenced by deepstream::Pipeline::add().
|
friend |
Definition at line 204 of file object.hpp.
|
protected |
Definition at line 198 of file object.hpp.
Referenced by getGObject(), operator bool(), and operator==().