The DatabaseExporter 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 DatabaseExport specified, like this:
set exporter [pw::Application begin DatabaseExport $entities]
pw:: | The DatabaseExporter IO mode type |
Instance Actions | |
getFileTypes | This action gets a list of the file types that can export all of the entities of this mode. |
verify | This action verifies the IO mode attributes and the entities of the mode that should be exported. |
canWrite | This action checks if there is data that will be written out when the write action is used. |
write | This action writes the file by converting pw::DatabaseEntity objects into the format required for the exported data. |
$io verify
This action verifies the IO mode attributes and the entities of the mode that should be exported.
This action has no parameters.
This action returns a boolean of true if verified, false if not.
This action must be called after initialize, but before write.
AttributeIsInvalid, UnsupportedEntityDetected, Unknown
$io write
This action writes the file by converting pw::DatabaseEntity objects into the format required for the exported data.
This action has no parameters.
This action returns a boolean of true if written, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>.
This action must be called after initialize and verify.
AttributeIsInvalid, UnsupportedEntityDetected, Unknown
This action gets a list of the file types that can export all of the entities of this mode.
$io getFileTypes
This action verifies the IO mode attributes and the entities of the mode that should be exported.
$io verify
This action checks if there is data that will be written out when the write action is used.
$io canWrite
This action writes the file by converting pw::DatabaseEntity objects into the format required for the exported data.
$io write
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?