fw4spl
src/fwGui/Application.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 
8 #include "fwGui/Application.hpp"
9 
10 namespace fwGui
11 {
12 
13 //-----------------------------------------------------------------------------
14 
15 Application::sptr Application::factory()
16 {
17  ::fwGui::GuiBaseObject::sptr guiObj = ::fwGui::factory::New(IApplication::REGISTRY_KEY);
18  static Application::sptr app = ::fwGui::Application::dynamicCast(guiObj);
19  SLM_ASSERT("no implementation of " << ::fwGui::IApplication::REGISTRY_KEY, app );
20  return app;
21 }
22 
23 } // namespace fwGui
24 
25 
26 
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
static FWGUI_API Application::sptr factory()
Application factory, returning the registered instance of Application. Manage a Singleton.
#define SLM_ASSERT(message, cond)
work like &#39;assert&#39; from &#39;cassert&#39;, with in addition a message logged by spylog (with FATAL loglevel) ...
Definition: spyLog.hpp:308