|
ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Namespaces | |
| base | |
Classes | |
| class | JsonReporter |
| Reports in JSON format. More... | |
| class | SimpleReporter |
| Reports in unspecified human-readable format. More... | |
| class | Formatter |
| class | Sorter |
| class | MergeEvent |
| Base class of merge events. More... | |
| class | StatusReporter |
| Interface to reporter (implementations exist for JSON or human readable) More... | |
| class | KeywordFormatter |
| class | KeywordSorter |
| class | KeywordFilter |
| Interface to a keyword selector. More... | |
| class | KeywordTransform |
| struct | Operations |
| struct | Params |
| struct | SourceNotFoundError |
| Source file not found. More... | |
| class | TargetSource |
| Target FITS file. More... | |
| class | FitsFileSource |
| Input FITS source file. More... | |
| class | FitsKeywordsSource |
| Input FITS keywords. More... | |
| struct | MockReporter |
| struct | MockFormatter |
| struct | MockSorter |
| struct | MockKeywordProcessor |
| class | TestMergeKeywords |
| Fixture that sets up a in-place target FITS file with standard HDU keywords. More... | |
Typedefs | |
| using | SourceTypes = std::variant< FitsKeywordsSource, FitsFileSource > |
| Variant of the different supported source types. More... | |
Functions | |
| std::optional< KeywordRuleProcessor::DefaultRule > | Convert (std::optional<::daq::json::InitialKeywords > const &rhs) |
| fs::path | MakeSourcePath (fs::path source, fs::path const &root) |
| std::unique_ptr< KeywordRuleProcessor > | MakeKeywordRuleProcessor (json::KeywordRules const &rules) |
| int | Entrypoint (fs::path const &root, std::optional< fs::path > const &opt_out_path, json::DpSpec const &spec, SourceResolver const &resolver, bool dry_run, bool use_json) |
| int | Entrypoint (std::filesystem::path const &root, std::optional< std::filesystem::path > const &dp_path, json::DpSpec const &spec, SourceResolver const &resolver, bool dry_run, bool use_json) |
| Validates and loads data sources to the format expected by the merge function. More... | |
| fits::KeywordVector | CompileKeywords (Operations ops, FitsKeywordsSource const &source) |
| fits::KeywordVector | CompileKeywords (Operations ops, FitsFileSource const &source, int hdu_num) |
| fits::KeywordVector | CompilePrimaryHduKeywords (Operations ops, TargetSource &target, std::vector< SourceTypes > const &sources) |
| Compiles unique keywords and formats primary HDU keywords. More... | |
| std::vector< fits::LiteralKeyword > | FormatKeywords (fits::KeywordVector::const_iterator begin, fits::KeywordVector::const_iterator end, KeywordFormatter &fmt) |
| template<class Container > | |
| void | LogKeywords (log4cplus::Logger const &logger, Container const &keywords) |
| void | MergePrimaryHduKeywords (Operations ops, Params const ¶ms, TargetSource &target, std::vector< SourceTypes > const &sources, bool dry_run) |
| void | CopyExtensions (Operations ops, TargetSource &target, FitsFileSource const &source, bool dry_run) |
| Copy all extensions from source to target. More... | |
| void | MergeHduExtensions (Operations ops, TargetSource &target, std::vector< SourceTypes > const &sources, bool dry_run) |
| void | UpdateChecksums (Operations ops, TargetSource &target, bool dry_run) |
| void | Merge (Operations ops, Params const ¶ms, TargetSource &target, std::vector< SourceTypes > const &sources, bool dry_run) |
| Merge sources into the target target. More... | |
| void | MergePrimaryHduKeywords (Operations ops, TargetSource &target, std::vector< SourceTypes > const &sources, bool dry_run) |
| TEST_F (TestMergeKeywords, MergeEmptyStillSortsKeywords) | |
| TEST_F (TestMergeKeywords, NoSourceStillSortsPrimaryHdu) | |
| Test that primary HDU keywords are sorted. More... | |
| TEST_F (TestMergeKeywords, MergeSingleKeywordList) | |
| Test merging some keywords from a single source. More... | |
| TEST_F (TestMergeKeywords, MergeFailsIfTransformsCauseInvalidKeyword) | |
| class daq::dpm::merge::MergeEvent |
| struct daq::dpm::merge::Operations |
| Class Members | ||
|---|---|---|
| KeywordFormatter & | keyword_formatter | |
| KeywordSorter & | keyword_sorter | |
| Logger const & | logger | |
| StatusReporter & | status_reporter | |
| struct daq::dpm::merge::Params |
| using daq::dpm::merge::SourceTypes = typedef std::variant<FitsKeywordsSource, FitsFileSource> |
Variant of the different supported source types.
Definition at line 196 of file sources.hpp.
| fits::KeywordVector daq::dpm::merge::CompileKeywords | ( | Operations | ops, |
| FitsFileSource const & | source, | ||
| int | hdu_num | ||
| ) |
| fits::KeywordVector daq::dpm::merge::CompileKeywords | ( | Operations | ops, |
| FitsKeywordsSource const & | source | ||
| ) |
| fits::KeywordVector daq::dpm::merge::CompilePrimaryHduKeywords | ( | Operations | ops, |
| TargetSource & | target, | ||
| std::vector< SourceTypes > const & | sources | ||
| ) |
| std::optional<KeywordRuleProcessor::DefaultRule> daq::dpm::merge::Convert | ( | std::optional<::daq::json::InitialKeywords > const & | rhs | ) |
Definition at line 29 of file entrypoint.cpp.
| void daq::dpm::merge::CopyExtensions | ( | Operations | ops, |
| TargetSource & | target, | ||
| FitsFileSource const & | source, | ||
| bool | dry_run | ||
| ) |
| int daq::dpm::merge::Entrypoint | ( | fs::path const & | root, |
| std::optional< fs::path > const & | opt_out_path, | ||
| json::DpSpec const & | spec, | ||
| SourceResolver const & | resolver, | ||
| bool | dry_run, | ||
| bool | use_json | ||
| ) |
Definition at line 145 of file entrypoint.cpp.
| int daq::dpm::merge::Entrypoint | ( | std::filesystem::path const & | root, |
| std::optional< std::filesystem::path > const & | dp_path, | ||
| json::DpSpec const & | spec, | ||
| SourceResolver const & | resolver, | ||
| bool | dry_run, | ||
| bool | use_json | ||
| ) |
Validates and loads data sources to the format expected by the merge function.
| std::vector<fits::LiteralKeyword> daq::dpm::merge::FormatKeywords | ( | fits::KeywordVector::const_iterator | begin, |
| fits::KeywordVector::const_iterator | end, | ||
| KeywordFormatter & | fmt | ||
| ) |
| void daq::dpm::merge::LogKeywords | ( | log4cplus::Logger const & | logger, |
| Container const & | keywords | ||
| ) |
| std::unique_ptr<KeywordRuleProcessor> daq::dpm::merge::MakeKeywordRuleProcessor | ( | json::KeywordRules const & | rules | ) |
Definition at line 101 of file entrypoint.cpp.
| fs::path daq::dpm::merge::MakeSourcePath | ( | fs::path | source, |
| fs::path const & | root | ||
| ) |
Definition at line 94 of file entrypoint.cpp.
| void daq::dpm::merge::Merge | ( | Operations | ops, |
| Params const & | params, | ||
| TargetSource & | target, | ||
| std::vector< SourceTypes > const & | sources, | ||
| bool | dry_run | ||
| ) |
| void daq::dpm::merge::MergeHduExtensions | ( | Operations | ops, |
| TargetSource & | target, | ||
| std::vector< SourceTypes > const & | sources, | ||
| bool | dry_run | ||
| ) |
| void daq::dpm::merge::MergePrimaryHduKeywords | ( | Operations | ops, |
| Params const & | params, | ||
| TargetSource & | target, | ||
| std::vector< SourceTypes > const & | sources, | ||
| bool | dry_run | ||
| ) |
| void daq::dpm::merge::MergePrimaryHduKeywords | ( | Operations | ops, |
| TargetSource & | target, | ||
| std::vector< SourceTypes > const & | sources, | ||
| bool | dry_run | ||
| ) |
| daq::dpm::merge::TEST_F | ( | TestMergeKeywords | , |
| MergeEmptyStillSortsKeywords | |||
| ) |
Definition at line 112 of file testMerge.cpp.
| daq::dpm::merge::TEST_F | ( | TestMergeKeywords | , |
| MergeFailsIfTransformsCauseInvalidKeyword | |||
| ) |
Definition at line 179 of file testMerge.cpp.
| daq::dpm::merge::TEST_F | ( | TestMergeKeywords | , |
| MergeSingleKeywordList | |||
| ) |
Test merging some keywords from a single source.
Definition at line 149 of file testMerge.cpp.
| daq::dpm::merge::TEST_F | ( | TestMergeKeywords | , |
| NoSourceStillSortsPrimaryHdu | |||
| ) |
Test that primary HDU keywords are sorted.
Definition at line 130 of file testMerge.cpp.
| void daq::dpm::merge::UpdateChecksums | ( | Operations | ops, |
| TargetSource & | target, | ||
| bool | dry_run | ||
| ) |