
import re

import makerbot_driver
from .LineTransformProcessor import LineTransformProcessor


class SetTemperatureProcessor(LineTransformProcessor):

    def __init__(self):
        super(SetTemperatureProcessor, self).__init__()
        self.is_bundleable = True
        self.code_map = {
            re.compile("[^(;]*[mM]104"): self._transform_m104,
        }

    def _transform_m104(self, match):
        return ""

        
class GetTemperatureProcessor(LineTransformProcessor):

    def __init__(self):
        super(GetTemperatureProcessor, self).__init__()
        self.is_bundleable = True
        self.code_map = {
            re.compile("[^(;]*[mM]105"): self._transform_m105,
        }

    def _transform_m105(self, match):
        return ""
