eisgenerator 1.0.x
translators.h
1//SPDX-License-Identifier: LGPL-3.0-or-later
2/* * eisgenerator - a shared library and application to generate EIS spectra
3 * Copyright (C) 2022-2024 Carl Philipp Klemm <carl@uvos.xyz>
4 *
5 * This file is part of eisgenerator.
6 *
7 * eisgenerator is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * eisgenerator is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with eisgenerator. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22#include <string>
23#include <exception>
24#include <vector>
25
26
27namespace eis
28{
29
44std::string relaxisToEis(const std::string& in, const std::vector<double>& params = std::vector<double>());
45
56std::string eisToRelaxis(const std::string& in);
57
65std::string cdcToEis(std::string in);
66
77std::string eisToCdc(const std::string& in);
78
86std::string madapToEis(const std::string& in, const std::string& parameters = "");
87
98std::string eisToMadap(std::string in);
99
105void purgeEisParamBrackets(std::string& in);
106
109}
std::string eisToCdc(const std::string &in)
Translates a string for this library a Boukamp Circuit Description Code (CDC).
void purgeEisParamBrackets(std::string &in)
Given a eisgenerator model description string, this function will purge all the embedded parameters.
std::string cdcToEis(std::string in)
Translates a Boukamp Circuit Description Code (CDC) string into the format used by this library.
std::string madapToEis(const std::string &in, const std::string &parameters="")
Translates a model description string as used by the MADAP library into the format used by this libra...
std::string eisToRelaxis(const std::string &in)
Translates a string for this library to the format used by RHD instruments RelaxIS.
std::string relaxisToEis(const std::string &in, const std::vector< double > &params=std::vector< double >())
Translates a model string for RHD instruments RelaxIS to the format used by eisgenerator,...
std::string eisToMadap(std::string in)
Translates a string for this library a into the format used by the MADAP library.
eisgenerator Copyright (C) 2021 Carl Klemm
Definition basicmath.h:26