blob: 4603282727839edf9b825917a1f449c8929877c6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Alloc="http://www.eclipse.org/papyrus/Alloc/1" xmlns:C_Cpp="http://www.eclipse.org/papyrus/C_Cpp/1" xmlns:Cpp="http://papyrus/CppProfile/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/Alloc/1 http://www.eclipse.org/papyrus/MARTE/1#//Alloc">
<uml:Model xmi:id="_Ae6MwPccEd-KM6l7lmIPkw" name="TestCCodeGen">
<packageImport xmi:id="_GQ1SgP6SEeKlg5tzGV3QVQ">
<importedPackage xmi:type="uml:Model" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_DV8nkBv8EduZN5aJJITI5w"/>
</packageImport>
<packagedElement xmi:type="uml:Package" xmi:id="_wCdtcH_1EeGMcIDCiaPhww" name="implementation">
<ownedComment xmi:id="_13ZsYBhXEeKGC8dT0Hrc_A"/>
<packagedElement xmi:type="uml:Class" xmi:id="_KOvvIPccEd-KM6l7lmIPkw" clientDependency="_Edy9EBvREeKM2oNGoGF4uQ" name="Class0">
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_U_ezUMzYEeGcRfFFcVPhOg" name="operation1" specification="_mbXNMH8tEeGWNf8qHJJtnw">
<ownedParameter xmi:id="_42nn4BoKEeKjbYasGOLMuA" name="Parameter1">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
<ownedParameter xmi:id="_42o2ABoKEeKjbYasGOLMuA" name="Parameter2">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_5lVhgBydEduyofBvg4RL2w"/>
</ownedParameter>
<ownedParameter xmi:id="_42z1IBoKEeKjbYasGOLMuA" name="p3">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
<language>C/C++</language>
<body></body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_a9tFQMzYEeGcRfFFcVPhOg" name="operation2" specification="_XC6DoMzYEeGcRfFFcVPhOg">
<language>C/C++</language>
<body>my Text</body>
</ownedBehavior>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_vZAVMBnOEeK5EK5DdRYilA" name="operation3" specification="_q1fIIBRnEeK2iINwXBL4pA">
<language>C/C++</language>
<body></body>
</ownedBehavior>
<ownedOperation xmi:id="_mbXNMH8tEeGWNf8qHJJtnw" name="operation1" method="_U_ezUMzYEeGcRfFFcVPhOg">
<ownedParameter xmi:id="_42nA0BoKEeKjbYasGOLMuA" name="Parameter1">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
<ownedParameter xmi:id="_42oO8BoKEeKjbYasGOLMuA" name="Parameter2">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_5lVhgBydEduyofBvg4RL2w"/>
</ownedParameter>
<ownedParameter xmi:id="_42zOEBoKEeKjbYasGOLMuA" name="p3">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusCpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_XC6DoMzYEeGcRfFFcVPhOg" name="operation2" method="_a9tFQMzYEeGcRfFFcVPhOg"/>
<ownedOperation xmi:id="_q1fIIBRnEeK2iINwXBL4pA" name="operation3" method="_vZAVMBnOEeK5EK5DdRYilA"/>
<ownedOperation xmi:id="_BVivAB0LEeKlYLZOWTi6uw" name="Operation1"/>
</packagedElement>
<packagedElement xmi:type="uml:Abstraction" xmi:id="_Edy9EBvREeKM2oNGoGF4uQ" name="Allocate1" client="_KOvvIPccEd-KM6l7lmIPkw" supplier="_mp8XAA7QEeKcN-88BXIIKg"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_mp8XAA7QEeKcN-88BXIIKg" name="Class1">
<ownedAttribute xmi:id="_9GkfABlDEeOWi_t2E10dLQ" name="i" visibility="public">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-8RcYBlDEeOWi_t2E10dLQ" value="1"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-8fe0BlDEeOWi_t2E10dLQ" value="1"/>
</ownedAttribute>
<ownedOperation xmi:id="_777Q0BlDEeOWi_t2E10dLQ" name="Operation1"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_419y0A7hEeKpbseGaEy1LA" name="Class2">
<ownedAttribute xmi:id="_pd7rgBlDEeOWi_t2E10dLQ" name="j" visibility="public">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sa39wBlDEeOWi_t2E10dLQ" value="1"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_sbDj8BlDEeOWi_t2E10dLQ" value="1"/>
</ownedAttribute>
<ownedOperation xmi:id="_tcJNgBlDEeOWi_t2E10dLQ" name="superClassOp"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_K8FLcB0LEeKlYLZOWTi6uw" name="Class3">
<generalization xmi:id="_4rHc0BlCEeOWi_t2E10dLQ" general="_419y0A7hEeKpbseGaEy1LA"/>
<generalization xmi:id="_7AHv4BlDEeOWi_t2E10dLQ" general="_mp8XAA7QEeKcN-88BXIIKg"/>
<ownedAttribute xmi:id="_9vmDUBlCEeOWi_t2E10dLQ" name="ch" visibility="public">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_5lVhgBydEduyofBvg4RL2w"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Dd8GMBlDEeOWi_t2E10dLQ" value="1"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_DeDa8BlDEeOWi_t2E10dLQ" value="1"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_DeUgsBlDEeOWi_t2E10dLQ" name="dgdf" value="25&#xA;"/>
</ownedAttribute>
<ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_kTVuwP6QEeKlg5tzGV3QVQ" name="Operation1" isReentrant="false" specification="_TY18YB0LEeKlYLZOWTi6uw">
<ownedParameter xmi:id="_Gz6-YC-bEeO2L7HZ7MAV3w" name="arg">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
<language>C/C++</language>
<body>// Now let's add some code
arg[0] = 1;</body>
</ownedBehavior>
<ownedOperation xmi:id="_TY18YB0LEeKlYLZOWTi6uw" name="Operation1" method="_kTVuwP6QEeKlg5tzGV3QVQ">
<ownedComment xmi:id="_II4ccP6WEeKlg5tzGV3QVQ" annotatedElement="_II4ccP6WEeKlg5tzGV3QVQ">
<body>Here you can document operation1</body>
</ownedComment>
<ownedParameter xmi:id="_Gz6XUC-bEeO2L7HZ7MAV3w" name="arg">
<type xmi:type="uml:PrimitiveType" href="pathmap://PapyrusC_Cpp_LIBRARIES/AnsiCLibrary.uml#_7wRIABydEduyofBvg4RL2w"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<profileApplication xmi:id="_G5ec8CcLEeGC--E0ZVgUkg">
<eAnnotations xmi:id="_G6JLUCcLEeGC--E0ZVgUkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/FCM/1#/"/>
</eAnnotations>
<appliedProfile href="pathmap://FCM_PROFILES/FCM.profile.uml#_5mvT0MtjEd2H_o0jIC6qDQ"/>
</profileApplication>
<profileApplication xmi:id="_VN5k0CcLEeGC--E0ZVgUkg">
<eAnnotations xmi:id="_VRMJYCcLEeGC--E0ZVgUkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//Alloc"/>
</eAnnotations>
<appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_ar8OsAPMEdyuUt-4qHuVvQ"/>
</profileApplication>
<profileApplication xmi:id="_WAm0ICcLEeGC--E0ZVgUkg">
<eAnnotations xmi:id="_WDDEICcLEeGC--E0ZVgUkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HLAM"/>
</eAnnotations>
<appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_yNSZIAPMEdyuUt-4qHuVvQ"/>
</profileApplication>
<profileApplication xmi:id="_YgXbICcLEeGC--E0ZVgUkg">
<eAnnotations xmi:id="_Yi1gUCcLEeGC--E0ZVgUkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//GCM"/>
</eAnnotations>
<appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_YgAioAPMEdyuUt-4qHuVvQ"/>
</profileApplication>
<profileApplication xmi:id="_1PzP4P6QEeKlg5tzGV3QVQ">
<eAnnotations xmi:id="_1QM4gP6QEeKlg5tzGV3QVQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/C_Cpp/1#/"/>
</eAnnotations>
<appliedProfile href="pathmap://PapyrusC_Cpp_PROFILES/C_Cpp.profile.uml#_j9REUByGEduN1bTiWJ0lyw"/>
</profileApplication>
</uml:Model>
<Cpp:CppConst xmi:id="_1NjzwA1XEeK5O8LY525qvg"/>
<Cpp:CppPtr xmi:id="_1NpTUA1XEeK5O8LY525qvg"/>
<Cpp:CppConst xmi:id="_1O0_EA1XEeK5O8LY525qvg"/>
<Cpp:CppPtr xmi:id="_1O6eoA1XEeK5O8LY525qvg"/>
<Cpp:CppConst xmi:id="_LqnwQA4UEeK3V5UIs8bMtQ"/>
<Cpp:CppPtr xmi:id="_LqqMgA4UEeK3V5UIs8bMtQ"/>
<Cpp:CppConst xmi:id="_LqtP0A4UEeK3V5UIs8bMtQ"/>
<Cpp:CppPtr xmi:id="_LqvsEA4UEeK3V5UIs8bMtQ"/>
<Cpp:CppConst xmi:id="_cCEqYA4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppPtr xmi:id="_cCKxAA4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppConst xmi:id="_cClAsA4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppPtr xmi:id="_cCwm4A4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppConst xmi:id="_gKRO0A4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppPtr xmi:id="_gKUSIA4VEeKZ9ci_RaQQlQ"/>
<Cpp:CppInclude xmi:id="_GV9Q8BoCEeKjbYasGOLMuA" base_class="_KOvvIPccEd-KM6l7lmIPkw" preBody="#define xytz"/>
<Cpp:CppConst xmi:id="_sKD1sBoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_sKHgEBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_sKO00BoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_sKSfMBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_3cU0IBoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_3cYegBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_3cgaUBoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_3ckEsBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_4alzMBoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_4arSwBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_4a1q0BoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_4a6jUBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_42hhQBoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_42lLoBoKEeKjbYasGOLMuA"/>
<Cpp:CppConst xmi:id="_42tHcBoKEeKjbYasGOLMuA" base_parameter="_42oO8BoKEeKjbYasGOLMuA"/>
<Cpp:CppPtr xmi:id="_42x_8BoKEeKjbYasGOLMuA" base_parameter="_42oO8BoKEeKjbYasGOLMuA"/>
<Alloc:Allocate xmi:id="_EpVesBvREeKM2oNGoGF4uQ" base_Abstraction="_Edy9EBvREeKM2oNGoGF4uQ"/>
<C_Cpp:Ptr xmi:id="_OtrjAP6SEeKlg5tzGV3QVQ"/>
<C_Cpp:Ptr xmi:id="_RcHfMP6SEeKlg5tzGV3QVQ"/>
<C_Cpp:Ptr xmi:id="_nvLRkP6SEeKlg5tzGV3QVQ"/>
<C_Cpp:Array xmi:id="_jzudwP6UEeKlg5tzGV3QVQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_erFBkP6XEeKlg5tzGV3QVQ" definition="[267]"/>
<C_Cpp:Array xmi:id="_U3c_wP9lEeK-WfgwzfbGXg" definition="[25]"/>
<C_Cpp:Array xmi:id="_HJeEsAFFEeO6K_N_1OaJGA" definition="[25]"/>
<C_Cpp:Array xmi:id="_14-VwA5UEeOvI9e-hgvtnQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_yHL1wBlCEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_KUCbUBlDEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_wABfgBlDEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Array xmi:id="__WqSUBlDEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_T6AakBlEEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Array xmi:id="_ZD9-ABlEEeOWi_t2E10dLQ" definition="[25]"/>
<C_Cpp:Typedef xmi:id="_GSsl0C-JEeObJ6ARx67E0g" definition="int">
<base_primitivetype href="TestCDTintegration.uml#_DHJ24C-JEeObJ6ARx67E0g"/>
</C_Cpp:Typedef>
<C_Cpp:Array xmi:id="_NeBkEC-JEeObJ6ARx67E0g" definition="[25]"/>
<C_Cpp:Array xmi:id="_PZJ0AC-JEeObJ6ARx67E0g" definition="[25]"/>
<C_Cpp:Array xmi:id="_-e1fkC-WEeOlesq5lIESug" definition="[25]"/>
<C_Cpp:Array xmi:id="_AvLxkC-XEeOlesq5lIESug" definition="[25]"/>
<C_Cpp:Array xmi:id="_e8dogC-XEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_wpcnoC-XEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_xJ_v8C-XEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_xifvgC-XEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_ErNs0C-YEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_FLFfsC-YEeOm_pHVqAkACg" definition="[25]"/>
<C_Cpp:Array xmi:id="_kxBgwC-aEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_lL0mYC-aEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_mVwp8C-aEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_8OlXYC-aEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_CV-MYC-bEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_D_qHAC-bEeO2L7HZ7MAV3w" definition="[25]"/>
<C_Cpp:Array xmi:id="_Gz9aoC-bEeO2L7HZ7MAV3w" base_parameter="_Gz6XUC-bEeO2L7HZ7MAV3w" definition="[25]"/>
</xmi:XMI>