Re: creating _var types for derived classes
David Weir <[email protected]> Thu, 29 Sep 2005 17:34:35 -0230
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Organization | Object Oriented Concepts, Inc. - An IONA Company |
| Message-ID | <[email protected]> |
Hello Chul, On Mon, Sep 26, 2005 at 11:40:28AM -0400, Chul Gwon wrote: > > I have a derived class for CosNotifyComm::StructuredPushConsumer, and I > wanted to have an _var class associated with it. I was wondering if this > is as straightforward as declaring the following: > > typedef OB::ObjVar< DerivedConsumer > DerivedConsumer_var; > > or if there are potential pitfalls to doing this? > > Thanks in advance, > -chul In general, this will work for any IDL defined interface, since the generated code will automatically have the proper constructs for reference counting. The main concern whenever the "OB::ObjVar" template is used is that the class passed in has derived from the proper classes to implement reference counting. As I said, for IDL defined interfaces this is done automatically. And since you are deriving from that class, you should be fine. Cheers, Dave -- David Weir Team Orbacus - Your CORBA Source E-Mail: [email protected] WWW: http://www.orbacus.com _______________________________________________ OB-Users Mailing List - [email protected] http://mail.ooc.nf.ca/mailman/listinfo/ob-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html