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
16
class
SortObjects
17
{
18
public
:
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
29
bool
operator ()
(
const
dunedaq::conffwk::attribute_t
& L,
const
dunedaq::conffwk::attribute_t
& R )
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
dbe::SortObjects
Definition
Sorting.hpp:17
dbe::SortObjects::operator()
bool operator()(std::string const &L, std::string const &R)
Definition
Sorting.hpp:19
dbe::inner::configobject::ref_interface::UID
std::string UID() const
Definition
config_reference.hpp:196
Schema.hpp
dbcontroller.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:35
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:59
dunedaq::conffwk::attribute_t::p_type
type_t p_type
Definition
Schema.hpp:62
Generated on
for DUNE-DAQ by
1.17.0