Warning, file /include/opencascade/IMeshData_StatusOwner.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _IMeshData_StatusOwner_HeaderFile
0017 #define _IMeshData_StatusOwner_HeaderFile
0018
0019 #include <IMeshData_Status.hxx>
0020
0021
0022 class IMeshData_StatusOwner
0023 {
0024 public:
0025
0026
0027 virtual ~IMeshData_StatusOwner()
0028 {
0029 }
0030
0031
0032 Standard_Boolean IsEqual(const IMeshData_Status theValue) const
0033 {
0034 return (myStatus == theValue);
0035 }
0036
0037
0038 Standard_Boolean IsSet(const IMeshData_Status theValue) const
0039 {
0040 return (myStatus & theValue) != 0;
0041 }
0042
0043
0044 void SetStatus(const IMeshData_Status theValue)
0045 {
0046 myStatus |= theValue;
0047 }
0048
0049
0050 void UnsetStatus(const IMeshData_Status theValue)
0051 {
0052 myStatus &= ~theValue;
0053 }
0054
0055
0056 Standard_Integer GetStatusMask() const
0057 {
0058 return myStatus;
0059 }
0060
0061 protected:
0062
0063
0064 IMeshData_StatusOwner()
0065 : myStatus(IMeshData_NoError)
0066 {
0067 }
0068
0069 private:
0070
0071 Standard_Integer myStatus;
0072 };
0073
0074 #endif