Skip to main content

MetadataSender.h File

UDP sender for JSON metadata payloads. More...

Included Headers

#include <cstdint> #include <memory> #include <string>

Namespaces Index

namespacesimaai
namespaceneat

Classes Index

structMetadataSenderOptions
classMetadataSender

Description

UDP sender for JSON metadata payloads.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include <cstdint>
9#include <memory>
10#include <string>
11
12namespace simaai::neat {
13
15 std::string host = "127.0.0.1";
16 int channel = 0;
18};
19
21public:
22 explicit MetadataSender(const MetadataSenderOptions& opt, std::string* err = nullptr);
24 MetadataSender(const MetadataSender&) = delete;
27 MetadataSender& operator=(MetadataSender&&) noexcept;
28
29 bool ok() const;
30 const std::string& host() const;
31 int metadata_port() const;
32
33 bool send_raw_json(const std::string& payload, std::string* err = nullptr) const;
34 bool send_metadata(const std::string& type, const std::string& data_json, int64_t timestamp_ms,
35 const std::string& frame_id, std::string* err = nullptr) const;
36
37private:
38 struct Impl;
39 std::unique_ptr<Impl> impl_;
40};
41
42} // namespace simaai::neat

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.