[Ace-users] [tao-users] TAO_IDL compiler + is this a bug?
Sowayan, Abdullah (N-DUA)
abdullah.sowayan at lmco.com
Fri Jan 18 09:00:53 CST 2008
TAO Version: 1.6.2
I have a very simple IDL file, which is attached. We wanted to suppress
generation of inline files, so we use the following command to generate
the code:
tao_idl -Sci -Ssi Foo.idl
Should the generated code be something that one can compile and link
against? If not, I wonder what the purpose of having an option that
would generate code that someone can not use.
Below is the code that would be generated in the FooC.inl file had I not
suppressed inline code generation:
ACE_INLINE
Foo::Foo (
TAO_Stub *objref,
::CORBA::Boolean _tao_collocated,
TAO_Abstract_ServantBase *servant,
TAO_ORB_Core *oc
)
: ::CORBA::Object (objref, _tao_collocated, servant, oc),
the_TAO_Foo_Proxy_Broker_ (0)
{
this->Foo_setup_collocation ();
}
ACE_INLINE
Foo::Foo (
IOP::IOR *ior,
TAO_ORB_Core *oc
)
: ::CORBA::Object (ior, oc),
the_TAO_Foo_Proxy_Broker_ (0)
{
}
When I do a diff between FooC.cpp the version that had inlining
suppressed and the version that didn't you'll see the following
difference:
#if !defined (__ACE_INLINE__)
#include "FooC.inl"
#endif /* !defined INLINE */
When I do a diff between FooC.h the version that had inlining suppressed
and the version that didn't you'll see the following difference:
#if defined (__ACE_INLINE__)
#include "FooC.inl"
#endif /* defined INLINE */
So, when we suppress generation of inlined file, shouldn't the code in
the inlined files be placed in the cpp files?
Thanks,
Abdul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Foo.idl
Type: application/octet-stream
Size: 100 bytes
Desc: Foo.idl
Url : http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20080118/95b6a49c/attachment.obj
More information about the Ace-users
mailing list