 |
PK_PARTITION_receive_version_u |
|
PK_ERROR_code_t PK_PARTITION_receive_version_u
(
--- received arguments ---
const PK_UCHAR_t *key, --- key string
PK_transmit_format_t transmit_format, --- file format
--- returned arguments ---
PK_SESSION_kernel_version_t *const version --- version
)
This function returns information about the version of Parasolid used to create
a partition transmit file.
Specific Errors:
PK_ERROR_corrupt_file file header not as expected
PK_ERROR_bad_filename invalid filename
PK_ERROR_cant_find_file cannot find file
PK_ERROR_cant_open_file cannot open file
PK_ERROR_file_access_error unexpected file access error
PK_ERROR_applio_not_registered application i/o functions not registered
PK_ERROR_schema_access_error file referred to non-existent schema
PK_ERROR_file_read_corruption corrupt data read. Perhaps an NFS problem
Before this function can be used, it must be enabled by
PK_SESSION_set_unicode and then calls to PK_SESSION_register_frustrum and/or
PK_SESSION_register_applio.
Currently only the 'major_revision', 'minor_revision' and 'build_number'
fields of the returned PK_SESSION_kernel_version_t structure are
meaningful. All other fields are set to zero. This information shows
exactly which build of Parasolid was used to create the partition transmit
file with the given Unicode 'key'.
If the file was transmitted using the 'transmit_version' option of
partition transmit set to a previous version, this function will return the
'major_revision' and 'minor_revision' of the schema for that version. The
'build_number' will be 0. Note that for most point releases of Parasolid, this
means that the 'minor_revision' returned will be 0, since there are no schema
changes for most point releases. For example, a file transmitted as version
13.2 will return 13.0.0.