Skip to content
Start free evaluation

pdcomm::formattedProgramQueryParameter

Function

Returns one PPARM of one command of a returned program.

inline SecsItem formattedProgramQueryParameter(const GemResult &result, size_t commandIndex, size_t parameterIndex)

Declared in: #include <pdcomm_gem_formatted_program_queries.hpp>

Parameters

NameDescription
resultFormatted program request result whose answer contains a program.
commandIndexZero-based command position.
parameterIndexZero-based parameter position.

Returns

An independently owned item.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE when no program is present; PDCOMM_OUT_OF_RANGE for an invalid index.