Jump to content

ParameterDef: Difference between revisions

From EDM2
Created page with ";File stem: paramdef ;Base:Contained ;Metaclass:SOMClass ;Ancestor Classes ;Contained:SOMObject ==Types== <pre> enum ParameterMode { IN, OUT, INOUT }; struct Paramet..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
;File stem: paramdef  
;File stem: paramdef
;Base:Contained  
;Base:Contained
;Metaclass:SOMClass  
;Metaclass:SOMClass
;Ancestor Classes  
;Ancestor Classes
;Contained:SOMObject
;Contained:SOMObject


==Types==  
==Types==
<pre>  
<pre>  
enum  ParameterMode  { IN, OUT, INOUT };
enum  ParameterMode  { IN, OUT, INOUT };
Line 17: Line 17:
};
};
</pre>  
</pre>  
The describe method, inherited from Contained, returns a ParameterDescription structure in the "value" member of the Description structure (defined in the Contained class).  
The describe method, inherited from Contained, returns a ParameterDescription structure in the "value" member of the Description structure (defined in the Contained class).


==Attributes==  
==Attributes==  
Listed below is each available attribute, with its corresponding type in parentheses, followed by a description of its purpose:  
Listed below is each available attribute, with its corresponding type in parentheses, followed by a description of its purpose:


;type (TypeCode)  
;type (TypeCode):The TypeCode that represents the type of the parameter. The TypeCode returned by the "_get_" form of the type attribute is contained in the receiving ParameterDef object, which retains ownership. Hence, the returned TypeCode should not be freed. To obtain a separate copy, use the TypeCode_copy operation. The "_set_" form of the attribute makes a private copy of the TypeCode you supply, to keep in the receiving object. You retain ownership of the passed TypeCode.
:The TypeCode that represents the type of the parameter. The TypeCode returned by the "_get_" form of the type attribute is contained in the receiving ParameterDef object, which retains ownership. Hence, the returned TypeCode should not be freed. To obtain a separate copy, use the TypeCode_copy operation. The "_set_" form of the attribute makes a private copy of the TypeCode you supply, to keep in the receiving object. You retain ownership of the passed TypeCode.  
;mode (ParameterMode):The ParameterMode of the parameter (IN, OUT, or INOUT).
 
;mode (ParameterMode)  
:The ParameterMode of the parameter (IN, OUT, or INOUT).  


==New methods==  
==New methods==  
There are currently no new methods defined for the ParameterDef class.  
There are currently no new methods defined for the ParameterDef class.


==Overridden methods==
==Overridden methods==
The following list shows all the methods overridden by the ParameterDef class. These methods are overridden in order to modify the behavior defined by an ancestor class.  
The following list shows all the methods overridden by the ParameterDef class. These methods are overridden in order to modify the behavior defined by an ancestor class.
*somInit  
*somInit
*somUninit  
*somUninit
*somDumpSelf  
*somDumpSelf
*somDumpSelfInt  
*somDumpSelfInt
*describe  
*describe


[[Category:SOM IRF]]
[[Category:SOM IRF]]

Revision as of 18:39, 5 April 2025

File stem
paramdef
Base
Contained
Metaclass
SOMClass
Ancestor Classes
Contained
SOMObject

Types

 
enum  ParameterMode  { IN, OUT, INOUT };

struct ParameterDescription {
    Identifier      name;
    RepositoryId    id;
    RepositoryId    defined_in;
    TypeCode        type;
    ParameterMode   mode;
};

The describe method, inherited from Contained, returns a ParameterDescription structure in the "value" member of the Description structure (defined in the Contained class).

Attributes

Listed below is each available attribute, with its corresponding type in parentheses, followed by a description of its purpose:

type (TypeCode)
The TypeCode that represents the type of the parameter. The TypeCode returned by the "_get_" form of the type attribute is contained in the receiving ParameterDef object, which retains ownership. Hence, the returned TypeCode should not be freed. To obtain a separate copy, use the TypeCode_copy operation. The "_set_" form of the attribute makes a private copy of the TypeCode you supply, to keep in the receiving object. You retain ownership of the passed TypeCode.
mode (ParameterMode)
The ParameterMode of the parameter (IN, OUT, or INOUT).

New methods

There are currently no new methods defined for the ParameterDef class.

Overridden methods

The following list shows all the methods overridden by the ParameterDef class. These methods are overridden in order to modify the behavior defined by an ancestor class.

  • somInit
  • somUninit
  • somDumpSelf
  • somDumpSelfInt
  • describe