DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
Sorting.hpp
Go to the documentation of this file.
1
#ifndef SORTING_H
2
#define SORTING_H
3
4
#include "
conffwk/Schema.hpp
"
5
#include "
dbe/dbcontroller.hpp
"
6
#include <string>
7
8
namespace
dbe
9
{
10
11
class
SortObjects
12
{
13
public
:
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
24
bool
operator ()
(
const
dunedaq::conffwk::attribute_t
& L,
const
dunedaq::conffwk::attribute_t
& R )
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
dbe::SortObjects
Definition
Sorting.hpp:12
dbe::SortObjects::operator()
bool operator()(std::string const &L, std::string const &R)
Definition
Sorting.hpp:14
dbe::inner::configobject::ref_interface::UID
std::string UID() const
Definition
config_reference.hpp:191
dbe::inner::configobject::tref
Definition
config_reference.hpp:452
Schema.hpp
dbcontroller.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:13
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:52
dunedaq::conffwk::attribute_t::p_type
type_t p_type
Definition
Schema.hpp:55
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0