DSMBuilder¶
- class dsviper.DSMBuilder¶
Bases:
objectA class used to assemble a collection of DSM Definitions from various sources.
- append(source: str, content: str) None¶
Append a content from a source.
- static assemble(path: str) DSMBuilder¶
Return a DSMBuilder with the concatenated content of the DSM files found at the path where the path is a file or a folder.
- content() str¶
Return the content.
- line_offset() int¶
Return the line offset.
- parse() tuple[DSMParseReport, DSMDefinitions | None, DefinitionsConst | None]¶
Parse and return (DSMParseReport, DSMDefinitions, Definitions).
- part(line) DSMBuilderPart | None¶
Return the part associated with the line number.
- parts() list[DSMBuilderPart]¶
Return the list of parts.