VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFaccCode.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvUtil/vrvUtil.h>
12 #include <string>
13 #include <stdlib.h>
14 
15 namespace makVrv
16 {
19  class DtFaccCode
20  {
21  public:
22 
23  static const char InvalidCategory = ' ';
24  static const short InvalidType = -1;
25 
29  inline DtFaccCode(char cat = InvalidCategory, char subcat = InvalidCategory,
30  short type = InvalidType);
31 
33  inline static DtFaccCode fromString(const std::string& str);
34 
36  inline std::string toString() const;
37 
39  inline bool operator==(const DtFaccCode& other) const;
40 
42  inline bool operator!=(const DtFaccCode& other) const;
43 
45  inline bool sameCategory(const DtFaccCode& other) const;
46 
48  inline bool sameSubcategory(const DtFaccCode& other) const;
49 
51  inline bool isAbstract() const;
52 
54  inline bool operator<(const DtFaccCode& other) const;
55 
57  char myCategory;
59  short myType;
60  };
61 
62 }
63 
64 #define DtFaccCode_INL_
65 #include <vrvUtil/DtFaccCode.inl>
66 #undef DtFaccCode_INL_
67 
static const char InvalidCategory
Definition: DtFaccCode.h:23
bool sameSubcategory(const DtFaccCode &other) const
Are these two codes in the same category and subcategory.
bool operator!=(const DtFaccCode &other) const
Are these two codes different.
static const short InvalidType
Definition: DtFaccCode.h:24
bool isAbstract() const
Is this an abstract code, with invalid categories or types.
A data type which represents a FACC code.
Definition: DtFaccCode.h:19
DtFaccCode(char cat=InvalidCategory, char subcat=InvalidCategory, short type=InvalidType)
Default constructor. The use of invalid types allows for FACC codes which do not have a subcategory a...
Contains DLL export macros.
char mySubcategory
Definition: DtFaccCode.h:58
bool operator<(const DtFaccCode &other) const
Test for less, used for sorted containers.
char myCategory
Variables are public to simplify interface.
Definition: DtFaccCode.h:57
static DtFaccCode fromString(const std::string &str)
Utility function for converting from a string.
short myType
Definition: DtFaccCode.h:59
std::string toString() const
Utility function for converting from a string.
bool sameCategory(const DtFaccCode &other) const
Are these two codes in the same category.
bool operator==(const DtFaccCode &other) const
Are these two codes identical.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)