mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-08-02 03:58:12 -04:00
19 lines
400 B
Python
19 lines
400 B
Python
from abc import ABCMeta, abstractmethod
|
|
from typing import List
|
|
|
|
from win2xcur.cursor import CursorFrame
|
|
|
|
|
|
class BaseParser(metaclass=ABCMeta):
|
|
blob: bytes
|
|
frames: List[CursorFrame]
|
|
|
|
@abstractmethod
|
|
def __init__(self, blob: bytes) -> None:
|
|
self.blob = blob
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def can_parse(cls, blob: bytes) -> bool:
|
|
raise NotImplementedError()
|