0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
[occt.git] / src / IGESSelect / IGESSelect_AutoCorrect.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-06-01
2// Created by: Christian CAILLET
3// Copyright (c) 1994-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESSelect_AutoCorrect_HeaderFile
18#define _IGESSelect_AutoCorrect_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IGESSelect_ModelModifier.hxx>
24class IFSelect_ContextModif;
25class IGESData_IGESModel;
26class Interface_CopyTool;
27class TCollection_AsciiString;
28
29
30class IGESSelect_AutoCorrect;
31DEFINE_STANDARD_HANDLE(IGESSelect_AutoCorrect, IGESSelect_ModelModifier)
32
33//! Does the absolutely effective corrections on IGES Entity.
34//! That is to say : regarding the norm in details, some values
35//! have mandatory values, or set of values with constraints.
36//! When such values/constraints are univoque, they can be forced.
37//! Also nullifies items of Directory Part, Associativities, and
38//! Properties, which are not (or not longer) in <target> Model.
39//!
40//! Works by calling a BasicEditor from IGESData
41//! Works with the specific IGES Services : DirChecker which
42//! allows to correct data in "Directory Part" of Entities (such
43//! as required values for status, or references to be null), and
44//! the specific IGES service OwnCorrect, which is specialised for
45//! each type of entity.
46//!
47//! Remark : this does not comprise the computation of use flag or
48//! subordinate status according references, which is made by
49//! the ModelModifier class ComputeStatus.
50//!
51//! The Input Selection, when present, designates the entities to
52//! be corrected. If it is not present, all the entities of the
53//! model are corrected.
54class IGESSelect_AutoCorrect : public IGESSelect_ModelModifier
55{
56
57public:
58
59
60 //! Creates an AutoCorrect.
61 Standard_EXPORT IGESSelect_AutoCorrect();
62
63 //! Specific action : corrects entities when it is absolutely
64 //! obvious, i.e. non equivoque (by DirChecker and specific
65 //! service OwnCorrect) : works with a protocol.
79104795 66 Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE;
42cf5bc1 67
68 //! Returns a text which is
69 //! "Auto-correction of IGES Entities"
79104795 70 Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
42cf5bc1 71
72
73
74
92efcf78 75 DEFINE_STANDARD_RTTIEXT(IGESSelect_AutoCorrect,IGESSelect_ModelModifier)
42cf5bc1 76
77protected:
78
79
80
81
82private:
83
84
85
86
87};
88
89
90
91
92
93
94
95#endif // _IGESSelect_AutoCorrect_HeaderFile