Horizon
Public Member Functions | Public Attributes | List of all members
pybis.TableSection Class Reference
Inheritance diagram for pybis.TableSection:
pybis.Section pybis.Bracket pybis.Parse pybis.Pin_Domain_EMI pybis.Pin_EMI pybis.Series_Pin_Mapping

Public Member Functions

def __init__ (self, key, pyparser=None, headers=[], optional=[], **kwds)
 
def initial (self, text, comment)
 
def assign_row (self, node, key, row)
 
def parse (self, node, text, comment)
 
def add (self, obj)
 
- Public Member Functions inherited from pybis.Section
def __init__ (self, key, pyparser=None, labeled=False, **kwds)
 
def initial (self, text, comment)
 
def labeled_merge (self, orig, new)
 
- Public Member Functions inherited from pybis.Bracket
def can_parse (self, text)
 
def initial (self, text, comment)
 
- Public Member Functions inherited from pybis.Parse
def __init__ (self, key, pyparser=None, default=None, initvalue=None, data_name=None, list_merge=False, asList=False, asDict=False, required=False)
 
def add (self, obj)
 
def __iadd__ (self, obj)
 
def get_globals (self)
 
def find_parser (self, text)
 
def can_parse (self, text)
 
def initial (self, text, comment)
 
def parse (self, node, text, comment)
 
def pyparse (self, text)
 
def fin (self, node)
 
def pop (self, new, name)
 
def flatten (self, new)
 
def merge (self, orig, new)
 

Public Attributes

 needs_text
 
 parsers
 
 headers
 
 optional
 
- Public Attributes inherited from pybis.Section
 needs_text
 
 merge
 
- Public Attributes inherited from pybis.Parse
 key
 
 flat_key
 
 data_name
 
 default
 
 initvalue
 
 pyparser
 
 list_merge
 
 asList
 
 asDict
 
 children
 
 parent
 
 globals
 
 required
 

Detailed Description

[<section name>] <col1 name> <col2 name> <...>
   <row name> <col1 data> <col2 data> <...>

Constructor & Destructor Documentation

◆ __init__()

def pybis.TableSection.__init__ (   self,
  key,
  pyparser = None,
  labeled = [],
  kwds = [],
**  kwds 
)
If a Section is labeled, the data is an OrderedDict of objects
   indexed by sectionText.

Reimplemented from pybis.Section.

Reimplemented in pybis.Series_Pin_Mapping, pybis.Pin_EMI, and pybis.Pin_Domain_EMI.

Member Function Documentation

◆ add()

def pybis.TableSection.add (   self,
  obj 
)

Reimplemented from pybis.Parse.

◆ assign_row()

def pybis.TableSection.assign_row (   self,
  node,
  key,
  row 
)
For Seires_Pin_Mapping to override.

Reimplemented in pybis.Series_Pin_Mapping.

◆ initial()

def pybis.TableSection.initial (   self,
  text,
  comment 
)
Parse the first line of text and return a Node object.

Reimplemented from pybis.Section.

◆ parse()

def pybis.TableSection.parse (   self,
  node,
  text,
  comment 
)
Parse a subsequent line of text, False means we can't.

Reimplemented from pybis.Parse.


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