Lines Matching full:vpd
17 * It recieves path of the VPD file(mandatory) and path to a config
21 * Steps to get parsed VPD.
22 * - Pass VPD file path and config file (if applicable).
23 * - Read VPD file to vector.
25 * parser object to get the Parsed VPD map.
26 * - If VPD format is other than the existing formats. Follow the steps
40 CLI::App app{"VPD-parser-app - APP to parse VPD. "}; in main()
42 app.add_option("-f, --file", vpdFilePath, "VPD file path")->required(); in main()
50 vpd::logging::logMessage("VPD file path recieved" + vpdFilePath); in main()
52 // VPD file path is a mandatory parameter to execute any parser. in main()
55 throw std::runtime_error("Empty VPD file path"); in main()
59 vpd::types::VPDMapVariant parsedVpdDataMap; in main()
61 // Below are two different ways of parsing the VPD. in main()
64 vpd::logging::logMessage( in main()
67 std::shared_ptr<vpd::Worker> objWorker = in main()
68 std::make_shared<vpd::Worker>(configFilePath); in main()
78 std::shared_ptr<vpd::Parser> vpdParser = in main()
79 std::make_shared<vpd::Parser>(vpdFilePath, json); in main()
85 // eg: for IPZ VPD format in main()
87 std::get_if<vpd::types::IPZVpdMap>(&parsedVpdDataMap)) in main()
91 // implement code that needs to handle parsed IPZ VPD. in main()
96 vpd::logging::logMessage(ex.what()); in main()