ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Namespaces | Functions
keyword.cpp File Reference

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

#include <daq/fits/keyword.hpp>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <ostream>
#include <fmt/format.h>

Go to the source code of this file.

Namespaces

 daq
 
 daq::fits
 
 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) More...
 
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). More...
 
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). More...
 
std::ostream & daq::fits::operator<< (std::ostream &os, LiteralKeyword const &kw)
 
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. More...
 
KeywordClass daq::fits::GetKeywordClass (std::string_view name)
 Get keyword class. More...
 
bool daq::fits::operator< (LiteralKeyword const &, EsoKeyword const &) noexcept
 Keyword sorting function. More...
 
bool daq::fits::operator< (LiteralKeyword const &, ValueKeyword const &) noexcept
 Keyword sorting function. More...
 
bool daq::fits::operator< (ValueKeyword const &, EsoKeyword const &) noexcept
 Keyword sorting function. More...
 
bool daq::fits::operator< (ValueKeyword const &, LiteralKeyword const &) noexcept
 Keyword sorting function. More...
 
bool daq::fits::operator< (EsoKeyword const &, ValueKeyword const &) noexcept
 Keyword sorting function. More...
 
bool daq::fits::operator< (EsoKeyword const &, LiteralKeyword const &) noexcept
 Keyword sorting function. More...
 
template<class Trait >
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. More...
 
void daq::fits::UpdateKeywords (KeywordVector &to, KeywordVector const &from, ConflictPolicy policy=ConflictPolicy::Replace)
 Updates to with keywords from from. More...
 
void daq::fits::InsertKeywords (KeywordVector &keywords, KeywordVector::iterator position, KeywordVector::const_iterator from_first, KeywordVector::const_iterator from_last)
 Insert keywords. More...
 
void daq::fits::v1::StandardSort (std::vector< LiteralKeyword > &keywords)
 Sorts keywords according to ESO DICD standards. More...
 
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.