Beispiel #1
0
//----------------------------------------------------------------------------//
void ImageManager::elementStartLocal(const String& element,
                                     const XMLAttributes& attributes)
{
    if (element == ImageElement)
        elementImageStart(attributes);
    else if (element == ImagesetElement)
        elementImagesetStart(attributes);
    else
        Logger::getSingleton().logEvent(
            "[ImageManager] Unknown XML element encountered: <" +
            element + ">", Errors);
}
//----------------------------------------------------------------------------//
void Imageset_xmlHandler::elementStart(const String& element,
                                       const XMLAttributes& attributes)
{
    // handle an Image element
    if (element == ImageElement)
        elementImageStart(attributes);
    // handle root Imageset element
    else if (element == ImagesetElement)
        elementImagesetStart(attributes);
    // anything else is a non-fatal error.
    else
        Logger::getSingleton().logEvent("Imageset_xmlHandler::elementStart: "
            "Unknown element encountered: <" + element + ">", Errors);
}