Overview | The AttributeDef interface is used within the Interface Repository to represent the information that defines an attribute of an interface. |
File name | wasir.idl |
Local-only | True |
Ancestor interfaces | Contained Interface |
Exceptions | CORBA::SystemException |
Supported operations | AttributeDef::describe |
AttributeDef::mode | |
IDLType::type | |
AttributeDef::type_def |
Intended Usage
The AttributeDef object is used to represent the information that defines an attribute of an interface. An AttributeDef may be created by calling the create_attribute operation of the InterfaceDef interface. The create_attribute parameters include the unique RepositoryId (CORBA::RepositoryId), the name (CORBA::Identifier), the version (CORBA::VersionSpec), the type (CORBA::IDLType*) to indicate the type of the attribute, and a parameter to indicate the mode of the attribute (read. read/write, etc.).
Syntax
module CORBA { enum AttributeMode {ATTR_NORMAL, ATTR_READONLY}; interface AttributeDef:Contained { readonlyattribute TypeCodetype; attribute IDLType type_def; attribute AttributeMode mode; }; struct AttributeDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; AttributeMode mode; }; };