ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Classes | Functions
daq::fits::v1 Namespace Reference

Versioned namespace of sorting functions in case standard evolves but instruments want to freeze. More...

Classes

struct  StandardLess
 Sorting function object. More...
 

Functions

void StandardSort (std::vector< LiteralKeyword > &keywords)
 Sorts keywords according to ESO DICD standards. More...
 

Detailed Description

Versioned namespace of sorting functions in case standard evolves but instruments want to freeze.

Function Documentation

◆ StandardSort()

void daq::fits::v1::StandardSort ( std::vector< LiteralKeyword > &  keywords)

Sorts keywords according to ESO DICD standards.

Specifically the following sorting order is applied:

  1. Value keywords note: value keywords are not sorted with other value keywords to keep their relative order from the source they originally come from.
  2. ESO keywords are sorted by
    1. category (DPR, OBS, TPL, GEN, TEL, ADA, INS, DET)
    2. keyword name
  3. Commentary keywords (using only the keyword name)
Parameters
[in,out]keywordsVector of keywords to sort.

Definition at line 720 of file keyword.cpp.