Next: , Previous: C++ Enumerated type, Up: C++ mappings


6.2.5 Mapping for strings

GenoM IDL bounded strings are mapped to nul terminated character arrays (i.e., C strings). Unbounded strings are mapped to std::string provided by the C++ standard.

For instance, the following OMG IDL declarations:

      typedef string unbounded;
      typedef string<16> bounded;

would map into

      typedef std::string unbounded;
      typedef char bounded[16];