ChimeraTK-DeviceAccess 03.20.00
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JsonMapFileParser.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3#pragma once
4
5#include "MetadataCatalogue.h"
7
8#include <fstream>
9
10namespace ChimeraTK::detail {
11
16 class JsonMapFileParser {
17 public:
18 explicit JsonMapFileParser(std::string fileName);
19 ~JsonMapFileParser();
20
28 std::pair<NumericAddressedRegisterCatalogue, MetadataCatalogue> parse(std::ifstream& stream);
29
30 private:
31 struct Imp;
32 std::unique_ptr<Imp> _theImp;
33 };
34
35} // namespace ChimeraTK::detail