OpenMS
|
Load from JSON (in a Common Workflow Language (CWL) compatible way) into the Param class. More...
#include <OpenMS/FORMAT/ParamCWLFile.h>
Static Public Member Functions | |
static bool | load (const std::string &filename, Param ¶m) |
Read JSON file that is formatted in CWL conforming style. More... | |
Load from JSON (in a Common Workflow Language (CWL) compatible way) into the Param class.
The JSON file must contain one top level mapping of param value names to actual values. These values can be one of the following types:
param value names match the command line option without the leading '-'. Optionally the ':' can be replaced with a double underscore "__".
Same file with "__" instead of ':' as the section separator.
|
static |
Read JSON file that is formatted in CWL conforming style.
filename | The file from where to read the Param object. |
param | A param object with pre-filled defaults, which are updated by the values in the JSON file |
Exception::FileNotFound | is thrown if the file could not be found |
Exception::ParseError | is thrown if an error occurs during parsing |