21 #ifndef INCLUDE_SATNOGS_SIGMF_METADATA_IMPL_H 22 #define INCLUDE_SATNOGS_SIGMF_METADATA_IMPL_H 25 #include <libsigmf/sigmf.h> 26 #include <libsigmf/sigmf_antenna_generated.h> 27 #include <libsigmf/sigmf_satnogs_generated.h> 43 metadata::metadata_sptr
44 make(
const std::string &global_segment_json);
47 transform(pmt::pmt_t &m);
50 to_file(
const std::string &filename);
57 append_capture_segment(uint64_t sample_start);
60 append_capture_segment(uint64_t sample_start, uint64_t global_index,
61 double frequency, std::string datetime);
64 append_capture_segment(std::string capture_json);
67 append_annotation_segment(uint64_t sample_start, uint64_t sample_count);
70 append_annotation_segment(uint64_t sample_start, uint64_t sample_count,
71 std::string generator, std::string comment,
72 double freq_lower_edge,
73 double freq_upper_edge);
76 append_annotation_segment(std::string annotation_json);
79 parse_json(std::string filename);
82 sigmf::Global<core::DescrT, antenna::DescrT, ::satnogs::DescrT>,
83 sigmf::Capture<core::DescrT>,
84 sigmf::Annotation<core::DescrT, antenna::DescrT, ::satnogs::DescrT> > &
90 sigmf::Global<core::DescrT, antenna::DescrT, ::satnogs::DescrT>,
91 sigmf::Capture<core::DescrT>,
92 sigmf::Annotation<core::DescrT, antenna::DescrT, ::satnogs::DescrT> > d_sigmf;
94 std::string d_metafile_name;
95 std::string d_metadata_name;
98 initialize_global(
const std::string global_segment_json);
Definition: amsat_duv_decoder.h:29
#define SATNOGS_API
Definition: api.h:30