Add additional docstrings and refactor/rearrange the entire codebase.

This commit is contained in:
Mike Auty
2014-06-11 01:35:50 +01:00
parent a97bd19988
commit 39c0b38f09
13 changed files with 6049 additions and 5450 deletions
+4 -2
View File
@@ -1,15 +1,17 @@
from abc import abstractmethod, ABCMeta
from volatility.framework import validity
__author__ = 'mike'
class Renderer(validity.ValidityRoutines):
class Renderer(validity.ValidityRoutines):
__metaclass__ = ABCMeta
def __init__(self, options):
"""Accepts an options object to configure the renderers"""
#FIXME: Once the config option objects are in place, put the type_check in place
# FIXME: Once the config option objects are in place, put the type_check in place
@abstractmethod
def get_render_options(self):
+2 -2
View File
@@ -52,7 +52,7 @@ class SymbolTableInterface(validity.ValidityRoutines):
"""Returns None or a symbol_space for handling space specific native types"""
return self._native_structures
### Functions for overriding classes
# ## Functions for overriding classes
def set_structure_class(self, name, clazz):
"""Overrides the object class for a specific structure symbol
@@ -74,7 +74,7 @@ class SymbolTableInterface(validity.ValidityRoutines):
#
# def __len__(self):
# """Returns the number of items in the symbol list"""
# return len(self.structures)
# return len(self.structures)
#
# def __getitem__(self, key):
# """Resolves a symbol name into an object template