Namable¶
from acron.core import Namable
- class Namable¶
Bases:
Bases:
MemoryBaseA base class for all things which can have a name. The name is either empty or nonempty, but it is never NULL.
Inheritance diagram
digraph inheritanceca82a8bd64 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; }- __init__()¶
- clear_name()¶
Resets the Namable’s name to empty.
- static get_class_type()¶
- get_name()¶
- has_name()¶
Returns true if the Namable has a nonempty name set, false if the name is empty.
- output()¶
In the absence of any definition to the contrary, outputting a Namable will write out its name.
Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
- set_name()¶