SHAPER  9.12.0
ModelAPI_ObjectUpdatedMessage Class Referenceabstract

Message that feature was changed (used for Object Browser update): moved, updated and deleted. More...

Inheritance diagram for ModelAPI_ObjectUpdatedMessage:
Inheritance graph

Public Member Functions

virtual const std::set< ObjectPtr > & objects () const =0
 Returns the feature that has been updated. More...
 
virtual std::shared_ptr< Events_MessageGroupnewEmpty ()=0
 Creates a new empty group (to store it in the loop before flush) More...
 
virtual void Join (const std::shared_ptr< Events_MessageGroup > &theJoined)=0
 Allows to join the given message with the current one. More...
 
const Events_IDeventID () const
 Returns identifier of the message. More...
 
void * sender () const
 Returns sender of the message or NULL if it is anonymous message. More...
 

Protected Member Functions

 ModelAPI_ObjectUpdatedMessage (const Events_ID theID, const void *theSender=0)
 Creates an empty message. More...
 
virtual ~ModelAPI_ObjectUpdatedMessage ()
 The virtual destructor. More...
 

Detailed Description

Message that feature was changed (used for Object Browser update): moved, updated and deleted.

Constructor & Destructor Documentation

◆ ModelAPI_ObjectUpdatedMessage()

ModelAPI_ObjectUpdatedMessage::ModelAPI_ObjectUpdatedMessage ( const Events_ID  theID,
const void *  theSender = 0 
)
protected

Creates an empty message.

◆ ~ModelAPI_ObjectUpdatedMessage()

ModelAPI_ObjectUpdatedMessage::~ModelAPI_ObjectUpdatedMessage ( )
protectedvirtual

The virtual destructor.

Member Function Documentation

◆ objects()

virtual const std::set<ObjectPtr>& ModelAPI_ObjectUpdatedMessage::objects ( ) const
pure virtual

Returns the feature that has been updated.

Implemented in Model_ObjectUpdatedMessage.

◆ newEmpty()

virtual std::shared_ptr<Events_MessageGroup> ModelAPI_ObjectUpdatedMessage::newEmpty ( )
pure virtual

Creates a new empty group (to store it in the loop before flush)

Implements Events_MessageGroup.

Implemented in Model_ObjectUpdatedMessage.

◆ Join()

virtual void ModelAPI_ObjectUpdatedMessage::Join ( const std::shared_ptr< Events_MessageGroup > &  theJoined)
pure virtual

Allows to join the given message with the current one.

Implements Events_MessageGroup.

Implemented in Model_ObjectUpdatedMessage.

◆ eventID()

const Events_ID& Events_Message::eventID ( ) const
inlineinherited

Returns identifier of the message.

◆ sender()

void* Events_Message::sender ( ) const
inlineinherited

Returns sender of the message or NULL if it is anonymous message.