Chapter 15 Working with IDL


Struct inside another struct

To define a struct inside another struct, create two classes with the <<CORBAStruct>> stereotype, add a composition between classes and use the inner link feature to declare one class as inner to the other.


struct A {
   struct B {
      short c;
      long d;
   } e, z;
   string x;
};

 


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