Source code for node_import_adaf
# This file is part of Sympathy for Data.
# Copyright (c) 2013, 2017, Combine Control Systems AB
#
# Sympathy for Data is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Sympathy for Data is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Sympathy for Data. If not, see <http://www.gnu.org/licenses/>.
from sylib.importer import base
from sylib import docs
from sympathy.api import node as synode
from sympathy.api import importers
from sympathy.api.nodeconfig import Port, Ports
[docs]class ImportADAF(base.ImportSingle, synode.Node):
__doc__ = docs.IMPORTER_DOCS + base.URL_DOC
author = "Alexander Busck"
name = 'ADAF'
description = 'Import datasource as ADAF'
nodeid = 'org.sysess.sympathy.data.adaf.importadaf'
icon = 'import_adaf.svg'
outputs = Ports([Port.ADAF('Imported ADAF')])
plugins = (importers.ADAFDataImporterBase, )
related = [
'org.sysess.sympathy.data.adaf.importadafs',
'org.sysess.sympathy.export.exportadafs',
]
[docs]class ImportADAFs(base.ImportMulti, synode.Node):
__doc__ = docs.IMPORTER_DOCS + base.URL_DOC
author = "Alexander Busck"
name = 'ADAFs'
description = 'Import datasources as adafs'
nodeid = 'org.sysess.sympathy.data.adaf.importadafs'
icon = 'import_adaf.svg'
outputs = Ports([Port.ADAFs('Imported ADAFs', name='output')])
plugins = (importers.ADAFDataImporterBase, )
related = [
'org.sysess.sympathy.data.adaf.importadaf',
'org.sysess.sympathy.export.exportadafs',
]