Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
NodeExtractor Namespace Reference

Functions

IR::PageMetadata extractPageMetadata (const PageNode *pn)

Function Documentation

◆ extractPageMetadata()

IR::PageMetadata NodeExtractor::extractPageMetadata ( const PageNode * pn)

Extract page-level metadata from a PageNode into a value-type struct.

This function reads classification, identity, brief, and body fields from the given PageNode and returns them as an IR::PageMetadata value. Body content is populated via ContentBuilder, which transforms the atom chain into structured content blocks. Format-conditional atoms are skipped unconditionally since the template generator builds a format-agnostic IR.

The caller (TemplateGenerator) invokes this before passing the result to IR::Builder, ensuring Builder never includes PageNode or other Node subclass headers.

Definition at line 31 of file nodeextractor.cpp.

References IR::PageMetadata::access, Node< _Tp >::access(), Node< _Tp >::doc(), Text::firstAtom(), IR::PageMetadata::genus, Node< _Tp >::genus(), IR::PageMetadata::nodeType, Node< _Tp >::nodeType(), IR::PageMetadata::status, and Node< _Tp >::status().

Referenced by TemplateGenerator::generatePageNode().

Here is the call graph for this function:
Here is the caller graph for this function: