Template Class MetadataEntryHelper
Defined in File metadata.h
Inheritance Relationships
Base Types
public ouster::sdk::osf::MetadataEntry(Class MetadataEntry)private ouster::sdk::osf::RegisterMetadata< DerivedMetadataEntry >(Template Struct RegisterMetadata)
Class Documentation
-
template<typename DerivedMetadataEntry>
class MetadataEntryHelper : public ouster::sdk::osf::MetadataEntry, private ouster::sdk::osf::RegisterMetadata<DerivedMetadataEntry> Helper class used as base class for concrete derived metadata types and provides type()/static_type()/clone() functions as boilerplate.
Also registers the from_buffer() function for deserializer registry via RegisterMetadata helper trick.
- Template Parameters:
DerivedMetadataEntry – The derived Metadata Entry type.
Public Functions
-
inline virtual std::string type() const override
Return the metadata type string for the specific derived class.
- Returns:
The specific type string for the derived class.
-
inline virtual std::string static_type() const override
Return the metadata type string for the specific derived class.
- Returns:
The specific type string for the derived class.
-
inline virtual std::unique_ptr<MetadataEntry> clone() const override
Clone the specific derived metadata object.
- Returns:
The cloned MetadataEntry object.