DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_object_key.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/config_object_key.hpp to include/dbe/config_object_key.hpp).
5
6/*
7 * config_object_key.hpp
8 *
9 * Created on: Feb 4, 2016
10 * Author: Leonidas Georgopoulos
11 */
12
13#ifndef DBE_CONFIG_OBJECT_KEY_HPP_
14#define DBE_CONFIG_OBJECT_KEY_HPP_
15
16#include <string>
17
18namespace dbe {
19
23template<typename S = std::string>
25{
26public:
29
30 config_object_key(S const& oname, S const& cname)
31 : this_name(oname)
32 , this_class(cname)
33 {
34 }
35};
37
38//------------------------------------------------------------------------------------------
46template<typename T>
47inline bool
49{
50 return left.this_name == right.this_name and left.this_class == right.this_class;
51}
52//------------------------------------------------------------------------------------------
53
54} // namespace dbe
55
56#endif /* DBE_CONFIG_OBJECT_KEY_HPP_ */
config_object_key(S const &oname, S const &cname)
Include QT Headers.
config_object_key cokey
bool operator==(config_object_key< T > const &left, config_object_key< T > const &right)