fw4spl
Get.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include <fwTools/Object.hpp>
10 
11 #include "fwServices/IService.hpp"
12 
13 namespace fwServices
14 {
15 
20 
29 FWSERVICES_API ::fwServices::IService::sptr get( ::fwData::Object::sptr obj,
30  std::string serviceType );
31 
35 template<class SERVICE>
36 SPTR(SERVICE) get( ::fwData::Object::sptr obj);
37 
44 FWSERVICES_API ::fwServices::IService::sptr get( std::string uid );
45 
47 
48 }
49 
50 #include "fwServices/op/Get.hxx"
#define SPTR(_cls_)
FWSERVICES_API::fwServices::IService::sptr get(::fwData::Object::sptr obj, std::string serviceType)
Get the first service of type serviceType which is attached to obj.
Definition: Get.cpp:18
STL namespace.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
Contains the representation of the data objects used in the framework.