fw4spl
Convert.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __FWRUNTIME_CONVERT_HPP__
8 #define __FWRUNTIME_CONVERT_HPP__
9 
10 #include "fwRuntime/config.hpp"
11 #include "fwRuntime/ConfigurationElement.hpp"
12 
13 #include <boost/property_tree/ptree.hpp>
14 
15 #include <libxml/tree.h>
16 
17 namespace fwRuntime
18 {
19 
23 class FWRUNTIME_CLASS_API Convert
24 {
25 public:
26 
30  FWRUNTIME_API virtual ~Convert();
31 
35  FWRUNTIME_API static xmlNodePtr toXml( std::shared_ptr< ::fwRuntime::ConfigurationElement > _cfgElement);
36 
40  FWRUNTIME_API std::string static toXmlString( ::fwRuntime::ConfigurationElement::sptr _cfgElement);
41 
45  FWRUNTIME_API static xmlNodePtr runningBundlesToXml( );
46 
47  FWRUNTIME_API static ::boost::property_tree::ptree toPropertyTree(
48  ::fwRuntime::ConfigurationElement::csptr _cfgElement );
49 
50  FWRUNTIME_API static ::fwRuntime::ConfigurationElement::sptr fromPropertyTree( ::boost::property_tree::ptree pt );
51 
52 private:
53 
54  static void fromConfigurationElementToXml(std::shared_ptr< ::fwRuntime::ConfigurationElement > _cfgElement,
55  xmlNodePtr _node);
56 
60  Convert();
61 
62 };
63 
64 } // namespace fwRuntime
65 
66 #endif // __FWRUNTIME_CONVERT_HPP__
Defines the convert class.
Definition: Convert.hpp:23
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...