ATLAS Offline Software
Loading...
Searching...
No Matches
L1TopoConfigGlobal.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef __TopoCore__L1TopoConfigGlobal__
6#define __TopoCore__L1TopoConfigGlobal__
7
8#include <vector>
9#include <string>
10
11namespace TXC {
12
14 TopoConfigElement() = default;
15 TopoConfigElement(const std::string & name, const std::string & value) : name(name), value(value) {}
16 std::string name {""};
17 std::string value {""};
18 };
19
21 public:
22
23 // default constructor
25
26 //move constructor to allow faster vector filling
28 L1TopoConfigGlobal& operator=(L1TopoConfigGlobal&& ) noexcept = default;
29
30 // destructor
31 virtual ~L1TopoConfigGlobal();
32
33 // get all TopoConfig elements
35
36 // setters
37 void addTopoConfigElement(const std::string & name, const std::string & value);
39
40 private:
41
42 // TopoConfig elements stored here
43 std::vector<TopoConfigElement> m_topoConfigElements;
44 };
45
46std::ostream & operator<<(std::ostream &, const L1TopoConfigGlobal &);
47
48} // end of namespace TXC
49
50#endif
std::vector< TopoConfigElement > m_topoConfigElements
L1TopoConfigGlobal(L1TopoConfigGlobal &&) noexcept=default
const std::vector< TopoConfigElement > & getTopoConfigs() const
void addTopoConfigElement(const std::string &name, const std::string &value)
std::ostream & operator<<(std::ostream &, const TXC::L1TopoConfigAlg &)
STL namespace.
TopoConfigElement(const std::string &name, const std::string &value)