MCPcopy Create free account
hub / github.com/docling-project/docling-parse / read_input

Function read_input

app/parse_fonts.cpp:16–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <parse.h>
15
16nlohmann::json read_input(std::string filename)
17{
18 nlohmann::json input;
19
20 std::ifstream ifs(filename);
21
22 if(ifs)
23 {
24 ifs >> input;
25
26 LOG_S(INFO) << "input-filename: " << filename;
27 LOG_S(INFO) << "input: " << input.dump(2);
28 }
29 else
30 {
31 LOG_S(FATAL) << "input-filename: " << filename << " does not exists";
32 }
33
34 return input;
35}
36
37int main(int argc, char *argv[])
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected