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

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

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

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

Precondition:
This ImageFile must be open (i.e. isOpen()).
Postcondition:
No visible state is modified.
Returns:
true if prefix 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::extensionsLookupUri
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines