Public Member Functions | Public Attributes
pymavlink.generator.mavtemplate.MAVTemplate Class Reference

List of all members.

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

Detailed Description

simple templating system

Definition at line 11 of file mavtemplate.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

find the of a repitition

Definition at line 57 of file mavtemplate.py.

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.


Member Data Documentation

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.


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


mavlink
Author(s): Lorenz Meier
autogenerated on Sun May 22 2016 04:05:44