fw4spl
fwRuntime::io::BundleDescriptorReader Struct Reference

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< BundlecreateBundle (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< ConfigurationElementprocessConfigurationElement (xmlNodePtr node, const std::shared_ptr< Bundle > bundle)
 Processes a configuration element XML node. More...
 

Detailed Description

Defines the bundle descriptor reader class.

Definition at line 39 of file BundleDescriptorReader.hpp.

Member Function Documentation

std::shared_ptr< Bundle > fwRuntime::io::BundleDescriptorReader::createBundle ( const boost::filesystem::path &  location)
static

Look for a descriptor at the specified location, reads it and creates a bundle with it.

Parameters
[in]locationa path to a directory that should contain a bundle description
Returns
a shared pointer to the created bundle

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const BundleDescriptorReader::BundleContainer fwRuntime::io::BundleDescriptorReader::createBundles ( const boost::filesystem::path &  location)
static

Creates all bundles that are found at the given location.

Parameters
[in]locationa path to a directory containing bundles
Returns
a container with all created bundles

Definition at line 47 of file BundleDescriptorReader.cpp.

References createBundle(), OSLM_INFO, and SPTR.

+ Here is the call graph for this function:

ConfigurationElement::sptr fwRuntime::io::BundleDescriptorReader::processConfigurationElement ( xmlNodePtr  node,
const std::shared_ptr< Bundle bundle 
)
static

Processes a configuration element XML node.

Parameters
nodea pointer to the XML node that represents a configuration element
bundlea pointer to the bundle the extension will be attached to
Returns
a pointer to the created configuration element

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this struct was generated from the following files: