fw4spl
|
Defines the bundle descriptor reader class. More...
#include <BundleDescriptorReader.hpp>
Public Types | |
typedef std::vector< std::shared_ptr< Bundle > > | BundleContainer |
typedef std::pair< std::shared_ptr< ExtensionPoint >, std::vector< std::shared_ptr< Extension > > > | PointExtensionsPairType |
Pair of created extension point associated with extensions. | |
Static Public Member Functions | |
static FWRUNTIME_API std::shared_ptr< Bundle > | createBundle (const boost::filesystem::path &location) |
Look for a descriptor at the specified location, reads it and creates a bundle with it. More... | |
static FWRUNTIME_API const BundleContainer | createBundles (const boost::filesystem::path &location) |
Creates all bundles that are found at the given location. More... | |
static FWRUNTIME_API std::shared_ptr< ConfigurationElement > | processConfigurationElement (xmlNodePtr node, const std::shared_ptr< Bundle > bundle) |
Processes a configuration element XML node. More... | |
Defines the bundle descriptor reader class.
Definition at line 39 of file BundleDescriptorReader.hpp.
|
static |
Look for a descriptor at the specified location, reads it and creates a bundle with it.
[in] | location | a path to a directory that should contain a bundle description |
Definition at line 94 of file BundleDescriptorReader.cpp.
References fwRuntime::Runtime::getDefault(), fwRuntime::io::Validator::getErrorLog(), fwRuntime::Runtime::getWorkingPath(), and fwRuntime::io::Validator::validate().
Referenced by createBundles().
|
static |
Creates all bundles that are found at the given location.
[in] | location | a path to a directory containing bundles |
Definition at line 47 of file BundleDescriptorReader.cpp.
References createBundle(), OSLM_INFO, and SPTR.
|
static |
Processes a configuration element XML node.
node | a pointer to the XML node that represents a configuration element |
bundle | a pointer to the bundle the extension will be attached to |
Definition at line 159 of file BundleDescriptorReader.cpp.
References fwRuntime::Runtime::findBundle(), fwRuntime::Runtime::getDefault(), OSLM_WARN_IF, SLM_ASSERT, and SLM_FATAL.
Referenced by fwRuntime::Convert::toXmlString().