MCPcopy Create free account
hub / github.com/SmingHub/Sming / SectionTemplate

Method SectionTemplate

Sming/Core/Data/Stream/SectionTemplate.cpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246} // namespace
247
248SectionTemplate::SectionTemplate(IDataSourceStream* source, uint8_t maxSections)
249 : TemplateStream(&sectionStream, false), sectionStream(source, maxSections)
250{
251 sectionStream.onNextSection([this]() { seekFrom(0, SeekOrigin::Start); });
252 sectionStream.onNextRecord(SectionStream::NextRecord(&SectionTemplate::nextRecord, this));
253 // Level 0 is always enabled
254 conditionalFlags[0] = true;
255}
256
257String SectionTemplate::openTag(bool enable)
258{

Callers

nothing calls this directly

Calls 2

onNextSectionMethod · 0.80
onNextRecordMethod · 0.45

Tested by

no test coverage detected