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

Method GetName

cpp/src/command_classes/CommandClasses.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 return( (Get().m_supportedCommandClasses[_commandClassId>>5] & (1u<<(_commandClassId&0x1f))) != 0 );
130}
131string CommandClasses::GetName
132(
133 uint8 const _commandClassId
134)
135{
136 for (std::map<string,uint8>::iterator it = Get().m_namesToIDs.begin(); it != Get().m_namesToIDs.end(); it++) {
137 if (it->second == _commandClassId)
138 return it->first;
139 }
140 return string("Unknown");
141}
142//-----------------------------------------------------------------------------
143// <CommandClasses::Register>
144// Static method to register a command class creator method

Callers 1

CreateVarsMethod · 0.45

Calls 3

GetFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected