OpenMS
ParamJSONFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Authors: Simon Gene Gottlieb $
6 // --------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace OpenMS
13 {
14 
57  class OPENMS_DLLAPI ParamJSONFile
58  {
59  public:
64  bool flatHierarchy{};
65 
76  static bool load(const std::string& filename, Param& param);
77 
85  void store(const std::string& filename, const Param& param, const ToolInfo& tool_info) const;
86  void writeToStream(std::ostream* os_ptr, const Param& param) const;
87  };
88 } // namespace OpenMS
Load from JSON (in a Common Workflow Language (CWL) compatible way) into the Param class.
Definition: ParamJSONFile.h:58
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:44
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
A struct to pass information about the tool as one parameter.
Definition: ParamCTDFile.h:21