OpenMS
Loading...
Searching...
No Matches
ParamJSONFile.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Simon Gene Gottlieb $
7// --------------------------------------------------------------------------
8
9#pragma once
10
13
14namespace OpenMS
15{
16
59 class OPENMS_DLLAPI ParamJSONFile
60 {
61 public:
66 bool flatHierarchy{};
67
78 static bool load(const std::string& filename, Param& param);
79
87 void store(const std::string& filename, const Param& param, const ToolInfo& tool_info) const;
88 void writeToStream(std::ostream* os_ptr, const Param& param) const;
89 };
90} // namespace OpenMS
Load from JSON (in a Common Workflow Language (CWL) compatible way) into the Param class.
Definition ParamJSONFile.h:60
static bool load(const std::string &filename, Param &param)
Read JSON file that is formatted in CWL conforming style.
void writeToStream(std::ostream *os_ptr, const Param &param) const
void store(const std::string &filename, const Param &param, const ToolInfo &tool_info) const
Write Json file with set values.
Management and storage of parameters / INI files.
Definition Param.h:46
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Tool metadata shared by parameter-file serializers.
Definition ToolInfo.h:20