You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
668 B
24 lines
668 B
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
:mod:`haystack.outputs` -- classes that create an output
|
|
==============================================================================
|
|
|
|
"""
|
|
|
|
from haystack import utils
|
|
|
|
class Outputter(object):
|
|
|
|
""" Outputter interface """
|
|
|
|
def __init__(self, memory_handler):
|
|
self._memory_handler = memory_handler
|
|
self._ctypes = self._memory_handler.get_target_platform().get_target_ctypes()
|
|
self._utils = utils.Utils(self._ctypes)
|
|
self._model = self._memory_handler.get_model()
|
|
self._addr_cache = {}
|
|
|
|
def parse(self, obj, prefix='', depth=10):
|
|
raise NotImplementedError('Please define parse')
|