From 88afd32158d2bfa4fd585a8d9dbe3af7aaa80399 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 2 Jan 2015 01:52:00 +0000 Subject: [PATCH] Create an initial divide between object_information and template_information. --- volatility/framework/interfaces/objects.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/volatility/framework/interfaces/objects.py b/volatility/framework/interfaces/objects.py index ddbed75c4..b47527309 100644 --- a/volatility/framework/interfaces/objects.py +++ b/volatility/framework/interfaces/objects.py @@ -11,6 +11,21 @@ from volatility.framework import validity from volatility.framework.interfaces import context as context_module +class TemplateInformation(validity.ValidityRoutines): + def __init__(self, structure_name, size, **additional): + self._structure_name = structure_name + self._size = size + self._additional = additional + + +class ObjectInformation(validity.ValidityRoutines): + def __init__(self, layer_name, offset, member_name = None, parent = None): + self._layer_name = layer_name + self._offset = offset + self._member_name = member_name + self._parent = parent + + class ObjectInterface(validity.ValidityRoutines, metaclass = ABCMeta): """ A base object required to be the ancestor of every object used in volatility """