162 uint64
GetId()
const{
return (uint64) ( ( (uint64)m_id1 << 32 ) | m_id );}
165 bool operator == (
ValueID const& _other )
const{
return( ( m_homeId == _other.m_homeId ) && ( m_id == _other.m_id ) && ( m_id1 == _other.m_id1 ) ); }
166 bool operator != (
ValueID const& _other )
const{
return( ( m_homeId != _other.m_homeId ) || ( m_id != _other.m_id ) || ( m_id1 != _other.m_id1 ) ); }
167 bool operator < (
ValueID const& _other )
const
169 if( m_homeId == _other.m_homeId )
171 if( m_id == _other.m_id )
173 return( m_id1 < _other.m_id1 );
177 return( m_id < _other.m_id );
182 return( m_homeId < _other.m_homeId );
185 bool operator > (
ValueID const& _other )
const
187 if( m_homeId == _other.m_homeId )
189 if( m_id == _other.m_id )
191 return( m_id1 > _other.m_id1 );
195 return( m_id > _other.m_id );
200 return( m_homeId > _other.m_homeId );
223 uint8 const _commandClassId,
224 uint8 const _instance,
225 uint8 const _valueIndex,
230 m_id = (((
uint32)_nodeId)<<24)
232 | (((
uint32)_commandClassId)<<14)
233 | (((
uint32)_valueIndex)<<4)
235 m_id1 = (((
uint32)_instance)<<24);
250 m_id = ((
uint32)(
id & 0xFFFFFFFF));
251 m_id1 = (
uint32)(
id >> 32);
255 ValueID(
uint32 const _homeId,
uint8 const _nodeId ): m_id1( 0 ),m_homeId( _homeId ){ m_id = ((
uint32)_nodeId)<<24; }
259 m_id = (((
uint32)_nodeId)<<24);
260 m_id1 = (((
uint32)_instance)<<24);
264 ValueID():m_id(0),m_id1(0),m_homeId(0){}
272 uint32 GetValueStoreKey()
const
274 return ( ( m_id & 0x003ffff0 ) | ( m_id1 & 0xff000000 ) );
278 static uint32 GetValueStoreKey(
uint8 const _commandClassId,
uint8 const _instance,
uint8 const _valueIndex )
282 | (((
uint32)_commandClassId)<<14)
283 | (((
uint32)_valueIndex)<<4);
ValueID(uint32 const _homeId, uint8 const _nodeId, ValueGenre const _genre, uint8 const _commandClassId, uint8 const _instance, uint8 const _valueIndex, ValueType const _type)
Definition ValueID.h:219