OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <Registered_Data_Types.h>
Public Member Functions | |
DDS::ReturnCode_t | register_type (DDS::DomainParticipant_ptr domain_participant, const char *type_name, TypeSupport_ptr the_type) |
DDS::ReturnCode_t | unregister_type (DDS::DomainParticipant_ptr domain_participant, const char *type_name, TypeSupport_ptr the_type) |
DDS::ReturnCode_t | unregister_participant (DDS::DomainParticipant_ptr domain_participant) |
TypeSupport_ptr | lookup (DDS::DomainParticipant_ptr domain_participant, const char *type_name) const |
Static Public Member Functions | |
static Data_Types_Register * | instance () |
Return a singleton instance of this class. More... | |
Private Member Functions | |
Data_Types_Register () | |
~Data_Types_Register () | |
Private Attributes | |
ACE_SYNCH_MUTEX | lock_ |
ParticipantMap | participants_ |
Friends | |
class | ACE_Singleton< Data_Types_Register, ACE_SYNCH_MUTEX > |
A singleton class that keeps track of the registered DDS data types local to this process. Data types are registered by domain participant.
Definition at line 37 of file Registered_Data_Types.h.
|
private |
Definition at line 24 of file Registered_Data_Types.cpp.
|
private |
Definition at line 28 of file Registered_Data_Types.cpp.
|
static |
Return a singleton instance of this class.
Definition at line 33 of file Registered_Data_Types.cpp.
References ACE_Singleton< TYPE, ACE_LOCK >::instance().
TypeSupport_ptr OpenDDS::DCPS::Data_Types_Register::lookup | ( | DDS::DomainParticipant_ptr | domain_participant, |
const char * | type_name | ||
) | const |
Find a data type by its type name.
Definition at line 95 of file Registered_Data_Types.cpp.
References ACE_GUARD_RETURN, ACE_SYNCH_MUTEX, lock_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and participants_.
DDS::ReturnCode_t OpenDDS::DCPS::Data_Types_Register::register_type | ( | DDS::DomainParticipant_ptr | domain_participant, |
const char * | type_name, | ||
TypeSupport_ptr | the_type | ||
) |
Register a type.
Definition at line 38 of file Registered_Data_Types.cpp.
References ACE_GUARD_RETURN, ACE_SYNCH_MUTEX, lock_, participants_, DDS::RETCODE_ERROR, and DDS::RETCODE_OK.
DDS::ReturnCode_t OpenDDS::DCPS::Data_Types_Register::unregister_participant | ( | DDS::DomainParticipant_ptr | domain_participant | ) |
Definition at line 87 of file Registered_Data_Types.cpp.
References ACE_GUARD_RETURN, ACE_SYNCH_MUTEX, lock_, participants_, DDS::RETCODE_ERROR, and DDS::RETCODE_OK.
DDS::ReturnCode_t OpenDDS::DCPS::Data_Types_Register::unregister_type | ( | DDS::DomainParticipant_ptr | domain_participant, |
const char * | type_name, | ||
TypeSupport_ptr | the_type | ||
) |
Unregister a type.
Definition at line 62 of file Registered_Data_Types.cpp.
References ACE_GUARD_RETURN, ACE_SYNCH_MUTEX, lock_, participants_, DDS::RETCODE_ERROR, and DDS::RETCODE_OK.
|
friend |
Definition at line 38 of file Registered_Data_Types.h.
|
mutableprivate |
Definition at line 80 of file Registered_Data_Types.h.
Referenced by lookup(), register_type(), unregister_participant(), and unregister_type().
|
private |
Definition at line 81 of file Registered_Data_Types.h.
Referenced by lookup(), register_type(), unregister_participant(), and unregister_type().