Home Help Center

Reference for Metadata tags

I might just be dense, but I haven't been able to find a complete list that describes which metadata tags are understood by the different slice translators.

Specifically I'm curious if there is a C++ equivalent to the java:type: directive, as I would like map a sequence to a std::set.




  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    The metadata directives that are currently supported are:

    ami, amd (for all languages)

    java:type (for Java)

    cs:collection, cs:class (for C#)

    C++ does not have an equivalent of the Java metadata directive to control the type of a sequence.


  • Nis BaggesenNis Baggesen Member ✭✭✭
    Possibly this belongs on the 'Suggestions for improvements to ICE' thread, put are there any plans to extend the type directive C++ (And the other languages).

    Alternately, would it be possible to simple change the typedefinition by hand in the generated .h file, or do other parts of ICE rely on the sequence being a std::vector ? Of course it would be bothersome to have to do it by hand everytime the .ice file changed, but it would be nice to know if it would be feasible.


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    It would certainly be possible (and not so difficult) to allow a set mapping for sequences in C++ with the help of metadata. The only reason we didn't add this yet is because so far nobody needed this feature.
Sign In or Register to comment.