| 1546 | } |
| 1547 | |
| 1548 | bool GuideFrame::LoadFile(std::string jPath, std::string &sContent) |
| 1549 | { |
| 1550 | try { |
| 1551 | boost::nowide::ifstream t(jPath); |
| 1552 | std::stringstream buffer; |
| 1553 | buffer << t.rdbuf(); |
| 1554 | sContent=buffer.str(); |
| 1555 | BOOST_LOG_TRIVIAL(trace) << __FUNCTION__ << boost::format(", load %1% into buffer")% jPath; |
| 1556 | } |
| 1557 | catch (std::exception &e) |
| 1558 | { |
| 1559 | BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << ", got exception: "<<e.what(); |
| 1560 | return false; |
| 1561 | } |
| 1562 | |
| 1563 | return true; |
| 1564 | } |
| 1565 | |
| 1566 | int GuideFrame::DownloadPlugin() |
| 1567 | { |
no test coverage detected