예제 #1
0
Variant XMLElement::GetVariantValue(VariantType type) const
{
    Variant ret;

    if (type == VAR_RESOURCEREF)
        ret = GetResourceRef();
    else if (type == VAR_RESOURCEREFLIST)
        ret = GetResourceRefList();
    else if (type == VAR_VARIANTVECTOR)
        ret = GetVariantVector();
    else if (type == VAR_VARIANTMAP)
        ret = GetVariantMap();
    else
        ret.FromString(type, GetAttributeCString("value"));

    return ret;
}
예제 #2
0
ea::string XMLElement::GetAttribute(const char* name) const
{
    return ea::string(GetAttributeCString(name));
}
예제 #3
0
ea::string XMLElement::GetAttribute(const ea::string& name) const
{
    return ea::string(GetAttributeCString(name.c_str()));
}
예제 #4
0
String XMLElement::GetAttribute(const String& name) const
{
    return String(GetAttributeCString(name.CString()));
}