pyregfi
|
A special purpose iterator for registry hives. More...
Public Member Functions | |
def | down (self, subkey_name=None) |
Descends the iterator to a subkey. More... | |
def | up (self) |
Causes the iterator to ascend to the current Key's parent. More... | |
def | first_subkey (self) |
Selects first subkey of current key. More... | |
def | first_value (self) |
Selects first value of current Key. More... | |
def | next_subkey (self) |
Selects the next subkey in the current Key's list. More... | |
def | next_value (self) |
Selects the next value in the current Key's list. More... | |
def | find_subkey (self, name) |
Selects the first subkey which has the specified name. More... | |
def | find_value (self, name) |
Selects the first value which has the specified name. More... | |
def | current_subkey (self) |
Retrieves the currently selected subkey. More... | |
def | current_value (self) |
Retrieves the currently selected value. More... | |
def | current_key (self) |
Retrieves the current key. More... | |
def | descend (self, path) |
Traverse downward multiple levels. More... | |
def | ancestry (self) |
Obtains a list of the current key's ancestry. More... | |
def | current_path (self) |
Obtains the current path of the iterator. More... | |
A special purpose iterator for registry hives.
Iterating over an object of this type causes all keys in a specific hive subtree to be returned in a depth-first manner. These iterators are typically created using the Hive.subtree() function on a Hive object.
HiveIterators can also be used to manually traverse up and down a registry hive as they retain information about the current position in the hive, along with which iteration state for subkeys and values for every parent key. See the up and down methods for more information.
def pyregfi.HiveIterator.down | ( | self, | |
subkey_name = None |
|||
) |
Descends the iterator to a subkey.
Descends the iterator one level to the current subkey, or a subkey specified by name.
subkey_name | If specified, locates specified subkey by name (via find_subkey()) and descends to it. |
References pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
def pyregfi.HiveIterator.up | ( | self | ) |
Causes the iterator to ascend to the current Key's parent.
References pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
def pyregfi.HiveIterator.first_subkey | ( | self | ) |
Selects first subkey of current key.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_subkey().
def pyregfi.HiveIterator.first_value | ( | self | ) |
Selects first value of current Key.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_value().
def pyregfi.HiveIterator.next_subkey | ( | self | ) |
Selects the next subkey in the current Key's list.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_subkey().
def pyregfi.HiveIterator.next_value | ( | self | ) |
Selects the next value in the current Key's list.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_value().
def pyregfi.HiveIterator.find_subkey | ( | self, | |
name | |||
) |
Selects the first subkey which has the specified name.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_subkey().
def pyregfi.HiveIterator.find_value | ( | self, | |
name | |||
) |
Selects the first value which has the specified name.
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.HiveIterator.current_value().
def pyregfi.HiveIterator.current_subkey | ( | self | ) |
Retrieves the currently selected subkey.
References pyregfi._StructureWrapper._hive, pyregfi._GenericList._hive, pyregfi.HiveIterator._hive, pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
Referenced by pyregfi.HiveIterator.find_subkey(), pyregfi.HiveIterator.first_subkey(), and pyregfi.HiveIterator.next_subkey().
def pyregfi.HiveIterator.current_value | ( | self | ) |
Retrieves the currently selected value.
References pyregfi._StructureWrapper._hive, pyregfi._GenericList._hive, pyregfi.HiveIterator._hive, pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
Referenced by pyregfi.HiveIterator.find_value(), pyregfi.HiveIterator.first_value(), and pyregfi.HiveIterator.next_value().
def pyregfi.HiveIterator.current_key | ( | self | ) |
Retrieves the current key.
References pyregfi._StructureWrapper._hive, pyregfi._GenericList._hive, pyregfi.HiveIterator._hive, pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
def pyregfi.HiveIterator.descend | ( | self, | |
path | |||
) |
Traverse downward multiple levels.
This is more efficient than calling down() multiple times
path | A list of Key names which represent the path to descend |
Exception | If path could not be located |
References pyregfi.HiveIterator._iter, pyregfi.HiveIterator._lock, and pyregfi.getLogMessages().
def pyregfi.HiveIterator.ancestry | ( | self | ) |
Obtains a list of the current key's ancestry.
References pyregfi._StructureWrapper._hive, pyregfi._GenericList._hive, pyregfi.HiveIterator._hive, pyregfi.HiveIterator._iter, and pyregfi.HiveIterator._lock.
Referenced by pyregfi.HiveIterator.current_path().
def pyregfi.HiveIterator.current_path | ( | self | ) |
Obtains the current path of the iterator.
References pyregfi.HiveIterator.ancestry().