#ifndef METADATABUFFER_H #define METADATABUFFER_H #include #include #include "ZmqReceiver.hpp" class MetadataBuffer { const uint64_t n_images; const std::shared_ptr> header_values_type; protected: std::unordered_map> metadata_buffer; std::unordered_map metadata_length_bytes; public: MetadataBuffer(uint64_t n_images, std::shared_ptr> header_values_type); void add_metadata_to_buffer(std::string name, uint64_t frame_index, const char* data); std::shared_ptr get_metadata_values(std::string name); std::shared_ptr> get_header_values_type(); uint64_t get_n_images(); }; #endif