Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
foxglove::MessageDefinitionCache Class Referencefinal

#include <message_definition_cache.hpp>

Classes

struct  DefinitionIdentifierHash
 

Public Member Functions

std::pair< MessageDefinitionFormat, std::string > get_full_text (const std::string &package_resource_name)
 

Private Member Functions

const MessageSpecload_message_spec (const DefinitionIdentifier &definition_identifier)
 

Private Attributes

std::unordered_map< DefinitionIdentifier, MessageSpec, DefinitionIdentifierHashmsg_specs_by_definition_identifier_
 

Detailed Description

Definition at line 53 of file message_definition_cache.hpp.

Member Function Documentation

◆ get_full_text()

std::pair< MessageDefinitionFormat, std::string > foxglove::MessageDefinitionCache::get_full_text ( const std::string &  package_resource_name)

Concatenate the message definition with its dependencies into a self-contained schema. The format is different for MSG and IDL definitions, and is described fully here: MSG IDL Throws DefinitionNotFoundError if one or more definition files are missing for the given package resource name.

Definition at line 268 of file message_definition_cache.cpp.

◆ load_message_spec()

const MessageSpec & foxglove::MessageDefinitionCache::load_message_spec ( const DefinitionIdentifier definition_identifier)
private

Load and parse the message file referenced by the given datatype, or return it from msg_specs_by_datatype

Definition at line 165 of file message_definition_cache.cpp.

Member Data Documentation

◆ msg_specs_by_definition_identifier_

std::unordered_map<DefinitionIdentifier, MessageSpec, DefinitionIdentifierHash> foxglove::MessageDefinitionCache::msg_specs_by_definition_identifier_
private

Definition at line 81 of file message_definition_cache.hpp.


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


foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22