0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / BOPAlgo / BOPAlgo_Algo.cxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2012 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 //                         EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
7 // The content of this file is subject to the Open CASCADE Technology Public
8 // License Version 6.5 (the "License"). You may not use the content of this file
9 // except in compliance with the License. Please obtain a copy of the License
10 // at http://www.opencascade.org and read it completely before using this file.
11 //
12 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
13 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 //
15 // The Original Code and all software distributed under the License is
16 // distributed on an "AS IS" basis, without warranty of any kind, and the
17 // Initial Developer hereby disclaims all such warranties, including without
18 // limitation, any warranties of merchantability, fitness for a particular
19 // purpose or non-infringement. Please see the License for the specific terms
20 // and conditions governing the rights and limitations under the License.
21
22
23 #include <BOPAlgo_Algo.ixx>
24
25 #include <NCollection_BaseAllocator.hxx>
26
27 //=======================================================================
28 // function: 
29 // purpose: 
30 //=======================================================================
31   BOPAlgo_Algo::BOPAlgo_Algo()
32 :
33   myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
34   myErrorStatus(1),
35   myWarningStatus(0)
36 {}
37 //=======================================================================
38 // function: 
39 // purpose: 
40 //=======================================================================
41   BOPAlgo_Algo::BOPAlgo_Algo(const Handle(NCollection_BaseAllocator)& theAllocator)
42 :
43   myAllocator(theAllocator),
44   myErrorStatus(1),
45   myWarningStatus(0)
46 {}
47
48 //=======================================================================
49 // function: ~
50 // purpose: 
51 //=======================================================================
52   BOPAlgo_Algo::~BOPAlgo_Algo()
53 {
54 }
55 //=======================================================================
56 //function : Allocator
57 //purpose  : 
58 //=======================================================================
59   const Handle(NCollection_BaseAllocator)& BOPAlgo_Algo::Allocator()const
60 {
61   return myAllocator;
62 }
63 //=======================================================================
64 // function: CheckData
65 // purpose: 
66 //=======================================================================
67   void BOPAlgo_Algo::CheckData()
68 {
69   myErrorStatus=0;
70 }
71 //=======================================================================
72 // function: CheckResult
73 // purpose: 
74 //=======================================================================
75   void BOPAlgo_Algo::CheckResult()
76 {
77   myErrorStatus=0;
78 }
79 //=======================================================================
80 // function: ErrorStatus
81 // purpose: 
82 //=======================================================================
83   Standard_Integer BOPAlgo_Algo::ErrorStatus()const
84 {
85   return myErrorStatus;
86 }
87 //=======================================================================
88 // function: WarningStatus
89 // purpose: 
90 //=======================================================================
91   Standard_Integer BOPAlgo_Algo::WarningStatus()const
92 {
93   return myWarningStatus;
94 }
95 //  myErrorStatus
96 //
97 // 1 - object is just initialized