![]() |
VR-Forces 5.0.2 Developer's Guide
|
A data type which represents a FACC code.
Public Member Functions | |
| DtFaccCode (char cat=InvalidCategory, char subcat=InvalidCategory, short type=InvalidType) | |
| std::string | toString () const |
| bool | operator== (const DtFaccCode &other) const |
| bool | operator!= (const DtFaccCode &other) const |
| bool | sameCategory (const DtFaccCode &other) const |
| bool | sameSubcategory (const DtFaccCode &other) const |
| bool | isAbstract () const |
| bool | operator< (const DtFaccCode &other) const |
Static Public Member Functions | |
| static DtFaccCode | fromString (const std::string &str) |
Public Attributes | |
| char | myCategory |
| char | mySubcategory |
| short | myType |
Static Public Attributes | |
| static const char | InvalidCategory = ' ' |
| static const short | InvalidType = -1 |
|
inline |
Default constructor. The use of invalid types allows for FACC codes which do not have a subcategory and a type. Thus they are only valid for testing whether a FaccCode has a given category and subcategory.
|
inlinestatic |
Utility function for converting from a string.
|
inline |
Utility function for converting from a string.
|
inline |
Are these two codes identical.
|
inline |
Are these two codes different.
|
inline |
Are these two codes in the same category.
|
inline |
Are these two codes in the same category and subcategory.
|
inline |
Is this an abstract code, with invalid categories or types.
|
inline |
Test for less, used for sorted containers.
|
static |
|
static |
| char makVrv::DtFaccCode::myCategory |
Variables are public to simplify interface.
| char makVrv::DtFaccCode::mySubcategory |
| short makVrv::DtFaccCode::myType |