# Each item consist of a header line, followed by a description in HTML.
#
# The header line has the format
-# :name:uses:kind[:dflt[:minv]]; [notes]
+# :name:used_by:types[:dflt[:minv]]; [notes]
# where
# name has the format name1[/namei]*[ notes]
# the note can be used as a comment
#
-# uses is a string consisting of G,C,N,E, indicating that the attribute
+# used_by is a string consisting of G,C,N,E, indicating that the attribute
# applies to graphs, clusters, nodes and edges, respectively.
#
-# kind has the format type[/typei]*
+# types has the format type[/typei]*
# type can be int, bool, string, double, or a special <typename>.
# In the last case, we assume there is an entry for <typename> in
# the types file.
name: str
# use string : this is a string formed of G,N,C,E
used_by: str
- kinds: List[str]
+ types: List[str]
flags: List[str]
html_description: str
defaults: List[str]
if line.startswith(':'):
# This is a header line. Grab out the values.
- # :name:used_by:kind[:dflt[:minv]]; [notes]
+ # :name:used_by:types[:dflt[:minv]]; [notes]
headers, _, flags = line.rpartition(';')
parts = headers.split(':')
attr = Attribute(
name=parts[1],
used_by=parts[2],
- kinds=parts[3].split('/'),
+ types=parts[3].split('/'),
flags=[flag for flag in flags.strip().split(',') if flag],
# Set an empty string html description, ready to append to.
html_description='',
<TD><A ID="{{ attr.a_anchor }}" HREF="#{{ attr.d_anchor }}">{{ attr.name }}</A></TD>
<TD>{{ attr.used_by }}</TD>
<TD>
- {%- for kind in attr.kinds -%}
+ {%- for type in attr.types -%}
{%- if not loop.first -%}
<BR>
{%- endif -%}
- <A HREF="#k:{{kind}}">{{kind}}</A>
+ <A HREF="#k:{{type}}">{{type}}</A>
{%- endfor -%}
</TD>
<TD ALIGN="CENTER">