NVIDIA DeepStream SDK API Reference

9.2 Release
ReIDServiceFactoryParams Class Reference

Detailed Description

Stores the implementation type selected by the factory.

Definition at line 30 of file sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

Inheritance diagram for ReIDServiceFactoryParams:
Collaboration diagram for ReIDServiceFactoryParams:

Public Member Functions

 ReIDServiceFactoryParams ()
 Construct ReID-service factory parameters. More...
 
 ReIDServiceFactoryParams (const std::string &configFilePath, const std::string moduleName)
 Construct a ReIDServiceFactoryParams instance. More...
 
 ReIDServiceFactoryParams (const YAML::Node &fn)
 Construct a ReIDServiceFactoryParams instance. More...
 
void read (const YAML::Node &fn) override
 Load configuration values from a YAML node. More...
 
 ReIDServiceFactoryParams ()
 Construct ReID-service factory parameters. More...
 
 ReIDServiceFactoryParams (const std::string &configFilePath, const std::string moduleName)
 Construct a ReIDServiceFactoryParams instance. More...
 
 ReIDServiceFactoryParams (const YAML::Node &fn)
 Construct a ReIDServiceFactoryParams instance. More...
 
void read (const YAML::Node &fn) override
 Load configuration values from a YAML node. More...
 

Static Public Member Functions

static std::string resolvePathRelativeToConfig (const std::string &configFilePath, const std::string &filePath)
 Resolve a configured path relative to the tracker configuration file. More...
 
static std::string resolvePathRelativeToConfig (const std::string &configFilePath, const std::string &filePath)
 Resolve a configured path relative to the tracker configuration file. More...
 
static const YAML::Node getConfigRoot (const std::string &configFilePath, const bool printMessage=false)
 Load the root YAML node from a tracker configuration file. More...
 
static const YAML::Node getConfigRoot (const std::string &configFilePath, const bool printMessage=false)
 Load the root YAML node from a tracker configuration file. More...
 

Data Fields

REID_SERVICE_TYPES m_reidServiceType
 The type of reid service. More...
 

Constructor & Destructor Documentation

◆ ReIDServiceFactoryParams() [1/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( )
inline

Construct ReID-service factory parameters.

Definition at line 34 of file sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References DUMMY_REID_SERVICE, and m_reidServiceType.

Referenced by read().

◆ ReIDServiceFactoryParams() [2/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( const std::string &  configFilePath,
const std::string  moduleName 
)
inline

Construct a ReIDServiceFactoryParams instance.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]moduleNameConfiguration module name.

Definition at line 44 of file sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References NvTrackerParams::getConfigRoot(), and read().

◆ ReIDServiceFactoryParams() [3/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( const YAML::Node &  fn)
inline

Construct a ReIDServiceFactoryParams instance.

Parameters
[in]fnParsed YAML node.

Definition at line 54 of file sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References read().

◆ ReIDServiceFactoryParams() [4/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( )
inline

Construct ReID-service factory parameters.

Definition at line 34 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References DUMMY_REID_SERVICE, and m_reidServiceType.

◆ ReIDServiceFactoryParams() [5/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( const std::string &  configFilePath,
const std::string  moduleName 
)
inline

Construct a ReIDServiceFactoryParams instance.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]moduleNameConfiguration module name.

Definition at line 44 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References NvTrackerParams::getConfigRoot(), and read().

◆ ReIDServiceFactoryParams() [6/6]

ReIDServiceFactoryParams::ReIDServiceFactoryParams ( const YAML::Node &  fn)
inline

Construct a ReIDServiceFactoryParams instance.

Parameters
[in]fnParsed YAML node.

Definition at line 54 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References read().

Member Function Documentation

◆ getConfigRoot() [1/2]

static const YAML::Node NvTrackerParams::getConfigRoot ( const std::string &  configFilePath,
const bool  printMessage = false 
)
inlinestaticinherited

◆ getConfigRoot() [2/2]

static const YAML::Node NvTrackerParams::getConfigRoot ( const std::string &  configFilePath,
const bool  printMessage = false 
)
inlinestaticinherited

Load the root YAML node from a tracker configuration file.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]printMessageEnables warning output when the configuration cannot be loaded.
Returns
Loaded YAML root node, or an empty node when loading fails.

Definition at line 121 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

References CLOG.

◆ read() [1/2]

void ReIDServiceFactoryParams::read ( const YAML::Node &  fn)
inlineoverridevirtual

Load configuration values from a YAML node.

Parameters
[in]fnParsed YAML node.

Set the default values.

TODO: Validate the type.

Implements NvTrackerParams.

Definition at line 63 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References m_reidServiceType, and ReIDServiceFactoryParams().

◆ read() [2/2]

void ReIDServiceFactoryParams::read ( const YAML::Node &  fn)
inlineoverridevirtual

Load configuration values from a YAML node.

Parameters
[in]fnParsed YAML node.

Set the default values.

TODO: Validate the type.

Implements NvTrackerParams.

Definition at line 63 of file sources/libs/nvmultiobjecttracker/include/modules/ReIDService/ReIDService_factory.hpp.

References m_reidServiceType, and ReIDServiceFactoryParams().

Referenced by ReIDServiceFactoryParams().

◆ resolvePathRelativeToConfig() [1/2]

static std::string NvTrackerParams::resolvePathRelativeToConfig ( const std::string &  configFilePath,
const std::string &  filePath 
)
inlinestaticinherited

Resolve a configured path relative to the tracker configuration file.

Existing paths are canonicalized, while nonexistent relative paths remain joined to the configuration directory.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]filePathAbsolute or configuration-relative path to resolve.
Returns
Resolved path, or the original path when the configuration path cannot be resolved.

Definition at line 55 of file sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

Referenced by CommunicatorParams::CommunicatorParams(), and MqttCommunicatorParams::MqttCommunicatorParams().

◆ resolvePathRelativeToConfig() [2/2]

static std::string NvTrackerParams::resolvePathRelativeToConfig ( const std::string &  configFilePath,
const std::string &  filePath 
)
inlinestaticinherited

Resolve a configured path relative to the tracker configuration file.

Existing paths are canonicalized, while nonexistent relative paths remain joined to the configuration directory.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]filePathAbsolute or configuration-relative path to resolve.
Returns
Resolved path, or the original path when the configuration path cannot be resolved.

Definition at line 55 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

Field Documentation

◆ m_reidServiceType

REID_SERVICE_TYPES ReIDServiceFactoryParams::m_reidServiceType

The documentation for this class was generated from the following file: