Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Remove SubsystemInclude xml tag
Browse files Browse the repository at this point in the history
SubsystemInclude is correspond to an XInclude.
This patch removes this tag handling and replaces it by the standard
xml inclusion tag.

Signed-off-by: Jules Clero <[email protected]>
  • Loading branch information
clero committed May 5, 2015
1 parent 23ea6ff commit 7742656
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 248 deletions.
1 change: 0 additions & 1 deletion Schemas/SystemClass.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<xs:complexType>
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="SubsystemInclude" type="FileIncluderType"/>
<xs:element ref="Subsystem"/>
</xs:choice>
</xs:sequence>
Expand Down
16 changes: 7 additions & 9 deletions bindings/c/Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@ TEST_CASE_METHOD(Test, "Parameter-framework c api use") {
// Create valid pfw config file
const char *intParameterPath = "/test/system/integer";
const char *stringParameterPath = "/test/system/string";
TmpFile system("<?xml version='1.0' encoding='UTF-8'?>\
<Subsystem Name='system' Type='Virtual' Endianness='Little'>\
<ComponentLibrary/>\
<InstanceDefinition>\
<IntegerParameter Name='integer' Size='32' Signed='true' Max='100'/>\
<StringParameter Name='string' MaxLength='9'/>\
</InstanceDefinition>\
</Subsystem>");
TmpFile libraries("<?xml version='1.0' encoding='UTF-8'?>\
<SystemClass Name='test'>\
<SubsystemInclude Path='" + system.path() + "'/>\
<Subsystem Name='system' Type='Virtual' Endianness='Little'>\
<ComponentLibrary/>\
<InstanceDefinition>\
<IntegerParameter Name='integer' Size='32' Signed='true' Max='100'/>\
<StringParameter Name='string' MaxLength='9'/>\
</InstanceDefinition>\
</Subsystem>\
</SystemClass>");
TmpFile config("<?xml version='1.0' encoding='UTF-8'?>\
<ParameterFrameworkConfiguration\
Expand Down
1 change: 0 additions & 1 deletion parameter/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ common_src_files := \
VirtualSubsystem.cpp \
VirtualSyncer.cpp \
XmlElementSerializingContext.cpp \
XmlFileIncluderElement.cpp \
XmlParameterSerializingContext.cpp

common_module := libparameter
Expand Down
2 changes: 0 additions & 2 deletions parameter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ add_library(parameter SHARED
VirtualSubsystem.cpp
VirtualSyncer.cpp
XmlElementSerializingContext.cpp
XmlFileIncluderElement.cpp
XmlParameterSerializingContext.cpp)

include_directories(
Expand Down Expand Up @@ -132,7 +131,6 @@ install(FILES
Element.h
ElementBuilder.h
ElementLibrary.h
FileIncluderElementBuilder.h
FormattedSubsystemObject.h
InstanceConfigurableElement.h
Mapper.h
Expand Down
57 changes: 0 additions & 57 deletions parameter/FileIncluderElementBuilder.h

This file was deleted.

2 changes: 0 additions & 2 deletions parameter/ParameterMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "ElementBuilderTemplate.h"
#include "SelectionCriterionType.h"
#include "SubsystemElementBuilder.h"
#include "FileIncluderElementBuilder.h"
#include "ComponentType.h"
#include "ComponentInstance.h"
#include "ParameterBlockType.h"
Expand Down Expand Up @@ -2518,7 +2517,6 @@ void CParameterMgr::feedElementLibraries()
pParameterCreationLibrary->addElementBuilder("EnumParameter", new TNamedElementBuilderTemplate<CEnumParameterType>());
pParameterCreationLibrary->addElementBuilder("ValuePair", new TElementBuilderTemplate<CEnumValuePair>());
pParameterCreationLibrary->addElementBuilder("FixedPointParameter", new TNamedElementBuilderTemplate<CFixedPointParameterType>());
pParameterCreationLibrary->addElementBuilder("SubsystemInclude", new CFileIncluderElementBuilder(_bValidateSchemasOnStart));

_pElementLibrarySet->addElementLibrary(pParameterCreationLibrary);

Expand Down
123 changes: 0 additions & 123 deletions parameter/XmlFileIncluderElement.cpp

This file was deleted.

49 changes: 0 additions & 49 deletions parameter/XmlFileIncluderElement.h

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<SystemClass Name="Test">
<SubsystemInclude Path="TestSubsystem.xml"/>
<SystemClass xmlns:xi="http://www.w3.org/2001/XInclude" Name="Test">
<xi:include href="TestSubsystem.xml"/>
</SystemClass>
4 changes: 2 additions & 2 deletions test/test-fixed-point-parameter/TestClass.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<SystemClass Name="Test">
<SubsystemInclude Path="VirtualSubsystem.xml"/>
<SystemClass xmlns:xi="http://www.w3.org/2001/XInclude" Name="Test">
<xi:include href="VirtualSubsystem.xml"/>
</SystemClass>

0 comments on commit 7742656

Please sign in to comment.