Public Member Functions | |
def | __init__ |
def | find_end |
def | find_rep_end |
def | find_var_end |
def | substitute |
def | write |
Public Attributes | |
checkmissing | |
end_rep_token | |
end_var_token | |
start_rep_token | |
start_var_token | |
trim_leading_lf |
simple templating system
Definition at line 11 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.__init__ | ( | self, | |
start_var_token = "${" , |
|||
end_var_token = "}" , |
|||
start_rep_token = "${{" , |
|||
end_rep_token = "}}" , |
|||
trim_leading_lf = True , |
|||
checkmissing = True |
|||
) |
Definition at line 13 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.find_end | ( | self, | |
text, | |||
start_token, | |||
end_token, | |||
ignore_end_token = None |
|||
) |
find the of a token. Returns the offset in the string immediately after the matching end_token
Definition at line 27 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.find_rep_end | ( | self, | |
text | |||
) |
find the of a repitition
Definition at line 57 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.find_var_end | ( | self, | |
text | |||
) |
find the of a variable
Definition at line 53 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.substitute | ( | self, | |
text, | |||
subvars = {} , |
|||
trim_leading_lf = None , |
|||
checkmissing = None |
|||
) |
substitute variables in a string
Definition at line 61 of file mavtemplate.py.
def pymavlink.generator.mavtemplate.MAVTemplate.write | ( | self, | |
file, | |||
text, | |||
subvars = {} , |
|||
trim_leading_lf = True |
|||
) |
write to a file with variable substitution
Definition at line 129 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.
Definition at line 13 of file mavtemplate.py.