1 // Created on: 2016-06-23
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _IMeshData_StatusOwner_HeaderFile
17 #define _IMeshData_StatusOwner_HeaderFile
19 #include <IMeshData_Status.hxx>
21 //! Extension interface class providing status functionality.
22 class IMeshData_StatusOwner
27 virtual ~IMeshData_StatusOwner()
31 //! Returns true in case if status is strictly equal to the given value.
32 Standard_Boolean IsEqual(const IMeshData_Status theValue) const
34 return (myStatus == theValue);
37 //! Returns true in case if status is set.
38 Standard_Boolean IsSet(const IMeshData_Status theValue) const
40 return (myStatus & theValue) != 0;
43 //! Adds status to status flags of a face.
44 void SetStatus(const IMeshData_Status theValue)
49 //! Adds status to status flags of a face.
50 void UnsetStatus(const IMeshData_Status theValue)
52 myStatus &= ~theValue;
55 //! Returns complete status mask.
56 Standard_Integer GetStatusMask() const
63 //! Constructor. Initializes default status.
64 IMeshData_StatusOwner()
65 : myStatus(IMeshData_NoError)
71 Standard_Integer myStatus;