MCPcopy Create free account
hub / github.com/OrcaSlicer/OrcaSlicer / LoadFile

Method LoadFile

src/slic3r/GUI/WebGuideDialog.cpp:1548–1564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1546}
1547
1548bool 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
1566int GuideFrame::DownloadPlugin()
1567{

Callers 11

PrinterPickerMethod · 0.80
load_from_pngMethod · 0.80
load_pngMethod · 0.80
load_thumbnail_dataMethod · 0.80
on_showMethod · 0.80
update_subtaskMethod · 0.80
create_oss_thumbnailMethod · 0.80
SyncAmsInfoDialogMethod · 0.80
load_imageFunction · 0.80
serialize_xmlFunction · 0.80
deserialize_xmlFunction · 0.80

Calls 3

formatFunction · 0.70
strMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected