fw4spl
fwRuntime/include/fwRuntime/helper.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 "fwRuntime/config.hpp"
10 #include "fwRuntime/ConfigurationElement.hpp"
11 #include "fwRuntime/io/Validator.hpp"
12 #include "fwRuntime/operations.hpp"
13 #include "fwRuntime/Runtime.hpp"
14 
15 namespace fwRuntime
16 {
26 FWRUNTIME_API std::pair< bool, std::string > validateConfigurationElement(
27  std::shared_ptr< ::fwRuntime::io::Validator > _validator, ::fwRuntime::ConfigurationElement::sptr _element );
28 
37 FWRUNTIME_API void ConfigurationElement2XML(::fwRuntime::ConfigurationElement::sptr _cfgElement, xmlNodePtr pNode);
38 
48 FWRUNTIME_API ConfigurationElement::sptr getCfgAsAnExtension( ConfigurationElement::sptr _config,
49  std::string _extension_pt );
50 
56 FWRUNTIME_API std::vector< ConfigurationElement::sptr > getAllCfgForPoint( std::string _extension_pt );
57 
63 FWRUNTIME_API std::vector< std::shared_ptr< ::fwRuntime::Extension > > getAllExtensionsForPoint(
64  std::string extension_pt);
65 
74 FWRUNTIME_API std::map< std::string, ConfigurationElement::sptr > getAllIdAndConfigurationElementsForPoint(
75  std::string _extension_pt );
84 FWRUNTIME_API std::vector< std::string > getAllIdsForPoint( std::string _extension_pt );
85 
91 FWRUNTIME_API std::string getInfoForPoint( std::string _extension_pt);
92 
93 }
FWRUNTIME_API ConfigurationElement::sptr getCfgAsAnExtension(ConfigurationElement::sptr _config, std::string _extension_pt)
Returns the configuration element embedding the configuration to be considered for initializing an ob...
FWRUNTIME_API std::vector< ConfigurationElement::sptr > getAllCfgForPoint(std::string _extension_pt)
Returns configuration elements extending the _extension_pt extension point.
FWRUNTIME_API std::string getInfoForPoint(std::string _extension_pt)
Get information for the point.
FWRUNTIME_API std::vector< std::shared_ptr< ::fwRuntime::Extension > > getAllExtensionsForPoint(std::string extension_pt)
Returns extensions extending the _extension_pt extension point.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
FWRUNTIME_API std::pair< bool, std::string > validateConfigurationElement(std::shared_ptr< ::fwRuntime::io::Validator > _validator,::fwRuntime::ConfigurationElement::sptr _element)
Check configuration element (its XML representation) with respect to the validator (referencing the x...
FWRUNTIME_API std::map< std::string, ConfigurationElement::sptr > getAllIdAndConfigurationElementsForPoint(std::string _extension_pt)
Returns contribution ids and configuration elements related to a given extension point.
FWRUNTIME_API void ConfigurationElement2XML(::fwRuntime::ConfigurationElement::sptr _cfgElement, xmlNodePtr pNode)
Update pNode content according to _cfgElement.
FWRUNTIME_API std::vector< std::string > getAllIdsForPoint(std::string _extension_pt)
Returns contribution ids to a given extension point.