fw4spl
EConfigurationElement.cpp
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 #include "fwRuntime/EConfigurationElement.hpp"
8 
9 #include "fwRuntime/Bundle.hpp"
10 
11 namespace fwRuntime
12 {
13 
15  ::fwRuntime::ConfigurationElement( std::shared_ptr< ::fwRuntime::Bundle >(), name )
16 {
17 }
18 
20 {
21 }
22 
23 //------------------------------------------------------------------------------
24 
25 EConfigurationElement::sptr EConfigurationElement::addConfigurationElement( const std::string& name )
26 {
27  EConfigurationElement::sptr cfg = EConfigurationElement::New(name);
29  return cfg;
30 }
31 
32 //------------------------------------------------------------------------------
33 
34 void EConfigurationElement::addConfigurationElement( EConfigurationElement::sptr element )
35 {
37 }
38 
39 //------------------------------------------------------------------------------
40 
41 void EConfigurationElement::setAttributeValue(const std::string& name, const std::string& value) noexcept
42 {
44 }
45 
46 //------------------------------------------------------------------------------
47 
48 void EConfigurationElement::setValue(const std::string& value) noexcept
49 {
51 }
52 
53 }
FWRUNTIME_API void addConfigurationElement(std::shared_ptr< ConfigurationElement > element)
Adds a new configuration element to the extension.
FWRUNTIME_API void setValue(const std::string &value) noexcept
Sets the value of the configuration element it-self.
STL namespace.
Defines the configuration element class.
virtual FWRUNTIME_API ~EConfigurationElement()
Destructor : does nothing.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
FWRUNTIME_API EConfigurationElement(const std::string &name)
Constructor.
FWRUNTIME_API void setAttributeValue(const std::string &name, const std::string &value) noexcept
Sets an attribute with the specified name and value.
FWRUNTIME_API EConfigurationElement::sptr addConfigurationElement(const std::string &name)
Create and add a configuration element.
Defines the bundle class.
Definition: Bundle.hpp:45