TrueReality  v0.1.1912
trManager::MessageEntityUnregistered Class Reference

A message that is sent out when an entity is unregistered from the System Manager. More...

#include <MessageEntityUnregistered.h>

Inheritance diagram for trManager::MessageEntityUnregistered:
Collaboration diagram for trManager::MessageEntityUnregistered:

Public Types

using BaseClass = trManager::MessageBase
 
- Public Types inherited from trManager::MessageBase
using BaseClass = trBase::SmrtClass
 
- Public Types inherited from trBase::SmrtClass
using BaseClass = osg::Referenced
 

Public Member Functions

 MessageEntityUnregistered (const trBase::UniqueId *fromActorID, const trBase::UniqueId *aboutActorID, const std::string *entityType, const std::string *entityName)
 Holds the class/message type name for efficient comparisons. More...
 
virtual const std::string & GetMessageType () const override
 Returns the Message type. More...
 
virtual const std::string & GetEntityType () const
 Gets entity type. More...
 
virtual const std::string & GetEntityName () const
 Gets entity type. More...
 
- Public Member Functions inherited from trManager::MessageBase
 MessageBase (const trBase::UniqueId *fromActorID, const trBase::UniqueId *aboutActorID=NULL, const bool isDirect=false, const std::string &messageFilter=trUtil::StringUtils::STR_BLANK)
 Holds the class/message type name for efficient comparisons. More...
 
bool operator== (const MessageBase &msg) const
 
bool operator!= (const MessageBase &msg) const
 
virtual const trBase::UniqueIdGetFromActorID () const
 Returns the ID of the actor the message was sent from. More...
 
virtual const trBase::UniqueIdGetAboutActorID () const
 Returns the ID of the actor this message is about, or sent to. More...
 
virtual const bool & GetIsDirect () const
 Returns True if this message is a direct message and skips all Directors. More...
 
virtual const std::string & GetMessageFilter ()
 Returns the custom Filter string. More...
 
- Public Member Functions inherited from trBase::SmrtClass
 SmrtClass ()
 Adds an easy and swappable access to the base class. More...
 
 SmrtClass (bool threadSafeRefUnref)
 Constructor. More...
 
 SmrtClass (const SmrtClass &inst)
 Copy constructor. More...
 
virtual bool GetThreadSafeRefUnref ()
 Get whether a mutex is used to ensure Ref() and UnRef() are thread safe. More...
 
OpenThreads::Mutex * GetRefMutex () const
 Get the mutex used to ensure thread safety of Ref()/UnRef(). More...
 
int Ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int Unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int UnRefNoDelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int ReferenceCount () const
 Return the number of pointers currently referencing this object. More...
 

Static Public Attributes

static const trUtil::RefStr MESSAGE_TYPE
 Adds an easy and swappable access to the base class. More...
 
- Static Public Attributes inherited from trManager::MessageBase
static const trUtil::RefStr MESSAGE_TYPE
 Adds an easy and swappable access to the base class. More...
 

Protected Member Functions

 ~MessageEntityUnregistered ()
 Destructor. More...
 
- Protected Member Functions inherited from trManager::MessageBase
 ~MessageBase ()
 dtor. More...
 
virtual const std::string & GetType () const override
 Returns the class type Made protected to hide it. More...
 
- Protected Member Functions inherited from trBase::SmrtClass
 ~SmrtClass ()
 

Private Attributes

const std::string * mEntityTypePtr
 
const std::string * mEntityNamePtr
 

Additional Inherited Members

- Static Public Member Functions inherited from trBase::SmrtClass
static OpenThreads::Mutex * GetGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all trBase::SmrtClass. More...
 

Detailed Description

A message that is sent out when an entity is unregistered from the System Manager.

Definition at line 40 of file MessageEntityUnregistered.h.

Member Typedef Documentation

◆ BaseClass

Constructor & Destructor Documentation

◆ MessageEntityUnregistered()

trManager::MessageEntityUnregistered::MessageEntityUnregistered ( const trBase::UniqueId fromActorID,
const trBase::UniqueId aboutActorID,
const std::string *  entityType,
const std::string *  entityName 
)

Holds the class/message type name for efficient comparisons.

Constructor.

Parameters
fromActorIDIdentifier of the entity that is sending this message (usually System Manager)
aboutActorIDIdentifier for the Entity that just unregistered.
entityTypeType of the registered entity.
entityNameName of the registered entity.

Definition at line 29 of file MessageEntityUnregistered.cpp.

References mEntityNamePtr, and mEntityTypePtr.

◆ ~MessageEntityUnregistered()

trManager::MessageEntityUnregistered::~MessageEntityUnregistered ( )
protected

Destructor.

Definition at line 49 of file MessageEntityUnregistered.cpp.

Member Function Documentation

◆ GetEntityName()

const std::string & trManager::MessageEntityUnregistered::GetEntityName ( ) const
virtual

Gets entity type.

Returns
The entity type.

Definition at line 43 of file MessageEntityUnregistered.cpp.

References mEntityNamePtr.

◆ GetEntityType()

const std::string & trManager::MessageEntityUnregistered::GetEntityType ( ) const
virtual

Gets entity type.

Returns
The entity type.

Definition at line 37 of file MessageEntityUnregistered.cpp.

References mEntityTypePtr.

◆ GetMessageType()

const std::string & trManager::MessageEntityUnregistered::GetMessageType ( ) const
overridevirtual

Returns the Message type.

Returns
The message type.

Implements trManager::MessageBase.

Definition at line 55 of file MessageEntityUnregistered.cpp.

References MESSAGE_TYPE.

Member Data Documentation

◆ mEntityNamePtr

const std::string* trManager::MessageEntityUnregistered::mEntityNamePtr
private

Definition at line 99 of file MessageEntityUnregistered.h.

Referenced by GetEntityName(), and MessageEntityUnregistered().

◆ mEntityTypePtr

const std::string* trManager::MessageEntityUnregistered::mEntityTypePtr
private

Definition at line 98 of file MessageEntityUnregistered.h.

Referenced by GetEntityType(), and MessageEntityUnregistered().

◆ MESSAGE_TYPE

const trUtil::RefStr trManager::MessageEntityUnregistered::MESSAGE_TYPE
static

Adds an easy and swappable access to the base class.

Definition at line 45 of file MessageEntityUnregistered.h.

Referenced by GetMessageType().


The documentation for this class was generated from the following files: