Message Boards Message Boards

stringlist handling in the C-API

Posted 10 years ago

Hello,

I want to use string list handling in the CAPI.

On http://reference.wolfram.com/language/LibraryLink/tutorial/InteractionWithMathematica.html

there are all available data types for using to transfer data from mathematica to my shared library.

Available are:

"Boolean" mbool Boolean ....

{base,rank,memory} MTensor tensor with specified memory management

LibraryDataType[SparseArray,…] MSparseArray sparse array

"UTF8String" char * UTF8 string

LinkObject WSLINK arguments and result written to WSTP ´ ...

So I can only use char * with

MArgument_getUTF8String(Args[n]);

or is there another possibility to manage lists of string. The strange thing is that there are lists available in mathematica see:

http://reference.wolfram.com/language/ref/format/List.html

and

http://www.mathematica-journal.com/2013/04/strings/

So how can I transfer such a list to my c++ shared library?

It would be great if you could help me.

Best regards,

Roland

POSTED BY: Roland
2 Replies
POSTED BY: Szabolcs Horvát
Posted 10 years ago

Hello,

is there anybody who can help me or has an idea?

How is it possible to transfer string lists to or from a dynamic library? It seems that LinkObject could be a possibility. Has anybody experience with that or an idea that can help me?

Best regards,

Roland

POSTED BY: Roland
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract