Skip to content

QuantumGate::Extender::GetLocalProtocolVersion

Karel Donk edited this page Jun 10, 2018 · 2 revisions

Gets the QuantumGate protocol version of the QuantumGate instance hosting the extender. Call this function after the extender has been added to an instance.

Signature

Result<std::pair<UInt, UInt>> GetLocalProtocolVersion() const noexcept;

Return values

Returns a QuantumGate::Result object containing, upon successful completion, a std::pair containing the version numbers. The QuantumGate::Result can be equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::ExtenderHasNoLocalInstance The operation failed because the extender hasn't been added to a QuantumGate instance.

The returned version numbers in the optional std::pair are the same as QuantumGate::Local::GetProtocolVersion.

Clone this wiki locally