2018-05-20 22:03:57 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2020-05-18 01:35:53 +02:00
|
|
|
# Copyright 2018-2020 Mike Fährmann
|
2018-05-20 22:03:57 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
|
|
|
|
"""Common classes and constants used by postprocessor modules."""
|
|
|
|
|
|
|
|
|
|
|
|
class PostProcessor():
|
2018-06-08 17:39:02 +02:00
|
|
|
"""Base class for postprocessors"""
|
2018-05-20 22:03:57 +02:00
|
|
|
|
2020-05-18 01:35:53 +02:00
|
|
|
def __init__(self, job):
|
2019-10-06 23:12:51 +02:00
|
|
|
name = self.__class__.__name__[:-2].lower()
|
2020-05-18 01:35:53 +02:00
|
|
|
self.log = job.get_logger("postprocessor." + name)
|
2018-10-18 22:32:03 +02:00
|
|
|
|
2019-08-15 13:31:04 +02:00
|
|
|
def __repr__(self):
|
|
|
|
return self.__class__.__name__
|