NonStop Serverware

AttributeDef

Previous Topic | Next Topic | Contents | Index
Getting Started | Administration Guide | Programmer's Guide

Subtopics

AttributeDef Syntax
AttributeDef::describe( )
AttributeDef::mode
AttributeDef::type
AttributeDef::type_def

AttributeDef describes an attribute of an interface. It inherits from the Contained interface.

AttributeDef Syntax

module CORBA {
   enum AttributeMode { ATTR_NORMAL, ATTR_READONLY };
   interface AttributeDef : Contained {
   readonly attribute TypeCode <type>;
            attribute IDLType type_def;
            attribute AttributeMode <mode>;
   };
};

AttributeDef::describe( )

Description

The describe( ) operation is inherited from Contained( ). It returns a structure of type Contained::Description.

Syntax

//IDL
struct Description {
   DefinitionKind <kind>;
   any <value>;
}

Where:

<kind>
is a member of this structure that contains the string "CORBA::dk_Attribute".

<value>
is an Any that contains the AttributeDescription structure:

// IDL
struct attributeDescription {
   Identifier name;
   RepositoryID id;
   RepositoryID defined_in;
   VersionSpec version;
   TypeCode type;
   AttributeDef::AttributeMode mode;
}

AttributeDef::mode

Description

This specifies whether the attribute is read/write (READONLY).

Syntax

attribute AttributeMode mode;

AttributeDef::type

Description

The AttributeDef::type specifies the TypeCode of the attribute.

Syntax

readonly attribute TypeCode <type>;

See Also

CORBA::Typecode

AttributeDef::type_def

Description

The AttributeDef::type_def describes the type of the attribute. Changing the type_def changes the type attribute.

Syntax

attribute IDLType type_def;

See Also

AttributeDef::type


Previous Topic | Next Topic | Contents| Top
Getting Started Guide | Administration Guide | Programmer's Guide
Bibliography | Glossary | Index
© Tandem, a division of Compaq. All rights reserved. Legal notices.