Package pyvb :: Module ostype :: Class vbOsTypeParser
[hide private]
[frames] | no frames]

Class vbOsTypeParser

source code

parser.vbParser --+
                  |
                 vbOsTypeParser

A parser for parsing command line output related to OS types.

Instance Methods [hide private]
pyvb.ostype.vbOsTypeParser
__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.ostype.vbOsTypeParser
A new pyvb.ostype.vbOsTypeParser instance.
Overrides: parser.vbParser.__init__

parse(self, file)

source code 

Parse the specified file and return the results.

Parameters:
  • file (File/List) - The file we are parsing.
Returns: List
A list of pyvb.ostype.vbOsType instances.