Sindbad~EG File Manager
�
��g28 � � � d Z ddlZddlZddlZddlZ G d� de� � Z G d� de� � Zdd�Z G d � d
e� � Z G d� dej
� � Z G d
� de� � Z G d� dej
� � Z
G d� dej
� � Z G d� dej
� � Z G d� dej
� � Zd� Z e d� � Z ede� � d� ZdS )z+Utilities for working with pretty-printers.� Nc � � e Zd ZdZdd�Zd� ZdS )�
PrettyPrintera A basic pretty-printer.
Attributes:
name: A unique string among all printers for the context in which
it is defined (objfile, progspace, or global(gdb)), and should
meaningfully describe what can be pretty-printed.
E.g., "StringPiece" or "protobufs".
subprinters: An iterable object with each element having a `name'
attribute, and, potentially, "enabled" attribute.
Or this is None if there are no subprinters.
enabled: A boolean indicating if the printer is enabled.
Subprinters are for situations where "one" pretty-printer is actually a
collection of several printers. E.g., The libstdc++ pretty-printer has
a pretty-printer for each of several different types, based on regexps.
Nc �0 � || _ || _ d| _ d S �NT)�name�subprinters�enabled)�selfr r s �./gdb/printing.py�__init__zPrettyPrinter.__init__0 s � ��� �&�������� c � � t d� � �)NzPrettyPrinter __call__)�NotImplementedError)r
�vals r �__call__zPrettyPrinter.__call__5 s � �!�":�;�;�;r
�N)�__name__�
__module__�__qualname__�__doc__r r � r
r r r sA � � � � � �� �*� � � �
<� <� <� <� <r
r c � � e Zd ZdZd� ZdS )�SubPrettyPrinterz�Baseclass for sub-pretty-printers.
Sub-pretty-printers needn't use this, but it formalizes what's needed.
Attributes:
name: The name of the subprinter.
enabled: A boolean indicating if the subprinter is enabled.
c �"