Alias definition of an array of a custom type

71 views
Skip to first unread message

unig...@gmail.com

unread,
Jul 3, 2017, 5:44:04 AM7/3/17
to Franca
Can I define something like that:

package org.genivi

typeCollection {

typedef OBJECT_HANDLE is Int32

typedef array ObjectHandleList of OBJECT_HANDLE

}

I have a problem with alias definition for the array of OBJECT_HANDLE.

Klaus Birken

unread,
Jul 3, 2017, 6:17:44 AM7/3/17
to Franca
Hi.

the example is 97% correct. Just remove the "typedef" keyword:

typeCollection {

       typedef OBJECT_HANDLE is Int32

        array ObjectHandleList of OBJECT_HANDLE
}


In Franca IDL, "typedef" defines a plain alias name for an existing type. New user-defined types are introduced by keywords like "array", "struct", "map" and so on (without "typedef").

Regards,
Klaus


Reply all
Reply to author
Forward
0 new messages