Horizon
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
pybis.IBISNode Class Reference
Inheritance diagram for pybis.IBISNode:

Public Member Functions

def __init__ (self, *args, **kwds)
 
def pretty_name (self, name)
 
def __getattribute__ (self, name)
 
def __setattr__ (self, name, value)
 
def __getitem__ (self, name)
 
def __setitem__ (self, name, value)
 
def __delitem__ (self, name)
 
def __contains__ (self, name)
 

Static Public Member Functions

def simple_name (name)
 

Static Public Attributes

 ibis_trans = str.maketrans('+- /', 'pn__')
 

Detailed Description

IBIS parse results object.
   This object typically represents a section with named children.
   Because most IBIS keywords are case insensitive and many even don't
   distinguish between and '_' and ' ', this class allows loose access to
   children. All children are stored by their 'pretty_name', such as
   "Number of Sections". When an access is made, it is translated to a
   'simple_name' by lower() and translating ' ' and '/' to '_', '+' to 'p',
   and '-' to 'n'. The pretty_name is then looked up in an internal dict.
   The pretty_name is then used to find the child.
   In addition to normal dict() accessors, '__getattribute__' can also be
   used. For example, 'obj["Vinl+"] and obj.vinlp both work.

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