NVIDIA DeepStream SDK API Reference

8.0 Release
custom_object.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
22 #ifndef NVIDIA_DEEPSTREAM_CUSTOM_OBJECT
23 #define NVIDIA_DEEPSTREAM_CUSTOM_OBJECT
24 
25 #include <map>
26 
27 #include "object.hpp"
28 
29 namespace deepstream {
30 
34 class CustomObject : public Object {
35  public:
43  CustomObject(unsigned long type_id, const char* factory, const std::string& name);
44 
45  protected:
46  virtual void set_(const std::string& name, const Value& value);
47  virtual void set_(const std::string& name, const YAML::Node& value);
48  virtual Value get_(const std::string&name);
49 
51  std::string param_spec_;
53  std::map<std::string, Object::Value> properties_;
54 };
55 
56 }
57 
58 #endif
deepstream::CustomObject::get_
virtual Value get_(const std::string &name)
deepstream::CustomObject::CustomObject
CustomObject(unsigned long type_id, const char *factory, const std::string &name)
Constructor.
deepstream::CustomObject::properties_
std::map< std::string, Object::Value > properties_
property map
Definition: custom_object.hpp:53
deepstream::CustomObject
Base class for all the custom objects.
Definition: custom_object.hpp:34
deepstream::Object::Value
Value wrapper for various types.
Definition: object.hpp:53
deepstream::CustomObject::param_spec_
std::string param_spec_
property spec in YAML format
Definition: custom_object.hpp:51
deepstream
Definition: buffer.hpp:33
deepstream::CustomObject::set_
virtual void set_(const std::string &name, const Value &value)
object.hpp
deepstream::Object
Base Object class.
Definition: object.hpp:44