HWRF  trunk@4391
Public Member Functions | List of all members
hwrf.config.ConfFormatter Class Reference

Internal class that implements HWRFConfig.strinterp() More...

Detailed Description

Internal class that implements HWRFConfig.strinterp()

This class is part of the implementation of HWRFConfig: it is used to interpolate strings using a syntax similar to string.format(), but it allows recursion in the config sections, and it also is able to use the [config] and [dir] sections as defaults for variables not found in the current section.

Definition at line 66 of file config.py.

Inheritance diagram for hwrf.config.ConfFormatter:
hwrf.config.ConfTimeFormatter

Public Member Functions

def __init__ (self)
 Constructor for ConfFormatter.
 
def get_value (self, key, args, kwargs)
 Return the value of variable, or a substitution. More...
 

Member Function Documentation

def hwrf.config.ConfFormatter.get_value (   self,
  key,
  args,
  kwargs 
)

Return the value of variable, or a substitution.

Never call this function. It is called automatically by str.format. It provides the value of an variable, or a string substitution.

Parameters
keythe string key being analyzed by str.format()
argsthe indexed arguments to str.format()
kwargsthe keyword arguments to str.format()

Definition at line 77 of file config.py.


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