OTX StructureCopy

From emotive
Jump to: navigation, search

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

/// Local Declarations
DatatypeSignature StructureVariable;
/// Flow
StructureVariable = 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