0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- manual
[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
52 //! Returns a new Actor for Read attached to the pair (norm,appli)
53 //! It is a PmsToTopoDSAct_Actor
79104795 54 Standard_EXPORT Handle(Transfer_ActorOfTransientProcess) ActorRead (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
42cf5bc1 55
56 Standard_EXPORT virtual void Customise (Handle(XSControl_WorkSession)& WS) Standard_OVERRIDE;
57
58 //! Takes one Shape and transfers it to the InterfaceModel
59 //! (already created by NewModel for instance)
60 //! <modeshape> is to be interpreted by each kind of XstepAdaptor
61 //! Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape
62 //! -2 bad model (requires a StepModel)
63 //! modeshape : 1 Facetted BRep, 2 Shell, 3 Manifold Solid
64 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;
65
66 //! Standard Initialisation. It creates a Controller for STEP
67 //! and records it to various names, available to select it later
68 //! Returns True when done, False if could not be done
69 Standard_EXPORT static Standard_Boolean Init();
70
71
72
73
74 DEFINE_STANDARD_RTTI(STEPControl_Controller,XSControl_Controller)
75
76protected:
77
78
79
80
81private:
82
83
84
85
86};
87
88
89
90
91
92
93
94#endif // _STEPControl_Controller_HeaderFile