MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / writePanelXml

Method writePanelXml

Source/Core/CtrlrPanel/CtrlrPanelFileOperations.cpp:596–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596void CtrlrPanel::writePanelXml(OutputStream &outputStream, CtrlrPanel *panel, const bool compressPanel)
597{
598 if (panel == nullptr)
599 return;
600
601 panel->sync();
602
603 ScopedPointer <XmlElement> panelXml (panel->getPanelTree().createXml().release());
604
605 if (compressPanel && panelXml)
606 {
607 String xml = panelXml->createDocument("");
608 {
609 GZIPCompressorOutputStream gzipOutputStream(&outputStream, 9, false);
610 gzipOutputStream.writeString (xml);
611 }
612 }
613 if (!compressPanel && panelXml)
614 {
615 panelXml->writeToStream (outputStream,"");
616 }
617}
618
619File CtrlrPanel::getLuaMethodSourceFile(const ValueTree *method)
620{

Callers

nothing calls this directly

Calls 6

syncMethod · 0.80
createDocumentMethod · 0.80
releaseMethod · 0.45
createXmlMethod · 0.45
writeStringMethod · 0.45
writeToStreamMethod · 0.45

Tested by

no test coverage detected