ORE Studio 0.0.4
Loading...
Searching...
No Matches
exporter.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA.
19 *
20 */
21#ifndef ORES_RISK_OREXML_EXPORTER_HPP
22#define ORES_RISK_OREXML_EXPORTER_HPP
23
24#include <vector>
25#include "ores.utility/log/make_logger.hpp"
26#include "ores.risk/domain/currency.hpp"
27
28namespace ores::risk::orexml {
29
33class exporter {
34private:
35 inline static std::string_view logger_name = "ores.risk.orexml.exporter";
36
37 static auto& lg() {
38 using namespace ores::utility::log;
39 static auto instance = make_logger(logger_name);
40 return instance;
41 }
42
43public:
44 static std::string
45 export_currency_config(const std::vector<domain::currency>& v);
46};
47
48}
49
50#endif
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Exports domain objects from their ORE XML representation.
Definition exporter.hpp:33