ATLAS Offline Software
Loading...
Searching...
No Matches
L1Board.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCONFDATA_L1BOARD_H
6#define TRIGCONFDATA_L1BOARD_H
7
10
11#include <vector>
12#include <string>
13
14namespace TrigConf {
15
21
23 class L1Board final : public DataStructure {
24 public:
25
27
29 L1Board();
30
31 L1Board(const L1Board &) = delete;
32 L1Board& operator=(const L1Board&) = delete;
33 L1Board(L1Board&&) = delete;
34
38 L1Board(const std::string & boardName, const ptree & data);
39
41 virtual ~L1Board() override = default;
42
43 virtual std::string className() const override;
44
46 std::size_t size() const;
47
48 std::string type() const;
49
50 BoardType boardType() const;
51
53 bool legacy() const;
54
56 const std::vector<std::string> & connectorNames() const;
57
58 private:
59
61 virtual void update() override;
62
64 bool m_legacy{};
65 std::vector<std::string> m_connectorNames;
66 };
67
68}
69
70#endif
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
boost::property_tree::ptree ptree
virtual void update() override
Update the internal members.
Definition L1Board.cxx:29
L1Board(L1Board &&)=delete
L1Board()
Constructor.
Definition L1Board.cxx:13
bool legacy() const
Accessor to the connector type.
Definition L1Board.cxx:87
std::string type() const
Definition L1Board.cxx:70
BoardType boardType() const
Definition L1Board.cxx:64
L1Board & operator=(const L1Board &)=delete
L1Board(const L1Board &)=delete
virtual std::string className() const override
A string that is the name of the class.
Definition L1Board.cxx:24
std::size_t size() const
Accessor to the number of connectors.
Definition L1Board.cxx:58
virtual ~L1Board() override=default
Destructor.
std::vector< std::string > m_connectorNames
Definition L1Board.h:65
const std::vector< std::string > & connectorNames() const
Accessor to connector names.
Definition L1Board.cxx:93
BoardType m_boardType
Definition L1Board.h:63
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22