fw4spl
Add.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 
28 FWSERVICES_API ::fwServices::IService::sptr add(::fwData::Object::sptr obj, const std::string& serviceType,
29  const std::string& _implType, const std::string& _id = "");
30 
37 template<class SERVICE>
38 SPTR(SERVICE) add( ::fwData::Object::csptr obj, const std::string& _implType, const std::string& _id = "");
39 
44 FWSERVICES_API ::fwServices::IService::sptr add( const std::string& _implType, const std::string& _id = "" );
45 
50 template<class SERVICE>
51 SPTR(SERVICE) add( const std::string& _implType, const std::string& _id = "" );
52 
54 
55 }
56 
57 #include "fwServices/op/Add.hxx"
#define SPTR(_cls_)
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.
FWSERVICES_API::fwServices::IService::sptr add(::fwData::Object::sptr obj, const std::string &serviceType, const std::string &_implType, const std::string &_id="")
Create and attach to the object obj a service of type serviceType, implementation _implementationId w...
Definition: Add.cpp:24