CHAI SDK
Version 1.3
|
Device ID definition class. More...
Public Member Functions | |
DeviceID () | |
Constructor. More... | |
DeviceID (CPNS::uint16 const wBrandID, CPNS::uint16 const wModelID, CPNS::uint32 const dwDuplicateNumber, CPNS::uint16 const wModuleID) | |
Constructor. More... | |
DeviceID (DeviceID const &data) | |
Copy constructor. More... | |
CPNS::boolean | operator== (DeviceID const &a) const |
Equality check operator. More... | |
CPNS::boolean | operator!= (DeviceID const &a) const |
Difference check operator. More... | |
CPNS::boolean | operator< (DeviceID const &a) const |
Less than check operator. More... | |
CPNS::boolean | operator> (DeviceID const &a) const |
Greater than check operator. More... | |
DeviceID const & | operator= (DeviceID const &a) |
Assignment operator. More... | |
CPNS::boolean | IsEmpty () const |
Empty check. More... | |
CPNS::UTF8String | ToString () const |
String representation. More... | |
void | Clear () |
Clear the DeviceID content. More... | |
CPNS::uint32 | GetRootIdentity () const |
Root Identity getter. More... | |
CPNS::DeviceID | GetRootInstance () const |
Root Instance getter. More... | |
CPNS::boolean | RootIdentityCompare (CPNS::uint16 const wBrandID, CPNS::uint16 const wModelID) const |
Root identity check. More... | |
void | SetRootPart (DeviceID const devid) |
Update only the root part (Brand, Model and Duplicate) from the specified DeviceID. More... | |
CPNS::boolean | IsRoot () const |
Root check. More... | |
DeviceID const | WithDuplicate (CPNS::uint32 const dwDuplicateNumber) const |
Returns the current DeviceID with the specified Duplicate Number value. More... | |
DeviceID const | WithModuleID (CPNS::uint16 const wModuleID) const |
Returns the current DeviceID with the specified ModuleID value. More... | |
Static Public Member Functions | |
static CPNS::int8 | Compare (DeviceID const &dev1, DeviceID const &dev2) |
Compare method. More... | |
static CPNS::int8 | CompareRoot (DeviceID const &dev1, DeviceID const &dev2) |
Root compare method. More... | |
static CPNS::int8 | CompareIdentity (DeviceID const &dev1, DeviceID const &dev2) |
Identity compare method. More... | |
static CPNS::boolean | IsRootMatching (DeviceID const &dev1, DeviceID const &dev2) |
Root matching method. More... | |
static CPNS::boolean | IsRootMatching (DeviceID const &dev1, CPNS::uint16 const wBrandID, CPNS::uint16 const wModelID, CPNS::uint32 const dwDuplicateNumber) |
Root matching method. More... | |
static CPNS::boolean | IsIdentityMatching (DeviceID const &dev1, DeviceID const &dev2) |
Identity matching method. More... | |
static CPNS::boolean | IsIdentityMatching (DeviceID const &dev1, CPNS::uint16 const wBrandID, CPNS::uint16 const wModelID, CPNS::uint16 const wModuleID) |
Identity matching method. More... | |
Public Attributes | |
CPNS::uint16 | m_wBrandID |
Device's Manufacturer ID. More... | |
CPNS::uint16 | m_wModelID |
Device's Model ID. More... | |
CPNS::uint32 | m_dwDuplicateNum |
Device's Duplicate Number. More... | |
CPNS::uint16 | m_wModuleID |
Device's Module ID. More... | |
Static Public Attributes | |
static DeviceID | NullDeviceID |
Empty Device ID value. More... | |
Device ID definition class.
CPNS::DeviceID::DeviceID | ( | ) |
Constructor.
CPNS::DeviceID::DeviceID | ( | CPNS::uint16 const | wBrandID, |
CPNS::uint16 const | wModelID, | ||
CPNS::uint32 const | dwDuplicateNumber, | ||
CPNS::uint16 const | wModuleID | ||
) |
Constructor.
[in] | wBrandID | Device's Manufacturer ID |
[in] | wModelID | Device's Model ID |
[in] | dwDuplicateNumber | Device's Duplicate Number |
[in] | wModuleID | Device's Module ID |
CPNS::DeviceID::DeviceID | ( | DeviceID const & | data | ) |
Copy constructor.
void CPNS::DeviceID::Clear | ( | ) |
Clear the DeviceID content.
Compare method.
|
static |
Identity compare method.
|
static |
Root compare method.
CPNS::uint32 CPNS::DeviceID::GetRootIdentity | ( | ) | const |
Root Identity getter.
CPNS::DeviceID CPNS::DeviceID::GetRootInstance | ( | ) | const |
Root Instance getter.
CPNS::boolean CPNS::DeviceID::IsEmpty | ( | ) | const |
Empty check.
|
static |
Identity matching method.
Compare the identity part of the DeviceIDs (Brand, Model, Module)
|
static |
Identity matching method.
Compare the identity part of the DeviceIDs (Brand, Model, Module)
CPNS::boolean CPNS::DeviceID::IsRoot | ( | ) | const |
Root check.
Check if the device is root (ModuleID == 0)
|
static |
Root matching method.
Compare the root part of the DeviceIDs (Brand, Model and Duplicate)
|
static |
Root matching method.
Compare the root part of the DeviceIDs (Brand, Model and Duplicate)
CPNS::boolean CPNS::DeviceID::operator!= | ( | DeviceID const & | a | ) | const |
Difference check operator.
CPNS::boolean CPNS::DeviceID::operator< | ( | DeviceID const & | a | ) | const |
Less than check operator.
CPNS::boolean CPNS::DeviceID::operator== | ( | DeviceID const & | a | ) | const |
Equality check operator.
CPNS::boolean CPNS::DeviceID::operator> | ( | DeviceID const & | a | ) | const |
Greater than check operator.
CPNS::boolean CPNS::DeviceID::RootIdentityCompare | ( | CPNS::uint16 const | wBrandID, |
CPNS::uint16 const | wModelID | ||
) | const |
Root identity check.
Checks if the DeviceID is related to a root device with the specified identity.
[in] | wBrandID | Manufacturer ID |
[in] | wModelID | Model ID |
void CPNS::DeviceID::SetRootPart | ( | DeviceID const | devid | ) |
CPNS::UTF8String CPNS::DeviceID::ToString | ( | ) | const |
String representation.
|
inline |
Returns the current DeviceID with the specified Duplicate Number value.
|
inline |
Returns the current DeviceID with the specified ModuleID value.
CPNS::uint32 CPNS::DeviceID::m_dwDuplicateNum |
Device's Duplicate Number.
CPNS::uint16 CPNS::DeviceID::m_wBrandID |
Device's Manufacturer ID.
CPNS::uint16 CPNS::DeviceID::m_wModelID |
Device's Model ID.
CPNS::uint16 CPNS::DeviceID::m_wModuleID |
Device's Module ID.
|
static |
Empty Device ID value.