NonStop Serverware

ConstantDef

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

Subtopics

ConstantDef Syntax
ConstantDef::describe( )
ConstantDef::type
ConstantDef::type_def
ConstantDef::value
See Also

A ConstantDef object defines a named constant. It inherits from the Contained interface.

ConstantDef Syntax

module CORBA {
  interface ConstantDef : Contained {
    readonly attribute TypeCode <type>;
	         attribute IDLType  type_def;
             attribute any      <value>;
  };
                                                                                                                                      };

ConstantDef::describe( )

The describe( ) operation returns a structure of type Contained::Description.

Syntax

struct Description {
  DefinitionKind <kind>;
  any <value>;

Parameters

<kind>
Contains CORBA::dk_Constant.

<value>
An any that contains the ConstantDescription structure:

struct ConstantDescription {
    Identifier      <name>;
	RepositoryId    <ID>;
	RepositoryId    defined_in;
	TypeCode        <type>;
	any             <value>;
  };	

The TypeCode of <value> is _tc_CORBA_ConstantDescription.

ConstantDef::type

The type specifies the TypeCode of the constant. It must be a simple type: long, short, float, char, string, octet, double, boolean, unsigned long, or unsigned short.

Syntax

attribute TypeCode <type>;

ConstantDef::type_def

The type_def attribute identifies the definition of the type of the constant.

Syntax

attribute TypeCode <type>;

ConstantDef::value

The value of the constant is contained in <value>.

Syntax

attribute any <value>;

See Also

Contained
TypeCode


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.