Hello All,
I'll admit I'm completely lost on this one so any help would be appreciated. I want to return an array of strings from a call on my corba object, the IDL looks like this:
interface xxxx
{
const long STRING_LIST_SIZE = 100;
// these typedef are used when getting lists
typedef string stringList[STRING_LIST_SIZE];
/* Get the list of the names of codecs supported by this application */
boolean getSupportedCodecs(out stringList codecNamesList);
.. etc
}
The generated code looks like this:
static const CORBA::Long STRING_LIST_SIZE;
typedef CORBA::String_var stringList[ 100 ];
typedef CORBA::String_var stringList_slice;
typedef ArrayVarVar< CORBA::String_var,stringList_slice,stringList,100 > stringList_var;
typedef ArrayVarOut < CORBA::String_var,stringList_slice,stringList,100 > stringList_out;
enum _dummy_stringList { _dummy_stringList_0 };
typedef ArrayVarForAny < CORBA::String_var,stringList_slice,stringList,100,_dummy_stringList> stringList_forany;
.. Etc
In my implementation file I have implemented the body of getSupportedCodecs(…) to populate the array of strings. The question is how do I call this from the client? What type should the list parameter be?
if (CCClient->getSupportedCodecs(list))
{
// do interesting things...
}
I thought it would be a stringList_var BUT this won't compile
conferenceCombinerInterface::stringList_var list;
if (CCClient->getSupportedCodecs(list))
{
}
Regards,
Paul
| ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** |
_______________________________________________ Mico-devel mailing list [email protected] http://www.mico.org/mailman/listinfo/mico-devel
