ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
Namespaces | Functions
keyword.cpp File Reference

Definition of contents from fits/keyword.hpp. More...

#include <daq/fits/keyword.hpp>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <ostream>
#include <boost/algorithm/string/join.hpp>
#include <boost/assert.hpp>
#include <boost/exception/enable_current_exception.hpp>
#include <fmt/format.h>

Go to the source code of this file.

Namespaces

namespace  daq
 
namespace  daq::fits
 
namespace  daq::fits::v1
 Versioned namespace of sorting functions in case standard evolves but instruments want to freeze.
 

Functions

bool daq::fits::operator< (KeywordNameView lhs, KeywordNameView rhs) noexcept
 
bool daq::fits::operator== (KeywordNameView lhs, KeywordNameView rhs) noexcept
 
bool daq::fits::operator!= (KeywordNameView lhs, KeywordNameView rhs) noexcept
 
bool daq::fits::operator< (LiteralKeyword const &, LiteralKeyword const &) noexcept
 Sort by logical keyword name (not DICD sort)
 
bool daq::fits::operator== (LiteralKeyword const &lhs, LiteralKeyword const &rhs) noexcept
 Compares equally if keyword record in lhs is the same as rhs (char for char).
 
bool daq::fits::operator!= (LiteralKeyword const &, LiteralKeyword const &) noexcept
 Compares inequally if keyword record in lhs is not the same as rhs (char for char).
 
std::ostream & daq::fits::operator<< (std::ostream &os, LiteralKeyword const &kw)
 
auto daq::fits::operator== (LiteralKeyword::Components const &lhs, LiteralKeyword::Components const &rhs) noexcept -> bool
 
auto daq::fits::operator!= (LiteralKeyword::Components const &lhs, LiteralKeyword::Components const &rhs) noexcept -> bool
 
template std::ostream & daq::fits::operator<<< EsoKeywordTraits > (std::ostream &os, BasicKeyword< EsoKeywordTraits > const &kw)
 
template std::ostream & daq::fits::operator<<< ValueKeywordTraits > (std::ostream &os, BasicKeyword< ValueKeywordTraits > const &kw)
 
bool daq::fits::NameEquals (KeywordVariant const &lhs, KeywordVariant const &rhs) noexcept
 Compare logical keyword names of keyword of the same type.
 
KeywordClass daq::fits::GetKeywordClass (std::string_view name)
 Get keyword class.
 
bool daq::fits::operator< (LiteralKeyword const &, EsoKeyword const &) noexcept
 Keyword sorting function.
 
bool daq::fits::operator< (LiteralKeyword const &, ValueKeyword const &) noexcept
 Keyword sorting function.
 
bool daq::fits::operator< (ValueKeyword const &, EsoKeyword const &) noexcept
 Keyword sorting function.
 
bool daq::fits::operator< (ValueKeyword const &, LiteralKeyword const &) noexcept
 Keyword sorting function.
 
bool daq::fits::operator< (EsoKeyword const &, ValueKeyword const &) noexcept
 Keyword sorting function.
 
bool daq::fits::operator< (EsoKeyword const &, LiteralKeyword const &) noexcept
 Keyword sorting function.
 
std::ostream & daq::fits::operator<< (std::ostream &os, BasicKeywordBase::ValueType const &kw)
 
template<class Trait >
std::ostream & daq::fits::operator<< (std::ostream &os, BasicKeyword< Trait > const &kw)
 
std::ostream & daq::fits::operator<< (std::ostream &os, KeywordVariant const &kw)
 Ostream formatting of keywords.
 
void daq::fits::UpdateKeywords (KeywordVector &to, KeywordVector const &from, ConflictPolicy policy=ConflictPolicy::Replace)
 Updates to with keywords from from.
 
void daq::fits::InsertKeywords (KeywordVector &keywords, KeywordVector::iterator position, KeywordVector::const_iterator from_first, KeywordVector::const_iterator from_last)
 Insert keywords.
 
auto daq::fits::FormatFitsValue (KeywordNameView name, BasicKeywordBase::ValueType const &value) -> std::string
 Format keyword value using built-in rules such that it can be used as a component when formatting a complete keyword record.
 
auto daq::fits::UntypedFormat (KeywordNameView name, std::string_view value, std::string_view comment) -> LiteralKeyword
 Untyped formatting where value already has been formatted correctly.
 
void daq::fits::v1::StandardSort (std::vector< LiteralKeyword > &keywords)
 Sorts keywords according to ESO DICD standards.
 
Format keyword using default formatting rules.
Parameters
keywordKeyword to format.
Exceptions
std::invalid_argumenton failure.
LiteralKeyword daq::fits::Format (EsoKeyword const &keyword)
 
LiteralKeyword daq::fits::Format (ValueKeyword const &keyword)
 
LiteralKeyword daq::fits::Format (LiteralKeyword::Components const &keyword)
 
LiteralKeyword daq::fits::Format (KeywordVariant const &keyword)
 

Detailed Description

Definition of contents from fits/keyword.hpp.

Definition in file keyword.cpp.