Loading...
Searching...
No Matches
Importers

Importers are classes dedicated to parsing files. Precisely, they implement an importFromFile function that may be called by s or other SAMSON Extensions to parse files and, potentially, add nodes to SAMSON's data graph. An importer may be a PDB parser, an electron density parser, etc. Whenever a new importer is loaded at startup, SAMSON adds it to the list of available importers. Importers are used in particular when opening a new file from the File menu.

An importer should specify an extension of files it parses by overloading the SBIFileImporter::getExtension function and a filter by overloading the SBIFileImporter::getFilter function.

An importer is used when:

given that the file has an extension specific to this importer.

If you want to start developing an importer, please, refer to the documentation about the SAMSON Extension generator and Tutorials for more information about writing new importers for SAMSON.