Skip to content
Start free evaluation

pdcomm::formattedProgramQueryCommandInfo

Function

Describes one command of a returned program.

inline GemFormattedProgramQueryCommandInfo formattedProgramQueryCommandInfo(const GemResult &result, size_t index)

Declared in: #include <pdcomm_gem_formatted_program_queries.hpp>

Parameters

NameDescription
resultFormatted program request result whose answer contains a program.
indexZero-based command position, less than GemFormattedProgramQueryInfo::commandCount.

Returns

Parameter count and CCODE format.

Notes

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