#include <distypes.h>
Public Member Functions | |
| EntityType (unsigned char kind=0, unsigned char domain=0, unsigned short country=0, unsigned char category=0, unsigned char subcategory=0, unsigned char specific=0, unsigned char extra=0) | |
| Constructor. | |
| bool | operator== (const EntityType &entityType) const |
| Compares this object to another of its type. | |
| bool | operator!= (const EntityType &entityType) const |
| EntityType & | operator= (const EntityType &entityType) |
| Assigns this object to the value of another. | |
| bool | operator< (const EntityType &entityType) const |
| Compares this object to another of its type. | |
| int | RankMatch (const EntityType &entityType) const |
| Ranks the match between this entity type and another. | |
| size_t | EncodedLength () const |
| Returns the encoded length of this object. | |
| void | Encode (char *buf) const |
| Encodes this object into the specified buffer. | |
| void | Decode (const char *buf) |
| Decodes the values contained in the specified buffer. | |
| void | SetKind (unsigned char kind) |
| Sets the value of the kind field. | |
| unsigned char | GetKind () const |
| |
| void | SetDomain (unsigned char domain) |
| Sets the value of the domain field. | |
| unsigned char | GetDomain () const |
| ` * | |
| void | SetCountry (unsigned short country) |
| Sets the value of the country field. | |
| unsigned short | GetCountry () const |
| |
| void | SetCategory (unsigned char category) |
| Sets the value of the category field. | |
| unsigned char | GetCategory () const |
| |
| void | SetSubcategory (unsigned char subcategory) |
| Sets the value of the subcategory field. | |
| unsigned char | GetSubcategory () const |
| |
| void | SetSpecific (unsigned char specific) |
| Sets the value of the specific field. | |
| unsigned char | GetSpecific () const |
| |
| void | SetExtra (unsigned char extra) |
| Sets the value of the extra field. | |
| unsigned char | GetExtra () const |
| |
| bool | IsEqual (const EntityType &other) const |
| Returns true this equals another EntityType object. | |
| dtHLAGM::EntityType::EntityType | ( | unsigned char | kind = 0, |
|
| unsigned char | domain = 0, |
|||
| unsigned short | country = 0, |
|||
| unsigned char | category = 0, |
|||
| unsigned char | subcategory = 0, |
|||
| unsigned char | specific = 0, |
|||
| unsigned char | extra = 0 | |||
| ) |
Constructor.
| kind | the value of the kind field | |
| domain | the value of the kind field | |
| country | the value of the kind field | |
| category | the value of the kind field | |
| subcategory | the value of the kind field | |
| specific | the value of the kind field | |
| extra | the value of the kind field |
| bool dtHLAGM::EntityType::operator== | ( | const EntityType & | entityType | ) | const |
Compares this object to another of its type.
| entityType | the object to compare this to |
| bool dtHLAGM::EntityType::operator!= | ( | const EntityType & | entityType | ) | const [inline] |
| EntityType& dtHLAGM::EntityType::operator= | ( | const EntityType & | entityType | ) | [inline] |
Assigns this object to the value of another.
| entityType | the object to compare this to |
| bool dtHLAGM::EntityType::operator< | ( | const EntityType & | entityType | ) | const |
Compares this object to another of its type.
Imposes a total ordering, allowing this object to be used as a map key.
| entityType | the object to compare this to |
| int dtHLAGM::EntityType::RankMatch | ( | const EntityType & | entityType | ) | const |
Ranks the match between this entity type and another.
| entityType | the entity type to compare this to |
| size_t dtHLAGM::EntityType::EncodedLength | ( | ) | const |
Returns the encoded length of this object.
| void dtHLAGM::EntityType::Encode | ( | char * | buf | ) | const |
Encodes this object into the specified buffer.
| buf | the buffer to contain the encoded object |
| void dtHLAGM::EntityType::Decode | ( | const char * | buf | ) |
Decodes the values contained in the specified buffer.
| buf | the buffer containing the encoded object |
| void dtHLAGM::EntityType::SetKind | ( | unsigned char | kind | ) | [inline] |
Sets the value of the kind field.
| kind | the value of the kind field |
| unsigned char dtHLAGM::EntityType::GetKind | ( | ) | const [inline] |
| void dtHLAGM::EntityType::SetDomain | ( | unsigned char | domain | ) | [inline] |
Sets the value of the domain field.
| domain | the value of the domain field |
| unsigned char dtHLAGM::EntityType::GetDomain | ( | ) | const [inline] |
` *
| void dtHLAGM::EntityType::SetCountry | ( | unsigned short | country | ) | [inline] |
Sets the value of the country field.
| country | the value of the country field |
| unsigned short dtHLAGM::EntityType::GetCountry | ( | ) | const [inline] |
| void dtHLAGM::EntityType::SetCategory | ( | unsigned char | category | ) | [inline] |
Sets the value of the category field.
| category | the value of the category field |
| unsigned char dtHLAGM::EntityType::GetCategory | ( | ) | const [inline] |
| void dtHLAGM::EntityType::SetSubcategory | ( | unsigned char | subcategory | ) | [inline] |
Sets the value of the subcategory field.
| subcategory | the value of the subcategory field |
| unsigned char dtHLAGM::EntityType::GetSubcategory | ( | ) | const [inline] |
| void dtHLAGM::EntityType::SetSpecific | ( | unsigned char | specific | ) | [inline] |
Sets the value of the specific field.
| specific | the value of the specific field |
| unsigned char dtHLAGM::EntityType::GetSpecific | ( | ) | const [inline] |
| void dtHLAGM::EntityType::SetExtra | ( | unsigned char | extra | ) | [inline] |
Sets the value of the extra field.
| extra | the value of the extra field |
| unsigned char dtHLAGM::EntityType::GetExtra | ( | ) | const [inline] |
| bool dtHLAGM::EntityType::IsEqual | ( | const EntityType & | other | ) | const |