Package pyvb :: Module hdd :: Class vbHddParser
[hide private]
[frames] | no frames]

Class vbHddParser

source code

parser.vbParser --+
                  |
                 vbHddParser

A parser for parsing the command line output related to HDDs.

Instance Methods [hide private]
pyvb.hdd.vbHddParser
__init__(self)
Constructor.
source code
List
parse(self, file)
Parse the specified file and return a list of results.
source code
 
parseSingle(self, file) 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.hdd.vbHddParser
A new pyvb.hdd.vbHddParser instance.
Overrides: parser.vbParser.__init__

parse(self, file)

source code 

Parse the specified file and return a list of results.

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