Belle II Software development
Basf2VariableObject Class Reference
Inheritance diagram for Basf2VariableObject:
Basf2Object

Public Member Functions

 handle_signature (self, sig, signode)
 

Public Attributes

 options
 

Static Public Attributes

 option_spec = Basf2Object.option_spec.copy() if hasattr(Basf2Object, "option_spec") else {}
 

Detailed Description

Definition at line 123 of file basf2domain.py.

Member Function Documentation

◆ handle_signature()

handle_signature ( self,
sig,
signode )

Definition at line 130 of file basf2domain.py.

130 def handle_signature(self, sig, signode):
131 # Call parent to parse the signature and add the variable name
132 name = super().handle_signature(sig, signode)
133
134 # If :source: option is given, add a [source] link inline
135 if "source" in self.options:
136 uri = self.options["source"]
137 linknode = nodes.reference('', '[source]', refuri=uri, classes=['var-source-link'])
138 signode += linknode
139
140 return name
141
142

Member Data Documentation

◆ option_spec

option_spec = Basf2Object.option_spec.copy() if hasattr(Basf2Object, "option_spec") else {}
static

Definition at line 125 of file basf2domain.py.

◆ options

options

Definition at line 135 of file basf2domain.py.


The documentation for this class was generated from the following file: