VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
makVrv::DtFaccCode Class Reference

A data type which represents a FACC code. More...

Public Member Functions

 DtFaccCode (char cat=InvalidCategory, char subcat=InvalidCategory, short type=InvalidType)
 Default constructor. More...
 
std::string toString () const
 Utility function for converting from a string. More...
 
bool operator== (const DtFaccCode &other) const
 Are these two codes identical. More...
 
bool operator!= (const DtFaccCode &other) const
 Are these two codes different. More...
 
bool sameCategory (const DtFaccCode &other) const
 Are these two codes in the same category. More...
 
bool sameSubcategory (const DtFaccCode &other) const
 Are these two codes in the same category and subcategory. More...
 
bool isAbstract () const
 Is this an abstract code, with invalid categories or types. More...
 
bool operator< (const DtFaccCode &other) const
 Test for less, used for sorted containers. More...
 

Static Public Member Functions

static DtFaccCode fromString (const std::string &str)
 Utility function for converting from a string. More...
 

Public Attributes

char myCategory
 Variables are public to simplify interface. More...
 
char mySubcategory
 
short myType
 

Static Public Attributes

static const char InvalidCategory = ' '
 
static const short InvalidType = -1
 

Detailed Description

A data type which represents a FACC code.

Constructor & Destructor Documentation

makVrv::DtFaccCode::DtFaccCode ( char  cat = InvalidCategory,
char  subcat = InvalidCategory,
short  type = InvalidType 
)
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.

Member Function Documentation

static DtFaccCode makVrv::DtFaccCode::fromString ( const std::string &  str)
inlinestatic

Utility function for converting from a string.

std::string makVrv::DtFaccCode::toString ( ) const
inline

Utility function for converting from a string.

bool makVrv::DtFaccCode::operator== ( const DtFaccCode other) const
inline

Are these two codes identical.

bool makVrv::DtFaccCode::operator!= ( const DtFaccCode other) const
inline

Are these two codes different.

bool makVrv::DtFaccCode::sameCategory ( const DtFaccCode other) const
inline

Are these two codes in the same category.

bool makVrv::DtFaccCode::sameSubcategory ( const DtFaccCode other) const
inline

Are these two codes in the same category and subcategory.

bool makVrv::DtFaccCode::isAbstract ( ) const
inline

Is this an abstract code, with invalid categories or types.

bool makVrv::DtFaccCode::operator< ( const DtFaccCode other) const
inline

Test for less, used for sorted containers.

Member Data Documentation

const char makVrv::DtFaccCode::InvalidCategory = ' '
static
const short makVrv::DtFaccCode::InvalidType = -1
static
char makVrv::DtFaccCode::myCategory

Variables are public to simplify interface.

char makVrv::DtFaccCode::mySubcategory
short makVrv::DtFaccCode::myType

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)