// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _ShapeExtend_MsgRegistrator_HeaderFile
#define _ShapeExtend_MsgRegistrator_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_ShapeExtend_MsgRegistrator.hxx>

#include <ShapeExtend_DataMapOfTransientListOfMsg.hxx>
#include <ShapeExtend_DataMapOfShapeListOfMsg.hxx>
#include <ShapeExtend_BasicMsgRegistrator.hxx>
#include <Handle_Standard_Transient.hxx>
#include <Message_Gravity.hxx>
class Standard_Transient;
class Message_Msg;
class TopoDS_Shape;
class ShapeExtend_DataMapOfTransientListOfMsg;
class ShapeExtend_DataMapOfShapeListOfMsg;


//! Attaches messages to the objects (generic Transient or shape).
//! The objects of this class are transmitted to the Shape Healing
//! algorithms so that they could collect messages occurred during
//! processing.
//!
//! Messages are added to the Maps (stored as a field) that can be
//! used, for instance, by Data Exchange processors to attach those
//! messages to initial file entities.
class ShapeExtend_MsgRegistrator : public ShapeExtend_BasicMsgRegistrator
{

public:

  
  //! Creates an object.
  Standard_EXPORT ShapeExtend_MsgRegistrator();
  
  //! Sends a message to be attached to the object.
  //! If the object is in the map then the message is added to the
  //! list, otherwise the object is firstly added to the map.
  Standard_EXPORT virtual   void Send (const Handle(Standard_Transient)& object, const Message_Msg& message, const Message_Gravity gravity) ;
  
  //! Sends a message to be attached to the shape.
  //! If the shape is in the map then the message is added to the
  //! list, otherwise the shape is firstly added to the map.
  Standard_EXPORT virtual   void Send (const TopoDS_Shape& shape, const Message_Msg& message, const Message_Gravity gravity) ;
  
  //! Returns a Map of objects and message list
     const  ShapeExtend_DataMapOfTransientListOfMsg& MapTransient()  const;
  
  //! Returns a Map of shapes and message list
     const  ShapeExtend_DataMapOfShapeListOfMsg& MapShape()  const;




  DEFINE_STANDARD_RTTI(ShapeExtend_MsgRegistrator)

protected:




private: 


  ShapeExtend_DataMapOfTransientListOfMsg myMapTransient;
  ShapeExtend_DataMapOfShapeListOfMsg myMapShape;


};


#include <ShapeExtend_MsgRegistrator.lxx>





#endif // _ShapeExtend_MsgRegistrator_HeaderFile
