ATLAS Offline Software
Loading...
Searching...
No Matches
HanRuntimeConfigSingleton.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef dqiHanRuntimeConfigSingleton_h
6#define dqiHanRuntimeConfigSingleton_h
7
8#include <string>
9#include <cstdint>
10
12
13namespace dqi {
15 {
16 public:
18
20 void setPath( const std::string& path ) { m_path = path; parsePathRunNumber(); }
21 constexpr const std::string& getPath() const { return m_path; }
22 constexpr bool pathIsRunDirectory() const { return m_runNumber > 0; }
23 constexpr uint32_t getPathRunNumber() const { return m_runNumber; }
24
25 private:
32
34 void parsePathRunNumber();
35
36 std::string m_path;
37 uint32_t m_runNumber = 0;
38 };
39}
40
41#endif //dqiHanRuntimeConfigSingleton_h
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
constexpr const std::string & getPath() const
HanRuntimeConfigSingleton & operator=(HanRuntimeConfigSingleton &&)=delete
constexpr uint32_t getPathRunNumber() const
HanRuntimeConfigSingleton & operator=(const HanRuntimeConfigSingleton &)=delete
static HanRuntimeConfigSingleton & getInstance()
ATLAS_NOT_THREAD_SAFE void parsePathRunNumber()
ATLAS_NOT_THREAD_SAFE void setPath(const std::string &path)
HanRuntimeConfigSingleton(const HanRuntimeConfigSingleton &)=delete
HanRuntimeConfigSingleton(HanRuntimeConfigSingleton &&)=delete