----------------------------------------------------------------------------- Get a pointer to a value by its instance and index -----------------------------------------------------------------------------
| 138 | // Get a pointer to a value by its instance and index |
| 139 | //----------------------------------------------------------------------------- |
| 140 | Value* CommandClass::GetValue |
| 141 | ( |
| 142 | uint8 const _instance, |
| 143 | uint16 const _index |
| 144 | ) |
| 145 | { |
| 146 | Value* value = NULL; |
| 147 | if( Node* node = GetNodeUnsafe() ) |
| 148 | { |
| 149 | value = node->GetValue( GetCommandClassId(), _instance, _index ); |
| 150 | } |
| 151 | return value; |
| 152 | } |
| 153 | |
| 154 | //----------------------------------------------------------------------------- |
| 155 | // <CommandClass::RemoveValue> |