Glyph Version 7.22.2 Mode Types - - - DatabaseImporter |
pw:: DatabaseImporterThe DatabaseImporter IO mode type Derives Frompw::Object pw::Mode pw::IOMode NotesTo create a mode of this type, use the pw::Application.begin command with the mode DatabaseImport specified, like this: set importer [pw::Application begin DatabaseImport] Summary
read
This action verifies the IO mode attributes and tries to read the file that is being imported. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize, but before convert. Possible ErrorsAttributeIsInvalid, CannotOpenFile, CannotAccessFile, FormatIsInvalid, DuplicateNameDetected, MissingReferencesDetected, UnsupportedEntityDetected, Unknown convert
This action converts the data read in by creating pw::DatabaseEntity objects based on the imported data. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize and read. Possible ErrorsCannotConvertEntity, Unknown |
This action gets a list of the file types that are supported for database entity import.
$io getFileTypes
This action verifies the IO mode attributes and tries to read the file that is being imported.
$io read
This action checks if there is data that will be converted when the read action is used.
$io canConvert
This action converts the data read in by creating pw::DatabaseEntity objects based on the imported data.
$io convert
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?