Skip to content

Pylon::IEnumerationEx#

Extends the GenApi::IEnumeration interface with convenience methods.

#include <pylon/EnumParameter.h>

Inherits from GenApi::IEnumeration, Pylon::IValueEx, GenApi::IValue, GenApi::IBase

Inherited by Pylon::IEnumParameterT< AccessModeEnums >, Pylon::IEnumParameterT< AcquisitionFrameRateEnumEnums >, Pylon::IEnumParameterT< AcquisitionModeEnums >, Pylon::IEnumParameterT< AcquisitionStatusSelectorEnums >, Pylon::IEnumParameterT< AreaTriggerModeEnums >, Pylon::IEnumParameterT< AutoFunctionAOISelectorEnums >, Pylon::IEnumParameterT< AutoFunctionProfileEnums >, Pylon::IEnumParameterT< AutoFunctionROISelectorEnums >, Pylon::IEnumParameterT< AutoTonalRangeAdjustmentSelectorEnums >, Pylon::IEnumParameterT< AutoTonalRangeModeSelectorEnums >, Pylon::IEnumParameterT< BalanceRatioSelectorEnums >, Pylon::IEnumParameterT< BalanceWhiteAutoEnums >, Pylon::IEnumParameterT< BandwidthReserveModeEnums >, Pylon::IEnumParameterT< BinningHorizontalModeEnums >, Pylon::IEnumParameterT< BinningModeHorizontalEnums >, Pylon::IEnumParameterT< BinningModeVerticalEnums >, Pylon::IEnumParameterT< BinningSelectorEnums >, Pylon::IEnumParameterT< BinningVerticalModeEnums >, Pylon::IEnumParameterT< BitAlignmentEnums >, Pylon::IEnumParameterT< BlackLevelSelectorEnums >, Pylon::IEnumParameterT< BLCSerialPortBaudRateEnums >, Pylon::IEnumParameterT< BLCSerialPortParityEnums >, Pylon::IEnumParameterT< BLCSerialPortSourceEnums >, Pylon::IEnumParameterT< BLCSerialPortStopBitsEnums >, Pylon::IEnumParameterT< BLCSerialReceiveQueueStatusEnums >, Pylon::IEnumParameterT< BLCSerialTransmitQueueStatusEnums >, Pylon::IEnumParameterT< BslAcquisitionBurstModeEnums >, Pylon::IEnumParameterT< BslAcquisitionStopModeEnums >, Pylon::IEnumParameterT< BslAdaptiveToneMappingModeEnums >, Pylon::IEnumParameterT< BslBlackLevelCompensationModeEnums >, Pylon::IEnumParameterT< BslChunkAutoBrightnessStatusEnums >, Pylon::IEnumParameterT< BslChunkTimestampSelectorEnums >, Pylon::IEnumParameterT< BslColorAdjustmentSelectorEnums >, Pylon::IEnumParameterT< BslColorSpaceEnums >, Pylon::IEnumParameterT< BslColorSpaceModeEnums >, Pylon::IEnumParameterT< BslContrastModeEnums >, Pylon::IEnumParameterT< BslDefectPixelCorrectionModeEnums >, Pylon::IEnumParameterT< BslExposureTimeModeEnums >, Pylon::IEnumParameterT< BslImmediateTriggerModeEnums >, Pylon::IEnumParameterT< BslLightControlErrorStatusEnums >, Pylon::IEnumParameterT< BslLightControlModeEnums >, Pylon::IEnumParameterT< BslLightControlSourceEnums >, Pylon::IEnumParameterT< BslLightControlStatusEnums >, Pylon::IEnumParameterT< BslLightDeviceChangeIDEnums >, Pylon::IEnumParameterT< BslLightDeviceLastErrorEnums >, Pylon::IEnumParameterT< BslLightDeviceOperationModeEnums >, Pylon::IEnumParameterT< BslLightDeviceSelectorEnums >, Pylon::IEnumParameterT< BslLightDeviceStrobeModeEnums >, Pylon::IEnumParameterT< BslLightSourcePresetEnums >, Pylon::IEnumParameterT< BslLightSourcePresetFeatureSelectorEnums >, Pylon::IEnumParameterT< BslLineConnectionEnums >, Pylon::IEnumParameterT< BslMultipleROIColumnSelectorEnums >, Pylon::IEnumParameterT< BslMultipleROIRowSelectorEnums >, Pylon::IEnumParameterT< BslPeriodicSignalActivationEnums >, Pylon::IEnumParameterT< BslPeriodicSignalSelectorEnums >, Pylon::IEnumParameterT< BslPeriodicSignalSourceEnums >, Pylon::IEnumParameterT< BslPtpDelayMechanismEnums >, Pylon::IEnumParameterT< BslPtpNetworkModeEnums >, Pylon::IEnumParameterT< BslPtpProfileEnums >, Pylon::IEnumParameterT< BslSensorBitDepthEnums >, Pylon::IEnumParameterT< BslSensorBitDepthModeEnums >, Pylon::IEnumParameterT< BslSensorStateEnums >, Pylon::IEnumParameterT< BslSerialBaudRateEnums >, Pylon::IEnumParameterT< BslSerialNumberOfDataBitsEnums >, Pylon::IEnumParameterT< BslSerialNumberOfStopBitsEnums >, Pylon::IEnumParameterT< BslSerialParityEnums >, Pylon::IEnumParameterT< BslSerialRxSourceEnums >, Pylon::IEnumParameterT< BslTemperatureStatusEnums >, Pylon::IEnumParameterT< BslTransferBitDepthEnums >, Pylon::IEnumParameterT< BslTransferBitDepthModeEnums >, Pylon::IEnumParameterT< BslTwiBitrateEnums >, Pylon::IEnumParameterT< BslTwiTransferStatusEnums >, Pylon::IEnumParameterT< BslUSBPowerSourceEnums >, Pylon::IEnumParameterT< BslUSBSpeedModeEnums >, Pylon::IEnumParameterT< BslVignettingCorrectionModeEnums >, Pylon::IEnumParameterT< CameraOperationModeEnums >, Pylon::IEnumParameterT< ChunkCounterSelectorEnums >, Pylon::IEnumParameterT< ChunkGainSelectorEnums >, Pylon::IEnumParameterT< ChunkPixelFormatEnums >, Pylon::IEnumParameterT< ChunkSelectorEnums >, Pylon::IEnumParameterT< ClConfigurationEnums >, Pylon::IEnumParameterT< ClPixelClockEnums >, Pylon::IEnumParameterT< ClSerialPortBaudRateEnums >, Pylon::IEnumParameterT< ClTapGeometryEnums >, Pylon::IEnumParameterT< ClTimeSlotsEnums >, Pylon::IEnumParameterT< ColorAdjustmentSelectorEnums >, Pylon::IEnumParameterT< ColorOverexposureCompensationAOISelectorEnums >, Pylon::IEnumParameterT< ColorSpaceEnums >, Pylon::IEnumParameterT< ColorTransformationSelectorEnums >, Pylon::IEnumParameterT< ColorTransformationValueSelectorEnums >, Pylon::IEnumParameterT< ComponentSelectorEnums >, Pylon::IEnumParameterT< CompressionModeEnums >, Pylon::IEnumParameterT< CounterEventActivationEnums >, Pylon::IEnumParameterT< CounterEventSourceEnums >, Pylon::IEnumParameterT< CounterResetActivationEnums >, Pylon::IEnumParameterT< CounterResetSourceEnums >, Pylon::IEnumParameterT< CounterSelectorEnums >, Pylon::IEnumParameterT< CounterStatusEnums >, Pylon::IEnumParameterT< CounterTriggerActivationEnums >, Pylon::IEnumParameterT< CounterTriggerSourceEnums >, Pylon::IEnumParameterT< CxpConnectionTestModeEnums >, Pylon::IEnumParameterT< CxpErrorCounterSelectorEnums >, Pylon::IEnumParameterT< CxpErrorCounterStatusEnums >, Pylon::IEnumParameterT< CxpLinkConfigurationEnums >, Pylon::IEnumParameterT< CxpLinkConfigurationPreferredEnums >, Pylon::IEnumParameterT< CxpLinkConfigurationStatusEnums >, Pylon::IEnumParameterT< CxpPoCxpStatusEnums >, Pylon::IEnumParameterT< CxpPort0PowerStateEnums >, Pylon::IEnumParameterT< CxpPort1PowerStateEnums >, Pylon::IEnumParameterT< CxpPort2PowerStateEnums >, Pylon::IEnumParameterT< CxpPort3PowerStateEnums >, Pylon::IEnumParameterT< CxpSendReceiveSelectorEnums >, Pylon::IEnumParameterT< CxpTriggerPacketModeEnums >, Pylon::IEnumParameterT< DefectPixelCorrectionModeEnums >, Pylon::IEnumParameterT< DemosaicingModeEnums >, Pylon::IEnumParameterT< DeviceAccessStatusEnums >, Pylon::IEnumParameterT< DeviceCharacterSetEnums >, Pylon::IEnumParameterT< DeviceEndianessMechanismEnums >, Pylon::IEnumParameterT< DeviceIndicatorModeEnums >, Pylon::IEnumParameterT< DeviceLinkThroughputLimitModeEnums >, Pylon::IEnumParameterT< DeviceRegistersEndiannessEnums >, Pylon::IEnumParameterT< DeviceScanTypeEnums >, Pylon::IEnumParameterT< DeviceTapGeometryEnums >, Pylon::IEnumParameterT< DeviceTemperatureSelectorEnums >, Pylon::IEnumParameterT< DeviceTLTypeEnums >, Pylon::IEnumParameterT< DeviceTypeEnums >, Pylon::IEnumParameterT< EventNotificationEnums >, Pylon::IEnumParameterT< EventSelectorEnums >, Pylon::IEnumParameterT< EventTemperatureStatusChangedStatusEnums >, Pylon::IEnumParameterT< ExpertFeatureAccessSelectorEnums >, Pylon::IEnumParameterT< ExposureAutoEnums >, Pylon::IEnumParameterT< ExposureModeEnums >, Pylon::IEnumParameterT< ExposureOverlapTimeModeEnums >, Pylon::IEnumParameterT< ExposureTimeModeEnums >, Pylon::IEnumParameterT< FeatureSetEnums >, Pylon::IEnumParameterT< FieldOutputModeEnums >, Pylon::IEnumParameterT< FileOpenModeEnums >, Pylon::IEnumParameterT< FileOperationSelectorEnums >, Pylon::IEnumParameterT< FileOperationStatusEnums >, Pylon::IEnumParameterT< FileSelectorEnums >, Pylon::IEnumParameterT< FormatEnums >, Pylon::IEnumParameterT< FrequencyConverterInputSourceEnums >, Pylon::IEnumParameterT< FrequencyConverterSignalAlignmentEnums >, Pylon::IEnumParameterT< GainAutoEnums >, Pylon::IEnumParameterT< GainSelectorEnums >, Pylon::IEnumParameterT< GammaSelectorEnums >, Pylon::IEnumParameterT< GenDCStreamingModeEnums >, Pylon::IEnumParameterT< GenDCStreamingStatusEnums >, Pylon::IEnumParameterT< GevCCPEnums >, Pylon::IEnumParameterT< GevGVSPExtendedIDModeEnums >, Pylon::IEnumParameterT< GevIEEE1588StatusEnums >, Pylon::IEnumParameterT< GevIEEE1588StatusLatchedEnums >, Pylon::IEnumParameterT< GevInterfaceSelectorEnums >, Pylon::IEnumParameterT< GevStreamChannelSelectorEnums >, Pylon::IEnumParameterT< ImageCompressionModeEnums >, Pylon::IEnumParameterT< ImageCompressionRateOptionEnums >, Pylon::IEnumParameterT< ImageFileModeEnums >, Pylon::IEnumParameterT< InconvertibleEdgeHandlingEnums >, Pylon::IEnumParameterT< IntensityCalculationEnums >, Pylon::IEnumParameterT< InterfaceAppletEnums >, Pylon::IEnumParameterT< InterfaceAppletStatusEnums >, Pylon::IEnumParameterT< InterfaceTypeEnums >, Pylon::IEnumParameterT< InterlacedIntegrationModeEnums >, Pylon::IEnumParameterT< LastErrorEnums >, Pylon::IEnumParameterT< LegacyBinningVerticalEnums >, Pylon::IEnumParameterT< LightSourcePresetEnums >, Pylon::IEnumParameterT< LightSourceSelectorEnums >, Pylon::IEnumParameterT< LineFormatEnums >, Pylon::IEnumParameterT< LineLogicEnums >, Pylon::IEnumParameterT< LineModeEnums >, Pylon::IEnumParameterT< LineSelectorEnums >, Pylon::IEnumParameterT< LineSourceEnums >, Pylon::IEnumParameterT< LutEnableEnums >, Pylon::IEnumParameterT< LutImplementationTypeEnums >, Pylon::IEnumParameterT< LUTSelectorEnums >, Pylon::IEnumParameterT< LutTypeEnums >, Pylon::IEnumParameterT< MissingCameraFrameResponseEnums >, Pylon::IEnumParameterT< MonoConversionMethodEnums >, Pylon::IEnumParameterT< OperatingModeEnums >, Pylon::IEnumParameterT< OutputBitAlignmentEnums >, Pylon::IEnumParameterT< OutputOrientationEnums >, Pylon::IEnumParameterT< OverlapModeEnums >, Pylon::IEnumParameterT< ParameterSelectorEnums >, Pylon::IEnumParameterT< PgiModeEnums >, Pylon::IEnumParameterT< PixelCodingEnums >, Pylon::IEnumParameterT< PixelColorFilterEnums >, Pylon::IEnumParameterT< PixelFormatEnums >, Pylon::IEnumParameterT< PixelSizeEnums >, Pylon::IEnumParameterT< ProcessingInvertEnums >, Pylon::IEnumParameterT< PtpClockAccuracyEnums >, Pylon::IEnumParameterT< PtpServoStatusEnums >, Pylon::IEnumParameterT< PtpStatusEnums >, Pylon::IEnumParameterT< RemoveParameterLimitSelectorEnums >, Pylon::IEnumParameterT< ROIZoneModeEnums >, Pylon::IEnumParameterT< ROIZoneSelectorEnums >, Pylon::IEnumParameterT< Scan3dCoordinateSelectorEnums >, Pylon::IEnumParameterT< Scan3dCoordinateSystemEnums >, Pylon::IEnumParameterT< Scan3dCoordinateSystemReferenceEnums >, Pylon::IEnumParameterT< Scan3dDistanceUnitEnums >, Pylon::IEnumParameterT< Scan3dOutputModeEnums >, Pylon::IEnumParameterT< SensorBitDepthEnums >, Pylon::IEnumParameterT< SensorDigitizationTapsEnums >, Pylon::IEnumParameterT< SensorReadoutModeEnums >, Pylon::IEnumParameterT< SensorShutterModeEnums >, Pylon::IEnumParameterT< SequenceAddressBitSelectorEnums >, Pylon::IEnumParameterT< SequenceAddressBitSourceEnums >, Pylon::IEnumParameterT< SequenceAdvanceModeEnums >, Pylon::IEnumParameterT< SequenceConfigurationModeEnums >, Pylon::IEnumParameterT< SequenceControlSelectorEnums >, Pylon::IEnumParameterT< SequenceControlSourceEnums >, Pylon::IEnumParameterT< SequencerConfigurationModeEnums >, Pylon::IEnumParameterT< SequencerModeEnums >, Pylon::IEnumParameterT< SequencerTriggerActivationEnums >, Pylon::IEnumParameterT< SequencerTriggerSourceEnums >, Pylon::IEnumParameterT< ShadingSelectorEnums >, Pylon::IEnumParameterT< ShadingSetCreateEnums >, Pylon::IEnumParameterT< ShadingSetDefaultSelectorEnums >, Pylon::IEnumParameterT< ShadingSetSelectorEnums >, Pylon::IEnumParameterT< ShadingStatusEnums >, Pylon::IEnumParameterT< ShaftEncoderModuleCounterModeEnums >, Pylon::IEnumParameterT< ShaftEncoderModuleLineSelectorEnums >, Pylon::IEnumParameterT< ShaftEncoderModuleLineSourceEnums >, Pylon::IEnumParameterT< ShaftEncoderModuleModeEnums >, Pylon::IEnumParameterT< ShutterModeEnums >, Pylon::IEnumParameterT< SoftwareSignalSelectorEnums >, Pylon::IEnumParameterT< SoftwareTriggerIsBusyEnums >, Pylon::IEnumParameterT< StatusEnums >, Pylon::IEnumParameterT< StreamBufferHandlingModeEnums >, Pylon::IEnumParameterT< StreamTypeEnums >, Pylon::IEnumParameterT< SyncUserOutputSelectorEnums >, Pylon::IEnumParameterT< SystemmonitorByteAlignment8b10bLockedEnums >, Pylon::IEnumParameterT< SystemmonitorExternalPowerEnums >, Pylon::IEnumParameterT< SystemmonitorPowerOverCxpStateEnums >, Pylon::IEnumParameterT< TemperatureSelectorEnums >, Pylon::IEnumParameterT< TemperatureStateEnums >, Pylon::IEnumParameterT< TestImageSelectorEnums >, Pylon::IEnumParameterT< TestPatternEnums >, Pylon::IEnumParameterT< TimerSelectorEnums >, Pylon::IEnumParameterT< TimerSequenceEntrySelectorEnums >, Pylon::IEnumParameterT< TimerSequenceTimerSelectorEnums >, Pylon::IEnumParameterT< TimerStatusEnums >, Pylon::IEnumParameterT< TimerTriggerActivationEnums >, Pylon::IEnumParameterT< TimerTriggerSourceEnums >, Pylon::IEnumParameterT< TonalRangeAutoEnums >, Pylon::IEnumParameterT< TonalRangeEnableEnums >, Pylon::IEnumParameterT< TonalRangeSelectorEnums >, Pylon::IEnumParameterT< TransmissionTypeEnums >, Pylon::IEnumParameterT< TriggerActivationEnums >, Pylon::IEnumParameterT< TriggerCameraOutSelectEnums >, Pylon::IEnumParameterT< TriggerControlImplementationEnums >, Pylon::IEnumParameterT< TriggerDelaySourceEnums >, Pylon::IEnumParameterT< TriggerExceededPeriodLimitsEnums >, Pylon::IEnumParameterT< TriggerInPolarityEnums >, Pylon::IEnumParameterT< TriggerInSourceEnums >, Pylon::IEnumParameterT< TriggerInStatisticsPolarityEnums >, Pylon::IEnumParameterT< TriggerInStatisticsSourceEnums >, Pylon::IEnumParameterT< TriggerModeEnums >, Pylon::IEnumParameterT< TriggerOutSelectFrontGPO0Enums >, Pylon::IEnumParameterT< TriggerOutSelectFrontGPO1Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO0Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO1Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO2Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO3Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO4Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO5Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO6Enums >, Pylon::IEnumParameterT< TriggerOutSelectGPO7Enums >, Pylon::IEnumParameterT< TriggerOutStatisticsSourceEnums >, Pylon::IEnumParameterT< TriggerQueueModeEnums >, Pylon::IEnumParameterT< TriggerSelectorEnums >, Pylon::IEnumParameterT< TriggerSourceEnums >, Pylon::IEnumParameterT< TriggerStateEnums >, Pylon::IEnumParameterT< TypeEnums >, Pylon::IEnumParameterT< UserDefinedValueSelectorEnums >, Pylon::IEnumParameterT< UserOutputSelectorEnums >, Pylon::IEnumParameterT< UserSetDefaultEnums >, Pylon::IEnumParameterT< UserSetDefaultSelectorEnums >, Pylon::IEnumParameterT< UserSetSelectorEnums >, Pylon::IEnumParameterT< VignettingCorrectionModeEnums >, Pylon::IEnumParameterT< VInpSignalReadoutActivationEnums >, Pylon::IEnumParameterT< VInpSignalSourceEnums >, Pylon::CEnumParameter, Pylon::IEnumParameterT< EnumT >

Public Functions#

Name
virtual String_t GetValueOrDefault(const String_t & defaultValue)
Gets the value of the parameter if the parameter is readable.
virtual bool TrySetValue(const String_t & value)
Sets the value of the parameter if the parameter is writable and the value is contained in the set of settable enumeration values.
virtual void SetValue(const char ** nullTerminatedList)
Sets the value of the parameter to the first valid value in a list of values.
virtual bool TrySetValue(const char ** nullTerminatedList)
If the parameter is writable, sets the value of the parameter to the first valid value in a list of values.
virtual bool CanSetValue(const String_t & value)
Indicates whether the given value can be set.
virtual void SetValue(const String_t & value)
Sets the value of the parameter.
virtual String_t GetValue()
Gets the value of the parameter.
virtual void GetSettableValues(GenApi::StringList_t & values)
Gets a list of all values of the enumeration that are currently settable.
virtual void GetAllValues(GenApi::StringList_t & values)
Gets a list of all values of the enumeration including the values that are currently not settable.
virtual CParameter GetEntryByNameAsParameter(const GenICam::gcstring & value)
Gets an enumeration entry by its symbolic name.
virtual CParameter GetCurrentEntryAsParameter()
Gets the currently selected entry of an enumeration.
virtual void GetSymbolics(StringList_t & Symbolics)
Get list of symbolic Values.
virtual void GetEntries(NodeList_t & Entries)
Get list of entry nodes.
virtual void SetIntValue(int64_t Value, bool Verify =true)
Set integer node value.
virtual GenICam::gcstring operator*()
Get string node value.
virtual int64_t GetIntValue(bool Verify =false, bool IgnoreCache =false)
Get integer node value.
virtual IEnumEntry * GetEntryByName(const GenICam::gcstring & Symbolic)
Get an entry node by name.
virtual IEnumEntry * GetEntry(const int64_t IntValue)
Get an entry node by its IntValue.
virtual IEnumEntry * GetCurrentEntry(bool Verify =false, bool IgnoreCache =false)
Get the current entry.
virtual INode * GetNode()
Get the INode interface of the node.
virtual GenICam::gcstring ToString(bool Verify =false, bool IgnoreCache =false)
Get content of the node as string.
virtual void FromString(const GenICam::gcstring & ValueStr, bool Verify =true)
Set content of the node as string.
virtual bool IsValueCacheValid() const
Checks if the value comes from cache or is requested from another node.
virtual EAccessMode GetAccessMode() const
Get the access mode of the node.
virtual bool IsReadable() const
Indicates whether the parameter is readable.
virtual bool IsWritable() const
Indicates whether the parameter is writable.
virtual bool IsValid() const
Indicates whether a node is attached.
virtual String_t GetInfo(EParameterInfo info)
Gets the parameter information.
virtual String_t GetInfoOrDefault(EParameterInfo info, const String_t defaultInfo)
Gets the parameter information if the parameter is attached to a node.
virtual String_t ToStringOrDefault(const String_t & defaultValue)
Gets the parameter value as string if the parameter is readable.

Additional inherited members#

Public Functions inherited from GenApi::IEnumeration

Name
virtual IEnumeration & operator=(const GenICam::gcstring & ValueStr)
Set string node value.

Public Functions inherited from GenApi::IBase

Name
virtual ~IBase()
Virtual destructor enforcing virtual destructor on all derived classes.

Public Functions Documentation#

GetValueOrDefault#

virtual String_t GetValueOrDefault(
    const String_t & defaultValue
) 

Gets the value of the parameter if the parameter is readable.

Parameters:

  • defaultValue The default value returned if the parameter is not readable.

Return: Returns the parameter value if the parameter is readable. Otherwise returns the default value.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if reading the value fails.

Reimplemented by: Pylon::CEnumParameter::GetValueOrDefault

Otherwise returns the default value.

TrySetValue#

virtual bool TrySetValue(
    const String_t & value
) 

Sets the value of the parameter if the parameter is writable and the value is contained in the set of settable enumeration values.

Parameters:

  • value The value to set.

Return: Returns false if the parameter is not writable or the value is not contained in the set of settable enumeration values.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:-

Can throw exceptions if the preconditions are not met or if writing the value fails.

Reimplemented by: Pylon::CEnumParameter::TrySetValue

SetValue#

virtual void SetValue(
    const char ** nullTerminatedList
) 

Sets the value of the parameter to the first valid value in a list of values.

Parameters:

  • nullTerminatedList The list of possible values to set. The list is terminated by a NULL value.

Precondition:

  • The parameter must be writable.
  • At least one value within the list passed must be contained in the set of settable enumeration values.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if the parameter is not writable, no value nullTerminatedList is settable, or writing the value fails.

Reimplemented by: Pylon::CEnumParameter::SetValue

Example:

CEnumParameter pixelFormat(nodemap, "PixelFormat");
const char* list[] = { "BayerGR8", "BayerRG8", "BayerGB8", "BayerBG8", "Mono8", NULL };
pixelFormat.SetValue(list);

TrySetValue#

virtual bool TrySetValue(
    const char ** nullTerminatedList
) 

If the parameter is writable, sets the value of the parameter to the first valid value in a list of values.

Parameters:

  • nullTerminatedList The list of possible values to set. The list is terminated by a NULL value.

Return: Returns false if the parameter is not writable.

Precondition: At least one value within the passed list must be contained in the set of settable enumeration values.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if the parameter is not writable, no value nullTerminatedList is settable, or writing the value fails.

Reimplemented by: Pylon::CEnumParameter::TrySetValue

Example:

CEnumParameter pixelFormat(nodemap, "PixelFormat");
const char* list[] = { "BayerGR8", "BayerRG8", "BayerGB8", "BayerBG8", "Mono8", NULL };
pixelFormat.TrySetValue(list);

CanSetValue#

virtual bool CanSetValue(
    const String_t & value
) 

Indicates whether the given value can be set.

Parameters:

  • value The value to be checked.

Return: Returns true if the value can be set, otherwise false.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Does not throw exceptions.

Reimplemented by: Pylon::CEnumParameter::CanSetValue

SetValue#

virtual void SetValue(
    const String_t & value
) 

Sets the value of the parameter.

Parameters:

  • value The value to set.

Precondition: The value must be contained in the set of settable enumeration values.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if the parameter is not writable, no value is valid, or writing the value fails.

Reimplemented by: Pylon::CEnumParameter::SetValue

Calls FromString().

GetValue#

virtual String_t GetValue() 

Gets the value of the parameter.

Return: Returns the current parameter value.

Precondition: The parameter must be readable.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if the parameter is not readable or if reading the value fails.

Reimplemented by: Pylon::CEnumParameter::GetValue

GetSettableValues#

virtual void GetSettableValues(
    GenApi::StringList_t & values
) 

Gets a list of all values of the enumeration that are currently settable.

Parameters:

  • values Returns a list of all values of the enumeration that are currently settable.

Precondition: The parameter must be readable.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions.

Reimplemented by: Pylon::CEnumParameter::GetSettableValues

GetAllValues#

virtual void GetAllValues(
    GenApi::StringList_t & values
) 

Gets a list of all values of the enumeration including the values that are currently not settable.

Parameters:

  • values Returns a list of all values of the enumeration including the values that are currently not settable.

Precondition: The parameter must be readable.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions.

Reimplemented by: Pylon::CEnumParameter::GetAllValues

GetEntryByNameAsParameter#

virtual CParameter GetEntryByNameAsParameter(
    const GenICam::gcstring & value
) 

Gets an enumeration entry by its symbolic name.

Parameters:

  • value The symbolic name of the enumeration entry, e.g., "Testimage1".

Precondition: The parameter must be readable.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions.

Reimplemented by: Pylon::CEnumParameter::GetEntryByNameAsParameter

The entry is returned as a CParameter. This method can be used to access information about the enumeration value represented by the entry using CParameter::GetInfo().

GetCurrentEntryAsParameter#

virtual CParameter GetCurrentEntryAsParameter() 

Gets the currently selected entry of an enumeration.

Precondition: The parameter must be readable.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions.

Reimplemented by: Pylon::CEnumParameter::GetCurrentEntryAsParameter

The entry is returned as a CParameter. This method can be used to access information about the enumeration value represented by the entry using CParameter::GetInfo().

GetSymbolics#

virtual void GetSymbolics(
    StringList_t & Symbolics
) 

Get list of symbolic Values.

Reimplemented by: Pylon::CEnumParameter::GetSymbolics

GetEntries#

virtual void GetEntries(
    NodeList_t & Entries
) 

Get list of entry nodes.

Reimplemented by: Pylon::CEnumParameter::GetEntries

SetIntValue#

virtual void SetIntValue(
    int64_t Value,
    bool Verify =true
) 

Set integer node value.

Parameters:

  • Value The value to set
  • Verify Enables AccessMode and Range verification (default = true)

Reimplemented by: Pylon::CEnumParameter::SetIntValue

operator*#

virtual GenICam::gcstring operator*() 

Get string node value.

Reimplemented by: Pylon::CEnumParameter::operator*

GetIntValue#

virtual int64_t GetIntValue(
    bool Verify =false,
    bool IgnoreCache =false
) 

Get integer node value.

Parameters:

  • Verify Enables Range verification (default = false). The AccessMode is always checked
  • IgnoreCache If true the value is read ignoring any caches (default = false)

Return: The value read

Reimplemented by: Pylon::CEnumParameter::GetIntValue

GetEntryByName#

virtual IEnumEntry * GetEntryByName(
    const GenICam::gcstring & Symbolic
) 

Get an entry node by name.

Reimplemented by: Pylon::CEnumParameter::GetEntryByName

GetEntry#

virtual IEnumEntry * GetEntry(
    const int64_t IntValue
) 

Get an entry node by its IntValue.

Reimplemented by: Pylon::CEnumParameter::GetEntry

GetCurrentEntry#

virtual IEnumEntry * GetCurrentEntry(
    bool Verify =false,
    bool IgnoreCache =false
) 

Get the current entry.

Reimplemented by: GenApi::IEnumerationT::GetCurrentEntry, Pylon::CEnumParameter::GetCurrentEntry

GetNode#

inline virtual INode * GetNode()

Get the INode interface of the node.

Reimplemented by: Pylon::CArrayParameter::GetNode

ToString#

virtual GenICam::gcstring ToString(
    bool Verify =false,
    bool IgnoreCache =false
) 

Get content of the node as string.

Parameters:

  • Verify Enables Range verification (default = false). The AccessMode is always checked
  • IgnoreCache If true the value is read ignoring any caches (default = false)

Return: The value read

Reimplemented by: Pylon::CArrayParameter::ToString

FromString#

virtual void FromString(
    const GenICam::gcstring & ValueStr,
    bool Verify =true
) 

Set content of the node as string.

Parameters:

  • ValueStr The value to set
  • Verify Enables AccessMode and Range verification (default = true)

Reimplemented by: Pylon::CArrayParameter::FromString

IsValueCacheValid#

virtual bool IsValueCacheValid() const 

Checks if the value comes from cache or is requested from another node.

Reimplemented by: Pylon::CArrayParameter::IsValueCacheValid

GetAccessMode#

virtual EAccessMode GetAccessMode() const 

Get the access mode of the node.

Reimplemented by: Pylon::CArrayParameter::GetAccessMode

IsReadable#

virtual bool IsReadable() const 

Indicates whether the parameter is readable.

Return: Returns true if the parameter is readable.

Error Safety:

Does not throw C++ exceptions.

Reimplemented by: Pylon::CArrayParameter::IsReadable

IsWritable#

virtual bool IsWritable() const 

Indicates whether the parameter is writable.

Return: Returns true if the parameter is writable.

Error Safety:

Does not throw C++ exceptions.

Reimplemented by: Pylon::CArrayParameter::IsWritable

IsValid#

virtual bool IsValid() const 

Indicates whether a node is attached.

Return: Returns true if a node is attached.

Error Safety:

Does not throw C++ exceptions.

Reimplemented by: Pylon::CArrayParameter::IsValid, Pylon::CCommandParameter::IsValid, Pylon::CBooleanParameter::IsValid, Pylon::CStringParameter::IsValid, Pylon::CParameter::IsValid, Pylon::CEnumParameter::IsValid, Pylon::CIntegerParameter::IsValid, Pylon::CFloatParameter::IsValid

GetInfo#

virtual String_t GetInfo(
    EParameterInfo info
) 

Gets the parameter information.

Parameters:

  • info The type information to return.

Return: Returns the parameter information.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Throws an exception if no node is attached. Can throw exceptions if the retrieval of the information fails.

Reimplemented by: Pylon::CArrayParameter::GetInfo

GetInfoOrDefault#

virtual String_t GetInfoOrDefault(
    EParameterInfo info,
    const String_t defaultInfo
) 

Gets the parameter information if the parameter is attached to a node.

Parameters:

  • info The type information to return. Otherwise returns the default information. This method is useful if you want to display parameter information and handle the case that some parameters are not available for a device.
  • defaultInfo The default information returned if the parameter is not attached to a node.

Return: Returns the parameter information if the parameter is attached to a node. Otherwise returns the default information.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if the retrieval of the information fails.

Reimplemented by: Pylon::CArrayParameter::GetInfoOrDefault

See IsValid().

ToStringOrDefault#

virtual String_t ToStringOrDefault(
    const String_t & defaultValue
) 

Gets the parameter value as string if the parameter is readable.

Parameters:

  • defaultValue The default value returned if the parameter is not readable.

Return: Returns the parameter value if the parameter is readable. Otherwise returns the default value.

Thread Safety:

The method accesses the parameter multiple times. These accesses are not synchronized by a lock.

Error Safety:

Can throw exceptions if reading the value fails.

Reimplemented by: Pylon::CArrayParameter::ToStringOrDefault

Otherwise returns the default value.


Updated on 5 July 2022 at 15:30:00