Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
component_functions.hpp File Reference
#include "api/framework/component_types.hpp"
#include <vector>
#include <cstdint>

Go to the source code of this file.

Typedefs

typedef std::vector< std::uint8_t >(* DataProducer) (std::uint32_t unit, ComponentData *data)
 Function pointer type for data production.
 
typedef void(* ResponseHandler) (void *msg, ComponentData *data)
 Function pointer type for response handling.
 

Typedef Documentation

◆ DataProducer

Function pointer type for data production.

This function is called when an Agent needs to generate data in response to an INTEREST message. Following EPOS SmartData principles, this allows pure function-based data generation without inheritance.

Parameters
unitThe data unit being requested
dataPointer to component-specific data structure
Returns
Value containing the generated data

◆ ResponseHandler

typedef void(* ResponseHandler) (void *msg, ComponentData *data)

Function pointer type for response handling.

This function is called when an Agent receives a RESPONSE message. Following EPOS SmartData principles, this allows pure function-based response processing without inheritance.

Parameters
msgPointer to the received message
dataPointer to component-specific data structure