Contains the code to parse a JSON based CAPIO-CL configuration file.
More...
#include <parser.h>
|
| static std::filesystem::path | resolve (std::filesystem::path path, const std::filesystem::path &prefix) |
Contains the code to parse a JSON based CAPIO-CL configuration file.
◆ parse()
Build an engine using only CAPIO-CL runtime configuration parameters.
◆ resolve()
| std::filesystem::path capiocl::parser::Parser::resolve |
( |
std::filesystem::path | path, |
|
|
const std::filesystem::path & | prefix ) |
|
staticprotected |
Resolve (if relative) a path to an absolute one using the provided prefix
- Parameters
-
| path | Path to resolve |
| prefix | Prefix |
- Returns
- Absolute path constructed from path
◆ validate_json()
| void capiocl::parser::Parser::validate_json |
( |
const jsoncons::json & | doc, |
|
|
const char * | str_schema ) |
|
static |
Validate a CAPIO-CL configuration file according to the JSON schema of the language
- Parameters
-
| doc | The loaded CAPIO-CL configuration file |
| str_schema | Raw JSON schema to use |
The documentation for this class was generated from the following files:
- /home/runner/work/CAPIO-CL/CAPIO-CL/capiocl/parser.h
- /home/runner/work/CAPIO-CL/CAPIO-CL/src/Parser.cpp