MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GenericDeviceClass

Method GenericDeviceClass

cpp/src/Node.cpp:3701–3726  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3699// Constructor
3700//-----------------------------------------------------------------------------
3701Node::GenericDeviceClass::GenericDeviceClass
3702(
3703 TiXmlElement const* _el
3704):
3705DeviceClass( _el )
3706{
3707 // Add any specific device classes
3708 TiXmlElement const* child = _el->FirstChildElement();
3709 while( child )
3710 {
3711 char const* str = child->Value();
3712 if( str && !strcmp( str, "Specific" ) )
3713 {
3714 char const* keyStr = child->Attribute( "key" );
3715 if( keyStr )
3716 {
3717 char* pStop;
3718 uint8 key = (uint8)strtol( keyStr, &pStop, 16 );
3719
3720 m_specificDeviceClasses[key] = new DeviceClass( child );
3721 }
3722 }
3723
3724 child = child->NextSiblingElement();
3725 }
3726}
3727
3728//-----------------------------------------------------------------------------
3729// <Node::GenericDeviceClass::~GenericDeviceClass>

Callers

nothing calls this directly

Calls 4

AttributeMethod · 0.80
FirstChildElementMethod · 0.45
ValueMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected