//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #include namespace Noesis { //////////////////////////////////////////////////////////////////////////////////////////////////// template Ptr GUI::LoadXaml(const Uri& uri) { Ptr xaml = LoadXaml(uri); NS_CHECK(xaml == 0 || DynamicPtrCast(xaml) != 0, "Invalid cast"); return StaticPtrCast(xaml); } //////////////////////////////////////////////////////////////////////////////////////////////////// template Ptr GUI::ParseXaml(const char* xamlText) { Ptr xaml = ParseXaml(xamlText); NS_CHECK(xaml == 0 || DynamicPtrCast(xaml) != 0, "Invalid cast"); return StaticPtrCast(xaml); } }