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

Commit 7742656

Browse files
committed
Remove SubsystemInclude xml tag
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 <julesx.clero@intel.com>
1 parent 23ea6ff commit 7742656

File tree

10 files changed

+11
-248
lines changed

10 files changed

+11
-248
lines changed

Schemas/SystemClass.xsd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<xs:complexType>
88
<xs:sequence>
99
<xs:choice maxOccurs="unbounded">
10-
<xs:element name="SubsystemInclude" type="FileIncluderType"/>
1110
<xs:element ref="Subsystem"/>
1211
</xs:choice>
1312
</xs:sequence>

bindings/c/Test.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,15 @@ TEST_CASE_METHOD(Test, "Parameter-framework c api use") {
134134
// Create valid pfw config file
135135
const char *intParameterPath = "/test/system/integer";
136136
const char *stringParameterPath = "/test/system/string";
137-
TmpFile system("<?xml version='1.0' encoding='UTF-8'?>\
138-
<Subsystem Name='system' Type='Virtual' Endianness='Little'>\
139-
<ComponentLibrary/>\
140-
<InstanceDefinition>\
141-
<IntegerParameter Name='integer' Size='32' Signed='true' Max='100'/>\
142-
<StringParameter Name='string' MaxLength='9'/>\
143-
</InstanceDefinition>\
144-
</Subsystem>");
145137
TmpFile libraries("<?xml version='1.0' encoding='UTF-8'?>\
146138
<SystemClass Name='test'>\
147-
<SubsystemInclude Path='" + system.path() + "'/>\
139+
<Subsystem Name='system' Type='Virtual' Endianness='Little'>\
140+
<ComponentLibrary/>\
141+
<InstanceDefinition>\
142+
<IntegerParameter Name='integer' Size='32' Signed='true' Max='100'/>\
143+
<StringParameter Name='string' MaxLength='9'/>\
144+
</InstanceDefinition>\
145+
</Subsystem>\
148146
</SystemClass>");
149147
TmpFile config("<?xml version='1.0' encoding='UTF-8'?>\
150148
<ParameterFrameworkConfiguration\

parameter/Android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ common_src_files := \
114114
VirtualSubsystem.cpp \
115115
VirtualSyncer.cpp \
116116
XmlElementSerializingContext.cpp \
117-
XmlFileIncluderElement.cpp \
118117
XmlParameterSerializingContext.cpp
119118

120119
common_module := libparameter

parameter/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ add_library(parameter SHARED
9999
VirtualSubsystem.cpp
100100
VirtualSyncer.cpp
101101
XmlElementSerializingContext.cpp
102-
XmlFileIncluderElement.cpp
103102
XmlParameterSerializingContext.cpp)
104103

105104
include_directories(
@@ -132,7 +131,6 @@ install(FILES
132131
Element.h
133132
ElementBuilder.h
134133
ElementLibrary.h
135-
FileIncluderElementBuilder.h
136134
FormattedSubsystemObject.h
137135
InstanceConfigurableElement.h
138136
Mapper.h

parameter/FileIncluderElementBuilder.h

Lines changed: 0 additions & 57 deletions
This file was deleted.

parameter/ParameterMgr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "ElementBuilderTemplate.h"
3838
#include "SelectionCriterionType.h"
3939
#include "SubsystemElementBuilder.h"
40-
#include "FileIncluderElementBuilder.h"
4140
#include "ComponentType.h"
4241
#include "ComponentInstance.h"
4342
#include "ParameterBlockType.h"
@@ -2518,7 +2517,6 @@ void CParameterMgr::feedElementLibraries()
25182517
pParameterCreationLibrary->addElementBuilder("EnumParameter", new TNamedElementBuilderTemplate<CEnumParameterType>());
25192518
pParameterCreationLibrary->addElementBuilder("ValuePair", new TElementBuilderTemplate<CEnumValuePair>());
25202519
pParameterCreationLibrary->addElementBuilder("FixedPointParameter", new TNamedElementBuilderTemplate<CFixedPointParameterType>());
2521-
pParameterCreationLibrary->addElementBuilder("SubsystemInclude", new CFileIncluderElementBuilder(_bValidateSchemasOnStart));
25222520

25232521
_pElementLibrarySet->addElementLibrary(pParameterCreationLibrary);
25242522

parameter/XmlFileIncluderElement.cpp

Lines changed: 0 additions & 123 deletions
This file was deleted.

parameter/XmlFileIncluderElement.h

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<SystemClass Name="Test">
3-
<SubsystemInclude Path="TestSubsystem.xml"/>
2+
<SystemClass xmlns:xi="http://www.w3.org/2001/XInclude" Name="Test">
3+
<xi:include href="TestSubsystem.xml"/>
44
</SystemClass>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<SystemClass Name="Test">
3-
<SubsystemInclude Path="VirtualSubsystem.xml"/>
2+
<SystemClass xmlns:xi="http://www.w3.org/2001/XInclude" Name="Test">
3+
<xi:include href="VirtualSubsystem.xml"/>
44
</SystemClass>

0 commit comments

Comments
 (0)