Package pyvb :: Module state :: Class vbStateParser
[hide private]
[frames] | no frames]

Class vbStateParser

source code

parser.vbParser --+
                  |
                 vbStateParser

A parser for parsing machine state command line output.

Instance Methods [hide private]
pyvb.state.vbStateParser
__init__(self)
Constructor.
source code
List
parse(self, file)
Parse the specified file and return the results.
source code

Inherited from parser.vbParser: addAttribute, removeAttribute

Inherited from parser.vbParser (private): _parse, _parseAdditional

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor. Initialize the found attributes dictionary as well as the attributes we are looking for.

Returns: pyvb.state.vbStateParser
A new pyvb.state.vbStateParser instance.
Overrides: parser.vbParser.__init__

parse(self, file)

source code 

Parse the specified file and return the results.

Parameters:
  • file (File/List) - The file to parse.
Returns: List
A list of pyvb.state.vbState instances.