Warnings on vc14 were eliminated
[occt.git] / src / STEPControl / STEPControl_Controller.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-02-20
2// Created by: Christian CAILLET
3// Copyright (c) 1995-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 _STEPControl_Controller_HeaderFile
18#define _STEPControl_Controller_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <XSControl_Controller.hxx>
24#include <IFSelect_ReturnStatus.hxx>
25#include <Standard_Integer.hxx>
26#include <Standard_Boolean.hxx>
27class Interface_InterfaceModel;
28class Transfer_ActorOfTransientProcess;
29class XSControl_WorkSession;
30class TopoDS_Shape;
31class Transfer_FinderProcess;
32
33
34class STEPControl_Controller;
35DEFINE_STANDARD_HANDLE(STEPControl_Controller, XSControl_Controller)
36
37//! defines basic controller for STEP processor
38class STEPControl_Controller : public XSControl_Controller
39{
40
41public:
42
43
44 //! Initializes the use of STEP Norm (the first time) and
45 //! returns a Controller
46 Standard_EXPORT STEPControl_Controller();
47
48 //! Creates a new empty Model ready to receive data of the Norm.
49 //! It is taken from STEP Template Model
79104795 50 Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
42cf5bc1 51
42cf5bc1 52 Standard_EXPORT virtual void Customise (Handle(XSControl_WorkSession)& WS) Standard_OVERRIDE;
53
54 //! Takes one Shape and transfers it to the InterfaceModel
55 //! (already created by NewModel for instance)
56 //! <modeshape> is to be interpreted by each kind of XstepAdaptor
57 //! Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape
58 //! -2 bad model (requires a StepModel)
59 //! modeshape : 1 Facetted BRep, 2 Shell, 3 Manifold Solid
60 Standard_EXPORT virtual IFSelect_ReturnStatus TransferWriteShape (const TopoDS_Shape& shape, const Handle(Transfer_FinderProcess)& FP, const Handle(Interface_InterfaceModel)& model, const Standard_Integer modetrans = 0) const Standard_OVERRIDE;
61
62 //! Standard Initialisation. It creates a Controller for STEP
63 //! and records it to various names, available to select it later
64 //! Returns True when done, False if could not be done
65 Standard_EXPORT static Standard_Boolean Init();
66
67
68
69
92efcf78 70 DEFINE_STANDARD_RTTIEXT(STEPControl_Controller,XSControl_Controller)
42cf5bc1 71
72protected:
73
74
75
76
77private:
78
79
80
81
82};
83
84
85
86
87
88
89
90#endif // _STEPControl_Controller_HeaderFile