LTKCPP-- LLRP Toolkit C Plus Plus Library
|
Base Class for All LLRP LTK Parameters. More...
#include <ltkcpp_base.h>
Public Member Functions | |
virtual llrp_bool_t | isAllowedIn (const CTypeDescriptor *pEnclosingTypeDescriptor) const |
Validate whether the element is allowed as a base type in the enclosing element. More... | |
llrp_bool_t | isAllowedExtension (const CTypeDescriptor *pEnclosingTypeDescriptor) |
Validate whether the element is allowed as an extension in the enclosing element. More... | |
![]() | |
void | addSubParameterToAllList (CParameter *pParameter) |
Add a subparameter to m_listAllSubParameters. Called by the accessor functions setXXX and addXXX. More... | |
void | removeSubParameterFromAllList (CParameter *pParameter) |
Delete a subparameter from m_listAllSubParameters. Called by the accessor functions setXXX (to remove prior reference) clearXXX(). More... | |
void | clearSubParameterList (tListOfParameters *pParameterList) |
Clear a list of subparameters. For each entry apply removeSubParameter(). More... | |
int | walk (int(*pFunc)(const CElement *pElement, void *pArg), void *pArg, int iDepth, int nMaxDepth) const |
Recursive tree walk. The callback is invoked for each element. | |
EResultCode | toXMLString (char *pBuffer, int nBuffer) |
A wrapper around LLRP::toXMLString() More... | |
virtual void | decodeFields (CDecoderStream *pDecoderStream)=0 |
Virtual function provided by each specific element type to decode fields (simple values). Leaves pDecoderStream at first subparameter. More... | |
virtual void | assimilateSubParameters (CErrorDetails *pError)=0 |
Assimilates the decoded sub-parameters into m_listAllSubParameters. More... | |
virtual void | encode (CEncoderStream *pEncoderStream) const =0 |
Encode fields and subparameters. More... | |
Additional Inherited Members | |
![]() | |
const CTypeDescriptor * | m_pType |
The type descriptor desribing this element. | |
CElement * | m_pParent |
Element that encloses this one, NULL if this is top-level element. | |
tListOfParameters | m_listAllSubParameters |
List of all sub elements. | |
Base Class for All LLRP LTK Parameters.
Definition at line 1125 of file ltkcpp_base.h.
llrp_bool_t CParameter::isAllowedExtension | ( | const CTypeDescriptor * | pEnclosingTypeDescriptor | ) |
Validate whether the element is allowed as an extension in the enclosing element.
[in] | pEnclosingTypeDescriptor | A pointer to the enclosing type |
Definition at line 127 of file ltkcpp_element.cpp.
References isAllowedIn(), LLRP::CTypeDescriptor::m_bIsMessage, LLRP::CElement::m_pType, LLRP::CTypeDescriptor::m_pVendorDescriptor, and LLRP::CTypeDescriptor::m_TypeNum.
|
virtual |
Validate whether the element is allowed as a base type in the enclosing element.
[in] | pEnclosingTypeDescriptor | A pointer to the enclosing type |
Reimplemented in LLRP::CImpinjRFPowerSweep, LLRP::CImpinjLocationAlgorithmControl, LLRP::CImpinjBLEVersion, LLRP::CImpinjMarginReadOpSpecResult, LLRP::CImpinjMarginRead, LLRP::CImpinjTIDParity, LLRP::CImpinjDisabledAntennas, LLRP::CImpinjAntennaPolarizationCapability, LLRP::CImpinjAntennaCapabilities, LLRP::CImpinjPolarizationControl, LLRP::CImpinjTransmitPower, LLRP::CImpinjIntelligentAntennaManagement, LLRP::CImpinjxArrayDirectionCapabilities, LLRP::CImpinjDirectionDiagnosticData, LLRP::CImpinjDirectionReportData, LLRP::CImpinjDirectionReporting, LLRP::CImpinjExtendedTagInformation, LLRP::CImpinjC1G2DirectionConfig, LLRP::CImpinjDirectionUserTagPopulationLimit, LLRP::CImpinjDirectionConfig, LLRP::CImpinjDirectionSectors, LLRP::CImpinjDISpec, LLRP::CImpinjLocationReportData, LLRP::CImpinjLocationConfidence, LLRP::CImpinjLocationReporting, LLRP::CImpinjC1G2LocationConfig, LLRP::CImpinjLocationConfig, LLRP::CImpinjLISpec, LLRP::CImpinjPlacementConfiguration, LLRP::CImpinjDiagnosticReport, LLRP::CImpinjHubConfiguration, LLRP::CImpinjAntennaAttemptEvent, LLRP::CImpinjAntennaEventConfiguration, LLRP::CImpinjAntennaEventHysteresis, LLRP::CImpinjAntennaConfiguration, LLRP::CImpinjBeaconConfiguration, LLRP::CImpinjTiltConfiguration, LLRP::CImpinjxArrayCapabilities, LLRP::CImpinjArrayVersion, LLRP::CImpinjTxPower, LLRP::CImpinjEnableTxPower, LLRP::CImpinjInventoryConfiguration, LLRP::CImpinjRFDopplerFrequency, LLRP::CImpinjEnableRFDopplerFrequency, LLRP::CImpinjAccessSpecOrdering, LLRP::CImpinjEnableOptimizedRead, LLRP::CImpinjAdvancedGPOConfiguration, LLRP::CImpinjOpSpecRetryCount, LLRP::CImpinjRMCSentence, LLRP::CImpinjGGASentence, LLRP::CImpinjGPSNMEASentences, LLRP::CImpinjLoopSpec, LLRP::CImpinjGPSCoordinates, LLRP::CImpinjPeakRSSI, LLRP::CImpinjRFPhaseAngle, LLRP::CImpinjSerializedTID, LLRP::CImpinjEnableGPSCoordinates, LLRP::CImpinjEnablePeakRSSI, LLRP::CImpinjEnableRFPhaseAngle, LLRP::CImpinjEnableSerializedTID, LLRP::CImpinjTagReportContentSelector, LLRP::CImpinjGetQTConfigOpSpecResult, LLRP::CImpinjGetQTConfig, LLRP::CImpinjSetQTConfigOpSpecResult, LLRP::CImpinjSetQTConfig, LLRP::CImpinjGetBlockPermalockStatusOpSpecResult, LLRP::CImpinjGetBlockPermalockStatus, LLRP::CImpinjBlockPermalockOpSpecResult, LLRP::CImpinjBlockPermalock, LLRP::CImpinjBlockWriteWordCount, LLRP::CImpinjAccessSpecConfiguration, LLRP::CImpinjReportBufferConfiguration, LLRP::CImpinjLinkMonitorConfiguration, LLRP::CImpinjReaderTemperature, LLRP::CImpinjGPIDebounceConfiguration, LLRP::CImpinjFrequencyCapabilities, LLRP::CImpinjDetailedVersion, LLRP::CImpinjHubVersions, LLRP::CImpinjLowDutyCycle, LLRP::CImpinjReducedPowerFrequencyList, LLRP::CImpinjFixedFrequencyList, LLRP::CImpinjInventorySearchMode, LLRP::CImpinjSubRegulatoryRegion, and LLRP::CImpinjRequestedData.
Definition at line 120 of file ltkcpp_element.cpp.
Referenced by isAllowedExtension().