fw4spl
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dataReg Namespace Reference

The namespace dataReg (data registration) contains classes which allow to parse the xml configuration of objects . More...

Classes

class  Plugin
 This class is started when the bundles is loaded. More...
 

Variables

static::fwRuntime::utils::GenericExecutableFactoryRegistrar< Pluginregistrar ("::dataReg::Plugin")
 

Detailed Description

The namespace dataReg (data registration) contains classes which allow to parse the xml configuration of objects .

It also is used to load fwData and fwMedData library. So, if you want to use any objects in your application described in XML, you require this bundle: add the requirement in your application plugin.xml.

1 <requirement id="dataReg" />

Example of plugin.xml:

1 <plugin id="Tuto01Basic" version="@PROJECT_VERSION@">
2 
3  <!-- The bundles in requirements are automatically started when this Application is launched. -->
4  <requirement id="dataReg" />
5  <requirement id="servicesReg" />
6 
7  <!-- Defines the App-config -->
8  <extension implements="::fwServices::registry::AppConfig">
9  <id>tutoBasicConfig</id><!-- identifier of the configuration -->
10  <config>
11 
12  <!-- Frame service -->
13  <service uid="myFrame" type="::gui::frame::SDefaultFrame">
14  <gui>
15  <frame>
16  <name>tutoBasicApplicationName</name>
17  <icon>Tuto01Basic-0.1/tuto.ico</icon>
18  <minSize width="800" height="600" />
19  </frame>
20  </gui>
21  </service>
22 
23  <start uid="myFrame" /><!-- start the frame service -->
24 
25  </config>
26  </extension>
27 </plugin>