C ++ tools for IDL

Are there any free tools out there that convert C ++ code to idl? I am thinking of something like java2idl.

+2


source to share


1 answer


Java2idl is a special case ... it takes byte code as input, so it uses reflection to figure out what the class looks like and then writes out a compatible IDL. Since C ++ doesn't just support reflection, you need the original parser / preprocessor.

Apart from student class projects, I have never come across free IDL generators. Most people have to go in the other direction ... define an interface or class to implement in both C ++ and CORBA, and so they write it directly in IDL.



If you are working with a small amount of code, do the conversion manually. If these are large sums, you need to spend money on tools or time to write your own. You can potentially do your own "reflection" using something like accelerated serialization to help automate the parsing of your structures (object data in the IDL layout).

+2


source







All Articles