E57 Foundation API v1.1.312  Aug. 10, 2011
bool extensionsLookupUri ( const ustring uri,
ustring prefix 
) const

Get an E57 extension prefix associated with a URI in the ImageFile.

Parameters:
[in]uriThe URI of the extension to look up.
[out]prefixThe shorthand prefix that was associated with the given uri.

If uri is declared in the ImageFile, then prefix is set the corresponding prefix, and the function returns true. It is an error if uri contains an illegal character combination for E57 namespace URIs. It is not an error if uri is well-formed, but not defined in the ImageFile (the function just returns false).

Precondition:
This ImageFile must be open (i.e. isOpen()).
uri != ""
Postcondition:
No visible state is modified.
Returns:
true if URI is declared in the ImageFile.
Exceptions:
E57_ERROR_BAD_API_ARGUMENT
E57_ERROR_IMAGEFILE_NOT_OPEN
E57_ERROR_INTERNALAll objects in undocumented state
See also:
Extensions.cpp example, ImageFile::extensionsLookupPrefix
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines