Click or drag to resize

DataFileImporterBase Class

Base type for data file importers.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationDataFileImporterBase
    More

Namespace: Altaxo.Serialization
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public abstract class DataFileImporterBase : IDataFileImporter, 
	IImmutable, IEquatable<DataFileImporterBase>

The DataFileImporterBase type exposes the following members.

Constructors
 NameDescription
Protected methodDataFileImporterBaseInitializes a new instance of the DataFileImporterBase class
Top
Methods
 NameDescription
Public methodStatic memberAddError Adds an error message to the provided StringBuilder if it is not or empty.
Public methodCheckOrCreateImportOptions Checks the import options. If the provided object is a valid import options object, then this object is returned. Otherwise, a new import options object is created.
Public methodCreateTableDataSource Creates the table data source.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetDataFileImporterForFile Gets the data file importer for the provided file, or null if no appropriate importer could be found.
Public methodGetFileExtensions Gets the file extensions.
Public methodGetProbabilityForBeingThisFileFormat Gets the probability for being this file format.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodImport(IReadOnlyListString, ImportOptionsInitial) Imports the provided files using the given initial options, optionally distributing the result into separate tables.
Public methodImport(IReadOnlyListString, DataTable, Object, Boolean) Imports the specified file name into a table.
Public methodStatic memberImportFromFile Imports a single file into the specified table, using the best matching registered importer.
Public methodStatic memberImportShowDialogs Shows import dialogs and then performs the import, either in an existing worksheet or in another worksheet.
Public methodStatic memberImportShowReducedDialogsForAllTypes Shows a file open dialog for all registered types of data files. If the current view is an empty worksheet and the user has selected a single file, then the import is done without further questions.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberShowDialog Shows a file import dialog for the specific importer provided as parameter, and imports the files to the table if the user clicked on "OK".
Public methodStatic memberShowOpenFileDialog Shows a file import dialog for the specific importer provided as parameter, and imports the files to the table if the user clicked on "OK".
Top
Remarks
Implementations provide file format detection, import option handling, and logic to import data into DataTable instances. This type also contains convenience methods to show UI dialogs and orchestrate importing into existing or new worksheets.
See Also
Inheritance Hierarchy