[omniORB] unions.

Shawn Bisgrove shawn_bisgrove@yahoo.com
Fri, 31 Mar 2000 13:45:28 -0800 (PST)


Hello,

  enum DomainType { DATE_VALUE, TEXT_VALUE };
  union Domain switch (DomainType) {
    case DATE_VALUE    DateRange d;
    case TEXT_VALUE    TextRange t;
  };

  struct myStruct {
      string myDomainName;
      boolean useableMyDomain;
      Domain myDomain;
  };

  Quick questions concerning C++ mapping.  For the
above union should an additional _default member
function be generated for the corresponding C++ class?
 Just wondering?  If this is in a struct, is there a
way to send this back uninitialized?  I do not believe
that there is a way, but just wanted to pose this
question.  Problems would abound on the unmarshalling
on the client side.


s.

=====
________________________________________
|shawn_bisgrove@partech.com
|http://www.geocities.com/shawn_bisgrove 
|

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com