Class astutedds::dcps::TypedFieldAccessor

template <typename T>

ClassList > astutedds > dcps > TypedFieldAccessor

Create field accessor for a specific type. More...

  • #include <writer_filter.hpp>

Public Types

Type Name
typedef std::function< FilterValue(const T &, const std::string &)> AccessorFunc

Public Functions

Type Name
FilterValue get_field (const T & data, const std::string & field_name) const
Get value of field.
void register_field (const std::string & name, std::function< FilterValue(const T &)> getter)
Register field accessor.
FieldAccessor to_field_accessor () const
Create FieldAccessor for WriterFilterManager .

Detailed Description

Template helper to create field accessor functions for typed data.

Public Types Documentation

typedef AccessorFunc

using astutedds::dcps::TypedFieldAccessor< T >::AccessorFunc =  std::function<FilterValue(const T&, const std::string&)>;

Public Functions Documentation

function get_field

Get value of field.

inline FilterValue astutedds::dcps::TypedFieldAccessor::get_field (
    const T & data,
    const std::string & field_name
) const


function register_field

Register field accessor.

inline void astutedds::dcps::TypedFieldAccessor::register_field (
    const std::string & name,
    std::function< FilterValue (const T &)> getter
) 


function to_field_accessor

Create FieldAccessor for WriterFilterManager .

inline FieldAccessor astutedds::dcps::TypedFieldAccessor::to_field_accessor () const



The documentation for this class was generated from the following file include/astutedds/dcps/writer_filter.hpp