Source code for openalea.vpltk.sample.interfaces
from openalea.vpltk.catalog.interface import IInterface
class IInfo(IInterface):
[docs] name = 'IInfo'
class IReader(IInterface):
[docs] name = 'IReader'
def read(self, filepath):
[docs] raise NotImplementedError
class IWriter(IInterface):
[docs] name = 'IWriter'
def write(self, filepath, data):
[docs] raise NotImplementedError
class IXyzRepr(IInterface):
[docs] name = 'IXyzRepr'
class IXyzReader(IReader):
[docs] name = 'IXyzReader'
def read(self, filepath):
[docs] raise NotImplementedError
class IXyzWriter(IWriter):
[docs] name = 'IXyzWriter'
def save(self, filepath, data):
[docs] raise NotImplementedError