DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Sorting.hpp
Go to the documentation of this file.
1#ifndef SORTING_H
2#define SORTING_H
3
4#include "conffwk/Schema.hpp"
6#include <string>
7
8namespace dbe
9{
10
12{
13public:
14 bool operator() ( std::string const & L, std::string const & R )
15 {
16 return L.compare ( R ) < 0;
17 }
18
19 bool operator() ( dbe::tref const & L, dbe::tref const & R )
20 {
21 return ( L.UID() ).compare ( ( R.UID() ) ) < 0;
22 }
23
25 {
26 int LString = L.p_type;
27 int RString = R.p_type;
28
29 return LString > RString;
30 }
31};
32
33} // namespace dbe
34#endif // SORTING_H
bool operator()(std::string const &L, std::string const &R)
Definition Sorting.hpp:14
Include QT Headers.