mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-27 20:14:51 +02:00
Convert to using ABCMeta to get abstract class failures immediately rather than on method use.
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
from abc import abstractmethod, ABCMeta
|
||||
from volatility.framework import validity
|
||||
|
||||
__author__ = 'mike'
|
||||
|
||||
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
|
||||
|
||||
@staticmethod
|
||||
def get_render_options():
|
||||
@abstractmethod
|
||||
def get_render_options(self):
|
||||
"""Returns a list of rendering options"""
|
||||
raise NotImplementedError("Abstract method get_render_options not implemented.")
|
||||
|
||||
@abstractmethod
|
||||
def render(self, grid):
|
||||
"""Takes a grid object and renders it based on the object's preferences"""
|
||||
raise NotImplementedError("Abstract method render not implemented.")
|
||||
|
||||
Reference in New Issue
Block a user