The DatabaseImporter IO mode type
pw::Object pw::Mode pw::IOMode
To 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]
pw:: | The DatabaseImporter IO mode type |
Instance Actions | |
getFileTypes | This action gets a list of the file types that are supported for database entity import. |
read | This action verifies the IO mode attributes and tries to read the file that is being imported. |
canConvert | This action checks if there is data that will be converted when the read action is used. |
convert | This action converts the data read in by creating pw::DatabaseEntity objects based on the imported data. |
$io read
This action verifies the IO mode attributes and tries to read the file that is being imported.
This action has no parameters.
This action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>.
This action must be called after initialize, but before convert.
AttributeIsInvalid, CannotOpenFile, CannotAccessFile, FormatIsInvalid, DuplicateNameDetected, MissingReferencesDetected, UnsupportedEntityDetected, Unknown
$io convert
This action converts the data read in by creating pw::DatabaseEntity objects based on the imported data.
This action has no parameters.
This action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>.
This action must be called after initialize and read.
CannotConvertEntity, 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?