NVIDIA DeepStream SDK API Reference

9.2 Release
MqttCommunicatorParams Class Reference

Detailed Description

Store MQTT communicator configuration parameters.

Definition at line 27 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Inheritance diagram for MqttCommunicatorParams:
Collaboration diagram for MqttCommunicatorParams:

Public Member Functions

 MqttCommunicatorParams ()
 Initialize MQTT communicator parameters with default values. More...
 
 MqttCommunicatorParams (const std::string &configFilePath, const std::string moduleName)
 Initialize MQTT communicator parameters from a configuration module. More...
 
 MqttCommunicatorParams (const YAML::Node &fn)
 Initialize MQTT communicator parameters from a YAML node. More...
 
void read (const YAML::Node &fn) override
 Update MQTT communicator parameters from a YAML node. More...
 
 MqttCommunicatorParams ()
 Initialize MQTT communicator parameters with default values. More...
 
 MqttCommunicatorParams (const std::string &configFilePath, const std::string moduleName)
 Initialize MQTT communicator parameters from a configuration module. More...
 
 MqttCommunicatorParams (const YAML::Node &fn)
 Initialize MQTT communicator parameters from a YAML node. More...
 
void read (const YAML::Node &fn) override
 Update MQTT communicator parameters 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

COMMUNICATOR_TYPES m_communicatorType
 Selects the communicator implementation. More...
 
int m_debugVerboseLevel
 Controls debug message verbosity. More...
 
int m_saveLog2File
 Indicates whether communicator logs are saved to a file. More...
 
std::string m_mqttProtoAdaptorConfigPath
 Stores the MQTT protocol-adaptor configuration path. More...
 
std::string m_pubSubInfoConfigPath
 Path to publish/subscribe configuration file. More...
 
int m_waitForConnInterval
 Specifies the interval between connection checks. More...
 
int m_connTimeout
 Specifies the connection timeout. More...
 

Constructor & Destructor Documentation

◆ MqttCommunicatorParams() [1/6]

MqttCommunicatorParams::MqttCommunicatorParams ( )
inline

◆ MqttCommunicatorParams() [2/6]

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

Initialize MQTT communicator parameters from a configuration module.

Parameters
[in]configFilePathThe path to a configuration file.
[in]moduleNameThe configuration module name.

Definition at line 47 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

References NvTrackerParams::getConfigRoot(), m_mqttProtoAdaptorConfigPath, m_pubSubInfoConfigPath, read(), and NvTrackerParams::resolvePathRelativeToConfig().

◆ MqttCommunicatorParams() [3/6]

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

Initialize MQTT communicator parameters from a YAML node.

Parameters
[in]fnParsed YAML structure of config to update.

Definition at line 61 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

References read().

◆ MqttCommunicatorParams() [4/6]

MqttCommunicatorParams::MqttCommunicatorParams ( )
inline

◆ MqttCommunicatorParams() [5/6]

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

Initialize MQTT communicator parameters from a configuration module.

Parameters
[in]configFilePathThe path to a configuration file.
[in]moduleNameThe configuration module name.

Definition at line 47 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

References NvTrackerParams::getConfigRoot(), m_mqttProtoAdaptorConfigPath, m_pubSubInfoConfigPath, read(), and NvTrackerParams::resolvePathRelativeToConfig().

◆ MqttCommunicatorParams() [6/6]

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

Initialize MQTT communicator parameters from a YAML node.

Parameters
[in]fnParsed YAML structure of config to update.

Definition at line 61 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.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 MqttCommunicatorParams::read ( const YAML::Node &  fn)
inlineoverridevirtual

Update MQTT communicator parameters from a YAML node.

Parameters
[in]fnParsed YAML structure of config to update.

Implements NvTrackerParams.

Definition at line 70 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

References m_communicatorType, m_connTimeout, m_debugVerboseLevel, m_mqttProtoAdaptorConfigPath, m_pubSubInfoConfigPath, m_saveLog2File, m_waitForConnInterval, and MqttCommunicatorParams().

◆ read() [2/2]

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

Update MQTT communicator parameters from a YAML node.

Parameters
[in]fnParsed YAML structure of config to update.

Implements NvTrackerParams.

Definition at line 70 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

References m_communicatorType, m_connTimeout, m_debugVerboseLevel, m_mqttProtoAdaptorConfigPath, m_pubSubInfoConfigPath, m_saveLog2File, m_waitForConnInterval, and MqttCommunicatorParams().

Referenced by MqttCommunicatorParams().

◆ 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().

◆ 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_communicatorType

COMMUNICATOR_TYPES MqttCommunicatorParams::m_communicatorType

Selects the communicator implementation.

Definition at line 96 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_connTimeout

int MqttCommunicatorParams::m_connTimeout

Specifies the connection timeout.

Definition at line 102 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_debugVerboseLevel

int MqttCommunicatorParams::m_debugVerboseLevel

Controls debug message verbosity.

Definition at line 97 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_mqttProtoAdaptorConfigPath

std::string MqttCommunicatorParams::m_mqttProtoAdaptorConfigPath

Stores the MQTT protocol-adaptor configuration path.

Definition at line 99 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_pubSubInfoConfigPath

std::string MqttCommunicatorParams::m_pubSubInfoConfigPath

Path to publish/subscribe configuration file.

Definition at line 100 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_saveLog2File

int MqttCommunicatorParams::m_saveLog2File

Indicates whether communicator logs are saved to a file.

Definition at line 98 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().

◆ m_waitForConnInterval

int MqttCommunicatorParams::m_waitForConnInterval

Specifies the interval between connection checks.

Definition at line 101 of file sources/libs/nvmultiobjecttracker/include/modules/MultiViewAssociator/MqttCommunicator.hpp.

Referenced by MqttCommunicatorParams(), and read().


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