DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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
13
namespace
dbe
{
14
15
class
SortObjects
16
{
17
public
:
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
22
bool
operator()
(
const
dunedaq::conffwk::attribute_t
& L,
const
dunedaq::conffwk::attribute_t
& R)
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
dbe::SortObjects
Definition
Sorting.hpp:16
dbe::SortObjects::operator()
bool operator()(dbe::tref const &L, dbe::tref const &R)
Definition
Sorting.hpp:20
dbe::SortObjects::operator()
bool operator()(std::string const &L, std::string const &R)
Definition
Sorting.hpp:18
dbe::SortObjects::operator()
bool operator()(const dunedaq::conffwk::attribute_t &L, const dunedaq::conffwk::attribute_t &R)
Definition
Sorting.hpp:22
dbe::inner::configobject::ref_interface::UID
std::string UID() const
Definition
config_reference.hpp:178
Schema.hpp
dbcontroller.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:36
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:60
dunedaq::conffwk::attribute_t::p_type
type_t p_type
Definition
Schema.hpp:63
Generated on
for DUNE-DAQ by
1.18.0