Public Member Functions | Public Attributes | Private Member Functions | List of all members
OpenRTM_aist.utils.rtc-template.ezt.Template Class Reference

Public Member Functions

def __init__ (self, fname=None, compress_whitespace=1)
 
def generate (self, fp, data)
 
def parse (self, text_or_reader)
 
def parse_file (self, fname)
 

Public Attributes

 compress_whitespace
 
 program
 

Private Member Functions

def _cmd_for (self, args, fp, ctx)
 
def _cmd_format (self, valref, args, fp, ctx)
 
def _cmd_if_any (self, args, fp, ctx)
 
def _cmd_if_index (self, args, fp, ctx)
 
def _cmd_include (self, valref, reader, fp, ctx)
 
def _cmd_is (self, args, fp, ctx)
 
def _cmd_print (self, valref, fp, ctx)
 
def _do_if (self, value, t_section, f_section, fp, ctx)
 
def _execute (self, program, fp, ctx)
 
def _parse (self, reader, for_names=None, file_args=())
 

Detailed Description

Definition at line 209 of file ezt.py.

Constructor & Destructor Documentation

def OpenRTM_aist.utils.rtc-template.ezt.Template.__init__ (   self,
  fname = None,
  compress_whitespace = 1 
)

Definition at line 211 of file ezt.py.

Member Function Documentation

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_for (   self,
  args,
  fp,
  ctx 
)
private

Definition at line 429 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_format (   self,
  valref,
  args,
  fp,
  ctx 
)
private

Definition at line 368 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_if_any (   self,
  args,
  fp,
  ctx 
)
private

Definition at line 387 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_if_index (   self,
  args,
  fp,
  ctx 
)
private

Definition at line 397 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_include (   self,
  valref,
  reader,
  fp,
  ctx 
)
private

Definition at line 381 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_is (   self,
  args,
  fp,
  ctx 
)
private

Definition at line 412 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_print (   self,
  valref,
  fp,
  ctx 
)
private

Definition at line 355 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._do_if (   self,
  value,
  t_section,
  f_section,
  fp,
  ctx 
)
private

Definition at line 418 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._execute (   self,
  program,
  fp,
  ctx 
)
private
This private helper function takes a 'program' sequence as created
by the method '_parse' and executes it step by step.  strings are written
to the file object 'fp' and functions are called.

Definition at line 344 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template._parse (   self,
  reader,
  for_names = None,
  file_args = () 
)
private
text -> string object containing the HTML template.

This is a private helper function doing the real work for method parse.
It returns the parsed template as a 'program'.  This program is a sequence
made out of strings or (function, argument) 2-tuples.

Note: comment directives [# ...] are automatically dropped by _re_parse.

Definition at line 238 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template.generate (   self,
  fp,
  data 
)

Definition at line 232 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template.parse (   self,
  text_or_reader 
)
Parse the template specified by text_or_reader.

The argument should be a string containing the template, or it should
specify a subclass of ezt.Reader which can read templates.

Definition at line 221 of file ezt.py.

def OpenRTM_aist.utils.rtc-template.ezt.Template.parse_file (   self,
  fname 
)

Definition at line 216 of file ezt.py.

Member Data Documentation

OpenRTM_aist.utils.rtc-template.ezt.Template.compress_whitespace

Definition at line 212 of file ezt.py.

OpenRTM_aist.utils.rtc-template.ezt.Template.program

Definition at line 219 of file ezt.py.


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


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:38