Difference between revisions of "Extensions.DataType.StructureCopy"

From emotive
Jump to navigation Jump to search
Line 23: Line 23:
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12);
 
package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12);
 +
 +
/// Global Declarations
 +
 
public procedure main()
 
public procedure main()
 
{
 
{
  DatatypeSignature1 structure1;
+
        /// Local Declarations
  DatatypeSignature1 structure2;
+
 
 +
        DatatypeSignature1 structure1;
 +
        DatatypeSignature1 structure2;
 +
 
 +
        /// Flow
  
  structure2 = DataType.CopyStructure(structure1);
+
        structure2 = DataType.CopyStructure(structure1);
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 09:29, 23 October 2018

Classification

Name StructureCopy
Short Description Creates a deep copy of a specified structure.
Class Term
Extension OTX DataTypes extension
Group StructureCopy related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

StructureTerm = DataType.StructureCopy(StructureTerm);

Description

StructureCopy is a term that creates a deep copy of a specified structure.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Structure Returns the copy of the specified structure.

Properties

Name Data Type Class Default Cardinality Description
OtherStructure Structure Term - [1] The structure to be copied.

OTL Examples

package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12);

/// Global Declarations

public procedure main()
{
        /// Local Declarations

        DatatypeSignature1 structure1;
        DatatypeSignature1 structure2;

        /// Flow

        structure2 = DataType.CopyStructure(structure1);
}

See also

EnumerationContainsName
EnumerationContainsValue
EnumerationGetEntryList
GetEnumerationByName
GetEnumerationByValue