It looks like static linking is the only real issue. A "normal" UDM interpreter interacts with GME to process mga files via GME's COM interface. UDM hides most of the details behind the scenes so you don't have to do all of the COM setup, transaction management, and so forth. The UDM/GME glue code created by the Udm interpreter wizard has a lot of the details if you want to take them apart and manage all of that yourself.<div>
<br></div><div>Now - the question for the list - how hard is it to get a statically-linkable version of the UDM libraries (or is it even possible)?<br><div><br></div><div>-Joe<br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 5:55 PM, Ray, Sumit (US SSA) <span dir="ltr"><<a href="mailto:sumit.ray@baesystems.com" target="_blank">sumit.ray@baesystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Joe,<br>
<br>
Thanks. I will try out what you suggest but what I am looking for is an UDM-based statically-linked executable (interpreter) that interacts with a live (running) instance of GME. How does one connect to a GME application processing an "mga" file from a static executable?<br>
<br>
Thanks,<br>
Sumit<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">gme-users-bounces@list.isis.vanderbilt.edu</a> [mailto:<a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">gme-users-bounces@list.isis.vanderbilt.edu</a>] On Behalf Of <a href="mailto:gme-users-request@list.isis.vanderbilt.edu">gme-users-request@list.isis.vanderbilt.edu</a><br>
Sent: Thursday, December 13, 2012 1:00 PM<br>
To: <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
Subject: gme-users Digest, Vol 102, Issue 2<br>
<br>
Send gme-users mailing list submissions to<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gme-users-request@list.isis.vanderbilt.edu">gme-users-request@list.isis.vanderbilt.edu</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gme-users-owner@list.isis.vanderbilt.edu">gme-users-owner@list.isis.vanderbilt.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gme-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: invoking interpreters (Joe Porter)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 13 Dec 2012 09:37:32 -0600<br>
From: Joe Porter <<a href="mailto:joe.porter@gmail.com">joe.porter@gmail.com</a>><br>
Subject: Re: [gme-users] invoking interpreters<br>
To: "A list for GME users to share thoughts and discuss bugs and<br>
fixes." <<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a>><br>
Message-ID:<br>
<CAAZqtLx7iV=<a href="mailto:J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA@mail.gmail.com">J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<div class="im"><br>
Sumit,<br>
<br>
The chief advantage with UDM is that you can use the XML backend to write<br>
standalone interpreters that are completely independent of GME. The Udm<br>
installation comes with a utility called UdmCopy that can convert a GME<br>
model into the equivalent XML digestable by Udm. Your interpreter will<br>
need to include the Udm-generated code, and either include the generated<br>
xsd file in your distribution or else compile it into the code (see the Udm<br>
command-line options). Instead of all of the COM infrastructure that you<br>
used to integrate your interpreter code into GME, you can simply write a<br>
main function that loads the specified model file and invokes your logic.<br>
The only tricks are to link against the UDM library, and to make sure you<br>
commit model changes before closing. UdmCopy and Udm should both provide<br>
command-line help when run from the prompt.<br>
<br>
Is that what you're after?<br>
<br>
-Joe<br>
<br>
<br>
On Wed, Dec 12, 2012 at 6:26 AM, Ray, Sumit (US SSA) <<br>
<a href="mailto:sumit.ray@baesystems.com">sumit.ray@baesystems.com</a>> wrote:<br>
<br>
</div>> Hi,****<br>
><br>
> ** **<br>
<div class="im">><br>
> I have written UDM based C++ interpreters that are DLLs. How do I<br>
> statically build an executable UDM interpreter? How do I then use the<br>
</div>> interpreter from the command line and connect to a running GME instance?**<br>
> **<br>
><br>
> ** **<br>
><br>
> Also, what are the advantages of using UDM over BON or MON?****<br>
><br>
> ** **<br>
><br>
> Thanks,****<br>
><br>
> Sumit ****<br>
><br>
> ** **<br>
><br>
> ** **<br>
><br>
> Sumit Ray****<br>
><br>
> BAE Systems****<br>
><br>
> 4301 N. Fairfax DR, Suite 800****<br>
><br>
> Arlington, VA 22203****<br>
><br>
> * *<br>
><br>
> *Phone:: <a href="tel:%28703%29%20284-8427" value="+17032848427">(703) 284-8427</a>*<br>
><br>
> *Cell: <a href="tel:%28571%29%20970-7558" value="+15719707558">(571) 970-7558</a>*<br>
><br>
> *Fax: <a href="tel:%28703%29%20528-4726" value="+17035284726">(703) 528-4726</a>*<br>
><br>
> *Email:: <a href="mailto:sumit.ray@baesystems.com">sumit.ray@baesystems.com</a>*****<br>
><br>
> ** **<br>
<div class="im">><br>
> _______________________________________________<br>
> gme-users mailing list<br>
> <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
> <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
><br>
><br>
</div>-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213/dd7ef907/attachment-0001.html" target="_blank">http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213/dd7ef907/attachment-0001.html</a><br>
<br>
------------------------------<br>
<div class="im"><br>
_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
<br>
<br>
</div>End of gme-users Digest, Vol 102, Issue 2<br>
*****************************************<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
</div></div></blockquote></div><br></div></div>