NonStop Serverware

StructDef

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

Subtopics

StructDef Syntax
StructDef Description
StructDef::describe( )
StructDef::members

The StructDef interface represents an IDL structure declaration. The interface is used to represent a structure that is stored in the Interface Repository. This interface provides methods for setting and retrieving the structure's list of members.

StructDef Syntax

module CORBA {
struct StructMember {
    Identifier <name>;
    TypeCode <type>;
    IDLType type_def;
};
typedef sequence <StructMember> StructmemberSeq;

    interface StructDef : TypedefDef {
    attribute StructMemberSeq members;
    };
};

StructDef Description

The members attribute contains a description of each structure member. The inherited type attribute is a tk_struct TypeCode describing the structure.

For the write interface, setting the members attribute also updates the type attribute. When setting the members attribute, the type_def member of the StructMember structure is ignored.

StructDef::describe( )

This operation is inherited from Contained. It returns a structure of type Contained::Description and has the form:

Contained::Description:
    struct Description {
	  DefinitionKind kind;
	  any <value>;
	};

The DefinitionKind of the kind member is dk_struct

Syntax

Description describe( );

StructDef::members

This describes the members of the structure. It returns a structure of type Contained::Description and has the form:

Contained::Description:
    struct Description {
	  DefinitionKind kind;
	  any <value>;
	};

The DefinitionKind of the kind member is dk_struct

Syntax

Description describe( );

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.