VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvUtil/vrvUtil.h>
15 #include <string>
16 #include <stdlib.h>
17 
18 namespace makVrv
19 {
22  class DtFaccCode
23  {
24  public:
25 
26  static const char InvalidCategory = ' ';
27  static const short InvalidType = -1;
28 
32  inline DtFaccCode(char cat = InvalidCategory, char subcat = InvalidCategory,
33  short type = InvalidType);
34 
36  inline static DtFaccCode fromString(const std::string& str);
37 
39  inline std::string toString() const;
40 
42  inline bool operator==(const DtFaccCode& other) const;
43 
45  inline bool operator!=(const DtFaccCode& other) const;
46 
48  inline bool sameCategory(const DtFaccCode& other) const;
49 
51  inline bool sameSubcategory(const DtFaccCode& other) const;
52 
54  inline bool isAbstract() const;
55 
57  inline bool operator<(const DtFaccCode& other) const;
58 
60  char myCategory;
62  short myType;
63  };
64 
65 }
66 
67 #define DtFaccCode_INL_
68 #include <vrvUtil/DtFaccCode.inl>
69 #undef DtFaccCode_INL_
70 
static const char InvalidCategory
Definition: DtFaccCode.h:26
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:27
bool isAbstract() const
Is this an abstract code, with invalid categories or types.
A data type which represents a FACC code.
Definition: DtFaccCode.h:22
DtFaccCode(char cat=InvalidCategory, char subcat=InvalidCategory, short type=InvalidType)
Default constructor.
Contains DLL export macros.
char mySubcategory
Definition: DtFaccCode.h:61
bool operator<(const DtFaccCode &other) const
Test for less, used for sorted containers.
char myCategory
Variables are public to simplify interface.
Definition: DtFaccCode.h:60
static DtFaccCode fromString(const std::string &str)
Utility function for converting from a string.
short myType
Definition: DtFaccCode.h:62
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)