SpecParser
dcmspec.spec_parser.SpecParser
Bases: ABC
Abstract base class for DICOM specification parsers.
Handles DICOM specifications in various in-memory formats (e.g., DOM for XHTML/XML, CSV).
Subclasses must implement the parse
method to parse the specification content and build a structured model.
Source code in src/dcmspec/spec_parser.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
__init__(logger=None)
Initialize the DICOM Specification parser with an optional logger.
PARAMETER | DESCRIPTION |
---|---|
logger
|
Logger instance to use. If None, a default logger is created.
TYPE:
|
Source code in src/dcmspec/spec_parser.py
18 19 20 21 22 23 24 25 26 27 |
|
parse(*args, **kwargs)
abstractmethod
Parse the DICOM specification and return metadata and attribute tree nodes.
RETURNS | DESCRIPTION |
---|---|
Tuple[Node, Node]
|
Tuple[Node, Node]: The metadata node and the content node. |
Source code in src/dcmspec/spec_parser.py
29 30 31 32 33 34 35 36 37 |
|