Chapter 15 Working with IDL


General constant

A general constant is a value defined independently of any object and likely to be reused. To declare a CORBA constant you have to create a class with the <<CORBAConstants>> stereotype, and then add attributes with <<CORBAConstants>> stereotype and initial values to this class.


const char red = 13325;
const char blue = 14445;
const long green = 26664;

 


Copyright (C) 2005. Sybase Inc. All rights reserved.