Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-05 09:23:50

0001 // Created on: 2000-01-28
0002 // Created by: data exchange team
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeExtend_BasicMsgRegistrator_HeaderFile
0017 #define _ShapeExtend_BasicMsgRegistrator_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Transient.hxx>
0023 #include <Message_Gravity.hxx>
0024 class Message_Msg;
0025 class TopoDS_Shape;
0026 
0027 //! Abstract class that can be used for attaching messages
0028 //! to the objects (e.g. shapes).
0029 //! It is used by ShapeHealing algorithms to attach a message
0030 //! describing encountered case (e.g. removing small edge from
0031 //! a wire).
0032 //!
0033 //! The methods of this class are empty and redefined, for instance,
0034 //! in the classes for Data Exchange processors for attaching
0035 //! messages to interface file entities or CAS.CADE shapes.
0036 class ShapeExtend_BasicMsgRegistrator : public Standard_Transient
0037 {
0038 
0039 public:
0040   //! Empty constructor.
0041   Standard_EXPORT ShapeExtend_BasicMsgRegistrator();
0042 
0043   //! Sends a message to be attached to the object.
0044   //! Object can be of any type interpreted by redefined MsgRegistrator.
0045   Standard_EXPORT virtual void Send(const occ::handle<Standard_Transient>& object,
0046                                     const Message_Msg&                     message,
0047                                     const Message_Gravity                  gravity);
0048 
0049   //! Sends a message to be attached to the shape.
0050   Standard_EXPORT virtual void Send(const TopoDS_Shape&   shape,
0051                                     const Message_Msg&    message,
0052                                     const Message_Gravity gravity);
0053 
0054   //! Calls Send method with Null Transient.
0055   Standard_EXPORT virtual void Send(const Message_Msg& message, const Message_Gravity gravity);
0056 
0057   DEFINE_STANDARD_RTTIEXT(ShapeExtend_BasicMsgRegistrator, Standard_Transient)
0058 };
0059 
0060 #endif // _ShapeExtend_BasicMsgRegistrator_HeaderFile