![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: $ $Revision: $ $State: $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvUtil/vrvUtil.h> 00015 #include <string> 00016 #include <stdlib.h> 00017 00018 namespace makVrv 00019 { 00022 class DtFaccCode 00023 { 00024 public: 00025 00026 static const char InvalidCategory = ' '; 00027 static const short InvalidType = -1; 00028 00032 inline DtFaccCode(char cat = InvalidCategory, char subcat = InvalidCategory, 00033 short type = InvalidType); 00034 00036 inline static DtFaccCode fromString(const std::string& str); 00037 00039 inline std::string toString() const; 00040 00042 inline bool operator==(const DtFaccCode& other) const; 00043 00045 inline bool operator!=(const DtFaccCode& other) const; 00046 00048 inline bool sameCategory(const DtFaccCode& other) const; 00049 00051 inline bool sameSubcategory(const DtFaccCode& other) const; 00052 00054 inline bool isAbstract() const; 00055 00057 inline bool operator<(const DtFaccCode& other) const; 00058 00060 char myCategory; 00061 char mySubcategory; 00062 short myType; 00063 }; 00064 00065 } 00066 00067 #define DtFaccCode_INL_ 00068 #include <vrvUtil/DtFaccCode.inl> 00069 #undef DtFaccCode_INL_ 00070