Skip to content
Snippets Groups Projects

#38 #39 Eksporter og importer SOI til/fra fil

Merged Anders H. Rebner requested to merge serialisert-soi into master
Compare and
15 files
+ 611
74
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -5,6 +5,12 @@ from abc import ABC
class ModuleBase(ABC):
"""Interface for SOI-modules."""
type = None
def __init__(self):
if self.type is None:
raise NotImplementedError
def get_size(self):
"""Abstract method, should be implemented by derived class."""
raise NotImplementedError
@@ -17,6 +23,10 @@ class ModuleBase(ABC):
"""Abstract method, should be implemented by derived class."""
raise NotImplementedError
def get_data(self):
"""Abstract method, should be implemented by derived class."""
raise NotImplementedError
@staticmethod
def get_user_friendly_name():
"""Abstract method, should be implemented by derived class."""
Loading