Salome HOME
eebc67d5f755e54685458c4b6f4ae26980eec568
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_HAlgo.cxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // File:        GEOMAlgo_Hlgo.cxx
24 // Created:     Sat Dec 04 12:39:47 2004
25 // Author:      Peter KURNEV
26 //              <peter@PREFEX>
27 //
28 #include <GEOMAlgo_HAlgo.hxx>
29
30 IMPLEMENT_STANDARD_HANDLE(GEOMAlgo_HAlgo, MMgt_TShared);
31 IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_HAlgo, MMgt_TShared);
32
33 //=======================================================================
34 // function:
35 // purpose:
36 //=======================================================================
37   GEOMAlgo_HAlgo::GEOMAlgo_HAlgo()
38 :
39   myErrorStatus(1),
40   myWarningStatus(0)
41 {}
42 //=======================================================================
43 // function: ~
44 // purpose:
45 //=======================================================================
46   GEOMAlgo_HAlgo::~GEOMAlgo_HAlgo()
47 {
48 }
49 //=======================================================================
50 // function: CheckData
51 // purpose:
52 //=======================================================================
53   void GEOMAlgo_HAlgo::CheckData()
54 {
55   myErrorStatus=0;
56 }
57 //=======================================================================
58 // function: CheckResult
59 // purpose:
60 //=======================================================================
61   void GEOMAlgo_HAlgo::CheckResult()
62 {
63   myErrorStatus=0;
64 }
65 //=======================================================================
66 // function: ErrorStatus
67 // purpose:
68 //=======================================================================
69   Standard_Integer GEOMAlgo_HAlgo::ErrorStatus()const
70 {
71   return myErrorStatus;
72 }
73 //=======================================================================
74 // function: WarningStatus
75 // purpose:
76 //=======================================================================
77   Standard_Integer GEOMAlgo_HAlgo::WarningStatus()const
78 {
79   return myWarningStatus;
80 }
81 //  myErrorStatus
82 //
83 // 1 - object is just initialized