element <sourceGen>

Namespace: | http://www.nokia.com/sdt/emf/component
Type: | embedded complexType
Content: | complex, 2 attributes, 9 elements
Defined: | globally within component.xsd, see XML source
Used: | at 1 location

XML Representation Summary
<sourceGen
| debug | = | xsd:boolean : "false"
| forms | = | xsd:string
| >
Content: | (defineLocation | template | templateGroup | useTemplate | useTemplateGroup | inline | script | defineMacro | expandMacro)*
</sourceGen>

May contain elements (9):

  defineLocation, defineMacro, expandMacro, inline, script, template, templateGroup, useTemplate, useTemplateGroup

May be included in elements (1):

  component

Known Usage Locations

- Within embedded complexTypes of elements (1):
  component [ref]

Annotation
This section controls C/C++ source generation (with the potential to support
other one-way languages). In a sourceGen element, all the elements in linear
order comprise the component's contributions.
Conditional sourcegen is implemented by using the "form" attribute on
templates or templateGroups, or explicitly checking the regex "form" in inline code.
Another form of conditional sourcegen is event handling code. The "ifEvents" attribute completely filters out defineLocation/template elements if a given event is not bound to an instance.
XML Source

<xsd:element name="sourceGen"> <xsd:annotation> <xsd:documentation> This section controls C/C++ source generation (with the potential to support other one-way languages). In a sourceGen element, all the elements in linear order comprise the component's contributions. Conditional sourcegen is implemented by using the "form" attribute on templates or templateGroups, or explicitly checking the regex "form" in inline code. Another form of conditional sourcegen is event handling code. The "ifEvents" attribute completely filters out defineLocation/template elements if a given event is not bound to an instance. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:choice maxOccurs="unbounded" minOccurs="0"> <xsd:element ref="defineLocation"/> <xsd:element ref="template"/> <xsd:element ref="templateGroup"/> <xsd:element ref="useTemplate"/> <xsd:element ref="useTemplateGroup"/> <xsd:element ref="inline"/> <xsd:element ref="script"/> <xsd:element ref="defineMacro"/> <xsd:element ref="expandMacro"/> </xsd:choice> </xsd:sequence> <!-- IGNORED --> <xsd:attribute name="forms" type="xsd:string" use="optional"/> <xsd:attribute default="false" name="debug" type="xsd:boolean" use="optional"/> </xsd:complexType> </xsd:element>

Attribute Detail
debug

  Type: | xsd:boolean
  Use: | optional
  Default: | "false"
  Defined: | locally, within this element

  XML Source

  <xsd:attribute default="false" name="debug" type="xsd:boolean" use="optional"/>

forms

  Type: | xsd:string
  Use: | optional
  Defined: | locally, within this element

  XML Source

  <xsd:attribute name="forms" type="xsd:string" use="optional"/>

Content Element Detail
defineLocation

  Type: | embedded, complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="defineLocation"/>

defineMacro

  Type: | embedded, complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="defineMacro"/>

expandMacro

  Type: | embedded (extension of ConditionalSourceGen), complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="expandMacro"/>

inline

  Type: | embedded (extension of ConditionalSourceGenString), simple content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="inline"/>

script

  Type: | embedded, empty content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="script"/>

template

  Type: | embedded (extension of ConditionalSourceGenString), empty content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="template"/>

templateGroup

  Type: | embedded (extension of ConditionalSourceGen), complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="templateGroup"/>

useTemplate

  Type: | embedded, empty content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="useTemplate"/>

useTemplateGroup

  Type: | embedded, complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="useTemplateGroup"/>