23 CTypeRegistry::CTypeRegistry (
void)
32 CTypeRegistry::~CTypeRegistry (
void)
42 if(1023u < pTypeDescriptor->m_TypeNum)
81 unsigned int MessageTypeNum)
const 83 if(1023u < MessageTypeNum)
93 unsigned int ParameterTypeNum)
const 95 if(1023u < ParameterTypeNum)
106 unsigned int VendorID,
107 unsigned int MessageSubTypeNum)
const 110 std::list<const CTypeDescriptor *>::const_iterator elem =
116 pTypeDescriptor = *elem;
118 MessageSubTypeNum == pTypeDescriptor->
m_TypeNum)
120 return pTypeDescriptor;
129 unsigned int VendorID,
130 unsigned int ParameterSubTypeNum)
const 133 std::list<const CTypeDescriptor *>::const_iterator elem =
139 pTypeDescriptor = *elem;
141 ParameterSubTypeNum == pTypeDescriptor->
m_TypeNum)
143 return pTypeDescriptor;
152 CTypeRegistry::lookupByName (
158 for(i = 0; i < 1024u; i++)
161 if(NULL == pTypeDescriptor)
166 if(0 == strcmp(pTypeDescriptor->
m_pName, pName))
168 return pTypeDescriptor;
172 for(i = 0; i < 1024u; i++)
175 if(NULL == pTypeDescriptor)
180 if(0 == strcmp(pTypeDescriptor->
m_pName, pName))
182 return pTypeDescriptor;
187 std::list<const CTypeDescriptor *>::const_iterator elem =
193 pTypeDescriptor = *elem;
194 if(0 == strcmp(pTypeDescriptor->
m_pName, pName))
196 return pTypeDescriptor;
201 std::list<const CTypeDescriptor *>::const_iterator elem =
207 pTypeDescriptor = *elem;
208 if(0 == strcmp(pTypeDescriptor->
m_pName, pName))
210 return pTypeDescriptor;
EResultCode enroll(const CTypeDescriptor *pTypeDescriptor)
Add a type descriptor to the registry.
const CTypeDescriptor * m_apStdMessageTypeDescriptors[1024u]
Standard messages subscripted by type number.
const CTypeDescriptor * m_apStdParameterTypeDescriptors[1024u]
Standard parameters subscripted by type number.
Based type descriptions for the LTKCPP library.
llrp_u32_t m_TypeNum
Type number or, for custom, subtype number.
EResultCode
Error result codes for LTK operations.
const CTypeDescriptor * lookupMessage(unsigned int MessageTypeNum) const
Lookup a standard message type descriptor. NULL=>not found.
std::list< const CTypeDescriptor * > m_listCustomParameterTypeDescriptors
List of custom parameters types.
const CTypeDescriptor * lookupParameter(unsigned int ParameterTypeNum) const
Lookup a standard parameter type descriptor. NULL=>not found.
const CVendorDescriptor * m_pVendorDescriptor
NULL=>standard LLRP, !NULL=>Vendor (PEN) of custom message or parameter.
llrp_u32_t m_VendorID
Vendor PEN of a custom message or parameter.
const CTypeDescriptor * lookupCustomParameter(unsigned int VendorID, unsigned int ParameterSubTypeNum) const
Lookup a custom parameter type descriptor. NULL=>not found.
char * m_pName
String name of parameter/message type (e.g. "ROSpec")
std::list< const CTypeDescriptor * > m_listCustomMessageTypeDescriptors
List of custom message types.
const CTypeDescriptor * lookupCustomMessage(unsigned int VendorID, unsigned int MessageSubTypeNum) const
Lookup a custom message type descriptor. NULL=>not found.
llrp_bool_t m_bIsMessage
TRUE for a message type, FALSE for a parameter type.
Describes a message or parameter type.