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{
15
17{
18public:
19 bool operator() ( std::string const & L, std::string const & R )
20 {
21 return L.compare ( R ) < 0;
22 }
23
24 bool operator() ( dbe::tref const & L, dbe::tref const & R )
25 {
26 return ( L.UID() ).compare ( ( R.UID() ) ) < 0;
27 }
28
30 {
31 int LString = L.p_type;
32 int RString = R.p_type;
33
34 return LString > RString;
35 }
36};
37
38} // namespace dbe
39#endif // SORTING_H
bool operator()(std::string const &L, std::string const &R)
Definition Sorting.hpp:19
Include QT Headers.
inner::configobject::tref tref
Definition tref.hpp:35