----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------
| 3699 | // Constructor |
| 3700 | //----------------------------------------------------------------------------- |
| 3701 | Node::GenericDeviceClass::GenericDeviceClass |
| 3702 | ( |
| 3703 | TiXmlElement const* _el |
| 3704 | ): |
| 3705 | DeviceClass( _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> |
nothing calls this directly
no test coverage detected