Now all escaping required for the C++ code generation is done when the .cpp/.h files are generated. Previously, only newlines were escaped automatically. This was a) inconsistent and b) leaked c++ details into the xml data. In addition, the escaping is now done in one central place, harmonizing the three previous implementations. Pre-existing c++ escape sequences in the XML files have been replaced by their literal equivalent so that the resulting python doc sting remains unchanged.
38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
|
<PythonExport
|
|
Father="DocumentObjectPy"
|
|
Name="FeatureAreaPy"
|
|
Twin="FeatureArea"
|
|
TwinPointer="FeatureArea"
|
|
Include="Mod/Path/App/FeatureArea.h"
|
|
Namespace="Path"
|
|
FatherInclude="App/DocumentObjectPy.h"
|
|
FatherNamespace="App">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Zheng, Lei" EMail="realthunder.dev@gmail.com" />
|
|
<UserDocu>This class handles Path Area features</UserDocu>
|
|
</Documentation>
|
|
<Methode Name="getArea">
|
|
<Documentation>
|
|
<UserDocu>Return a copy of the encapsulated Python Area object.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="setParams" Keyword="true">
|
|
<Documentation>
|
|
<UserDocu>setParams(key=value...): Convenient function to configure this feature.
|
|
|
|
Same usage as Path.Area.setParams(). This function stores the parameters in the properties.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Attribute Name="WorkPlane" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>The current workplane. If no plane is set, it is derived from the added shapes.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="WorkPlane" Type="Object"/>
|
|
</Attribute>
|
|
<CustomAttributes />
|
|
</PythonExport>
|
|
</GenerateModel>
|
|
|