blink1-control
blink1_control::config::ConfigParser Class Reference

#include <ConfigParser.hpp>

Static Public Member Functions

static std::optional< ConfigparseConfig (std::istream &instream)
 

Detailed Description

Parses a json config file and turns it into a Config object

Contains a single public function - parseConfig(std::istream&)

Member Function Documentation

◆ parseConfig()

static std::optional<Config> blink1_control::config::ConfigParser::parseConfig ( std::istream &  instream)
static

Parses data in the istream as json data and creates a Config object from it

Parameters
instreamInput stream containing the configuration data as a json string
Returns
The parsed Config if it could be parsed, std::nullopt otherwise

The documentation for this class was generated from the following file: