|
From: Scott H. <Sco...@ti...> - 2014-02-10 18:02:27
|
Chuck,
Thanks for the quick response.
Yes, I can pass the command through C++ to build the ExpressionId, but I wasn't sure how best/easiest to build it and exactly what data it needed to have inside. You mention that it can be a shared dummy - does that mean it does not have to have any relationship to the specific command that was requested to execute?
Thanks for your help,
Scott
From: Fry, Charles R. {Chuck} (ARC-TI)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] [mailto:chu...@na...]
Sent: Monday, February 10, 2014 11:45 AM
To: Catherine Szeto
Cc: ple...@li...; Scott Hetherington
Subject: Re: [plexil-support] Question on Plexil adapter interface
I'm not quite sure how you'd construct an ExpressionId from C. Can you go through a small C++ shim library?
ExpressionId is a typedef for Id<Expression>. The Id<T> template is a smart pointer. The default constructor builds a null smart pointer. This can be used for the dest argument.
The ack argument expects an Id for a CommandHandleVariable. This has to be a real variable instance, but it can be a shared dummy.
-- Chuck
On Feb 10, 2014, at 9:36 AM, Catherine Szeto <Cat...@ti...<mailto:Cat...@ti...>> wrote:
Hello,
Asking this on behalf of Scott:
I have a C function that calls the Plexil Adapter interface to execute commands in the Plexil Engine using the following Adapter method:
executeCommand (const LabelStr& command_name, const list<Any>& args, PLEXIL::ExpressionId dest, PLEXIL::ExpressionId ack)
The documentation says that the "dest" argument is optional but the "ack" argument must be specified.
How do I create these from C and what values are they supposed to contain?
Catherine Szeto
------------------------------------------------------------------------------
Android™ apps run on BlackBerry®10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk_______________________________________________
plexil-support mailing list
ple...@li...<mailto:ple...@li...>
https://lists.sourceforge.net/lists/listinfo/plexil-support
Chuck Fry
Senior Software Engineer
Dell | Services, Federal Government
Office: 650 604 1882 Mobile: 408 230 2715
M/S 269-1, Building N269/260-7
NASA Ames Research Center
Moffett Field, CA 94035-1000
I do not speak for Dell, SGT, Code TI, or NASA, nor do they speak for me.
|