DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Sorting.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/Sorting.h to include/dbe/Sorting.hpp).
5
6#ifndef SORTING_H
7#define SORTING_H
8
9#include "conffwk/Schema.hpp"
10#include "dbe/dbcontroller.hpp"
11#include <string>
12
13namespace dbe {
14
16{
17public:
18 bool operator()(std::string const& L, std::string const& R) { return L.compare(R) < 0; }
19
20 bool operator()(dbe::tref const& L, dbe::tref const& R) { return (L.UID()).compare((R.UID())) < 0; }
21
23 {
24 int LString = L.p_type;
25 int RString = R.p_type;
26
27 return LString > RString;
28 }
29};
30
31} // namespace dbe
32#endif // SORTING_H
bool operator()(dbe::tref const &L, dbe::tref const &R)
Definition Sorting.hpp:20
bool operator()(std::string const &L, std::string const &R)
Definition Sorting.hpp:18
bool operator()(const dunedaq::conffwk::attribute_t &L, const dunedaq::conffwk::attribute_t &R)
Definition Sorting.hpp:22
Include QT Headers.
inner::configobject::tref tref
Definition tref.hpp:36