Class astutedds::xtypes::TypeLookupManager
ClassList > astutedds > xtypes > TypeLookupManager
Per-participant type lookup manager. More...
#include <type_lookup_service.hpp>
Public Functions
| Type | Name |
|---|---|
| TypeLookupManager (const rtps::GUID_t & participant_guid) Construct manager for a participant. |
|
| bool | check_type_compatibility (const TypeIdentifier & local_type, const TypeIdentifier & remote_type, const rtps::GUID_t & remote_guid) Check if two types are compatible. |
| std::optional< TypeObject > | lookup_type (const std::string & type_name, const rtps::GUID_t & remote_guid, std::chrono::milliseconds timeout=std::chrono::seconds(5)) Lookup type from remote participant. |
| void | register_type (const std::string & type_name, const TypeObject & type_object) Register a local type for remote discovery. |
| std::vector< TypeIdentifierTypeObjectPair > | resolve_type_with_dependencies (const TypeIdentifier & type_id, const rtps::GUID_t & remote_guid) Resolve type with all dependencies. |
| TypeLookupService & | service () Get the TypeLookup service. |
| const TypeLookupService & | service () const |
Detailed Description
Integrates TypeLookup service with SEDP for automatic type discovery.
Public Functions Documentation
function TypeLookupManager
Construct manager for a participant.
explicit astutedds::xtypes::TypeLookupManager::TypeLookupManager (
const rtps::GUID_t & participant_guid
)
function check_type_compatibility
Check if two types are compatible.
bool astutedds::xtypes::TypeLookupManager::check_type_compatibility (
const TypeIdentifier & local_type,
const TypeIdentifier & remote_type,
const rtps::GUID_t & remote_guid
)
Parameters:
local_typeLocal type identifierremote_typeRemote type identifierremote_guidRemote participant GUID
Returns:
true if types are assignable
function lookup_type
Lookup type from remote participant.
std::optional< TypeObject > astutedds::xtypes::TypeLookupManager::lookup_type (
const std::string & type_name,
const rtps::GUID_t & remote_guid,
std::chrono::milliseconds timeout=std::chrono::seconds(5)
)
Parameters:
type_nameType nameremote_guidRemote participant GUIDtimeoutTimeout for lookup
Returns:
TypeObject if found
function register_type
Register a local type for remote discovery.
void astutedds::xtypes::TypeLookupManager::register_type (
const std::string & type_name,
const TypeObject & type_object
)
Parameters:
type_nameType name (as used in topics)type_objectComplete TypeObject
function resolve_type_with_dependencies
Resolve type with all dependencies.
std::vector< TypeIdentifierTypeObjectPair > astutedds::xtypes::TypeLookupManager::resolve_type_with_dependencies (
const TypeIdentifier & type_id,
const rtps::GUID_t & remote_guid
)
Parameters:
type_idType identifierremote_guidRemote participant GUID
Returns:
Vector of all resolved types (including dependencies)
function service [1/2]
Get the TypeLookup service.
inline TypeLookupService & astutedds::xtypes::TypeLookupManager::service ()
function service [2/2]
inline const TypeLookupService & astutedds::xtypes::TypeLookupManager::service () const
The documentation for this class was generated from the following file include/astutedds/xtypes/type_lookup_service.hpp