[gme-users] UDM Wizard -- libraries

Ray, Sumit (US SSA) sumit.ray at baesystems.com
Thu Dec 20 21:05:20 CST 2012


Hi,

I've noticed that when using the UDMIntWizard to create a Visual Studio 10 project, sometimes it creates dependencies to Uml.lib, and the UDM libs (UdmBase.lib, UdmDom.lib and UdmGME.lib). Since these libraries are no longer part of the distribution, the link step fails. When does the wizard choose to use these libraries instead of the UDM DLL (UdmDll.dll, UdmDll.lib), and more importantly, how do you tell the wizrd not to do that?

Thanks,
Sumit

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of gme-users-request at list.isis.vanderbilt.edu
Sent: Sunday, December 16, 2012 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 102, Issue 4

Send gme-users mailing list submissions to
	gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
	gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
	gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gme-users digest..."


Today's Topics:

   1. Re: invoking interpreters (Joe Porter)
   2. (no subject) (Ezhilarasi Chinnapayan)
   3. Re: invoking interpreters (Kevin Smyth)


----------------------------------------------------------------------

Message: 1
Date: Sat, 15 Dec 2012 17:14:35 -0600
From: Joe Porter <joe.porter at gmail.com>
Subject: Re: [gme-users] invoking interpreters
To: "A list for GME users to share thoughts and discuss bugs and
	fixes."	<gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<CAAZqtLznbB-J_7Uj5372tEd8Esjx=5mPrK73tJQSoExgt0zMog at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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.

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)?

-Joe

On Thu, Dec 13, 2012 at 5:55 PM, Ray, Sumit (US SSA) <
sumit.ray at baesystems.com> wrote:

> Joe,
>
> 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?
>
> Thanks,
> Sumit
>
>
>
> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:
> gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
> gme-users-request at list.isis.vanderbilt.edu
> Sent: Thursday, December 13, 2012 1:00 PM
> To: gme-users at list.isis.vanderbilt.edu
> Subject: gme-users Digest, Vol 102, Issue 2
>
> Send gme-users mailing list submissions to
>         gme-users at list.isis.vanderbilt.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> or, via email, send a message with subject or body 'help' to
>         gme-users-request at list.isis.vanderbilt.edu
>
> You can reach the person managing the list at
>         gme-users-owner at list.isis.vanderbilt.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gme-users digest..."
>
>
> Today's Topics:
>
>    1. Re: invoking interpreters (Joe Porter)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 13 Dec 2012 09:37:32 -0600
> From: Joe Porter <joe.porter at gmail.com>
> Subject: Re: [gme-users] invoking interpreters
> To: "A list for GME users to share thoughts and discuss bugs and
>         fixes." <gme-users at list.isis.vanderbilt.edu>
> Message-ID:
>         <CAAZqtLx7iV=
> J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Sumit,
>
> The chief advantage with UDM is that you can use the XML backend to write
> standalone interpreters that are completely independent of GME.  The Udm
> installation comes with a utility called UdmCopy that can convert a GME
> model into the equivalent XML digestable by Udm.  Your interpreter will
> need to include the Udm-generated code, and either include the generated
> xsd file in your distribution or else compile it into the code (see the Udm
> command-line options).  Instead of all of the COM infrastructure that you
> used to integrate your interpreter code into GME, you can simply write a
> main function that loads the specified model file and invokes your logic.
>  The only tricks are to link against the UDM library, and to make sure you
> commit model changes before closing.  UdmCopy and Udm should both provide
> command-line help when run from the prompt.
>
> Is that what you're after?
>
> -Joe
>
>
> On Wed, Dec 12, 2012 at 6:26 AM, Ray, Sumit (US SSA) <
> sumit.ray at baesystems.com> wrote:
>
> >  Hi,****
> >
> > ** **
> >
> > I have written UDM based C++ interpreters that are DLLs. How do I
> > statically build an executable UDM interpreter? How do I then use the
> > interpreter from the command line and connect to a running GME
> instance?**
> > **
> >
> > ** **
> >
> > Also, what are the advantages of using UDM over BON or MON?****
> >
> > ** **
> >
> > Thanks,****
> >
> > Sumit ****
> >
> > ** **
> >
> > ** **
> >
> > Sumit Ray****
> >
> > BAE Systems****
> >
> > 4301 N. Fairfax DR, Suite 800****
> >
> > Arlington, VA 22203****
> >
> > * *
> >
> > *Phone:: (703) 284-8427*
> >
> > *Cell: (571) 970-7558*
> >
> > *Fax: (703) 528-4726*
> >
> > *Email:: sumit.ray at baesystems.com*****
> >
> > ** **
> >
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213/dd7ef907/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>
> End of gme-users Digest, Vol 102, Issue 2
> *****************************************
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121215/11553cc2/attachment-0001.html 

------------------------------

Message: 2
Date: Sun, 16 Dec 2012 09:53:32 +0800 (SGT)
From: Ezhilarasi Chinnapayan <c_ezhilarasi at yahoo.com>
Subject: [gme-users] (no subject)
To: gme-users at list.isis.vanderbilt.edu, kanimurthi at yahoo.co.in,
	akos at isis.vanderbilt.edu, dimple.kaul at vanderbilt.edu,
	firstname.k at isis.vanderbilt.edu, ajay.bidani at vanderbilt.edu,
	vasavi_psg at yahoo.co.in, ranganathanv at hexaware.com, rmalar01 at yahoo.com
Message-ID:
	<1355622812.65842.YahooMailNeo at web193401.mail.sg3.yahoo.com>
Content-Type: text/plain; charset="utf-8"

http://sewseeds.com/includes/phpInputFilter/ktqqa5im.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121216/490bb960/attachment-0001.html 

------------------------------

Message: 3
Date: Sun, 16 Dec 2012 08:42:26 -0600
From: "Kevin Smyth" <ksmyth at isis.vanderbilt.edu>
Subject: Re: [gme-users] invoking interpreters
To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<5DD6FB0BB70FD348A9B2857DD9233366BFDAEF at discovery.isis.vanderbilt.edu>
Content-Type: text/plain; charset="us-ascii"

Sumit,

 

I'm not really sure what you want here, as you've only provided the
"how" not the "why".

 

If you really need static linking of Udm, you should download the Udm
source code and link with the .libs the build produces. These .libs are
no longer distributed, as they are large, complicate debugging, and
require Udm users to install all of the libraries Udm depends on. Why
wouldn't you use dlls?

 

If you need an exe to talk to GME, either create the GME COM object
yourself via CoCreateInstance("GME.Application") (see GME.idl), or write
an interpreter with some sort of IPC mechanism (sockets, named pipes,
etc) that will talk to your exe.

 

Kevin

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Joe
Porter
Sent: Saturday, December 15, 2012 5:15 PM
To: gme-users
Subject: Re: [gme-users] invoking interpreters

 

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.

 

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)?

 

-Joe

On Thu, Dec 13, 2012 at 5:55 PM, Ray, Sumit (US SSA)
<sumit.ray at baesystems.com> wrote:

Joe,

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?

Thanks,
Sumit



-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
gme-users-request at list.isis.vanderbilt.edu
Sent: Thursday, December 13, 2012 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 102, Issue 2

Send gme-users mailing list submissions to
        gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
        gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
        gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gme-users digest..."


Today's Topics:

   1. Re: invoking interpreters (Joe Porter)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Dec 2012 09:37:32 -0600
From: Joe Porter <joe.porter at gmail.com>
Subject: Re: [gme-users] invoking interpreters
To: "A list for GME users to share thoughts and discuss bugs and
        fixes." <gme-users at list.isis.vanderbilt.edu>
Message-ID:
 
<CAAZqtLx7iV=J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"


Sumit,

The chief advantage with UDM is that you can use the XML backend to
write
standalone interpreters that are completely independent of GME.  The Udm
installation comes with a utility called UdmCopy that can convert a GME
model into the equivalent XML digestable by Udm.  Your interpreter will
need to include the Udm-generated code, and either include the generated
xsd file in your distribution or else compile it into the code (see the
Udm
command-line options).  Instead of all of the COM infrastructure that
you
used to integrate your interpreter code into GME, you can simply write a
main function that loads the specified model file and invokes your
logic.
 The only tricks are to link against the UDM library, and to make sure
you
commit model changes before closing.  UdmCopy and Udm should both
provide
command-line help when run from the prompt.

Is that what you're after?

-Joe


On Wed, Dec 12, 2012 at 6:26 AM, Ray, Sumit (US SSA) <
sumit.ray at baesystems.com> wrote:

>  Hi,****
>
> ** **

>
> I have written UDM based C++ interpreters that are DLLs. How do I
> statically build an executable UDM interpreter? How do I then use the

> interpreter from the command line and connect to a running GME
instance?**
> **
>
> ** **
>
> Also, what are the advantages of using UDM over BON or MON?****
>
> ** **
>
> Thanks,****
>
> Sumit ****
>
> ** **
>
> ** **
>
> Sumit Ray****
>
> BAE Systems****
>
> 4301 N. Fairfax DR, Suite 800****
>
> Arlington, VA 22203****
>
> * *
>
> *Phone:: (703) 284-8427 <tel:%28703%29%20284-8427> *
>
> *Cell: (571) 970-7558 <tel:%28571%29%20970-7558> *
>
> *Fax: (703) 528-4726 <tel:%28703%29%20528-4726> *
>
> *Email:: sumit.ray at baesystems.com*****
>
> ** **

>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213
/dd7ef907/attachment-0001.html

------------------------------


_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users



End of gme-users Digest, Vol 102, Issue 2
*****************************************

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121216/91d84a33/attachment-0001.html 

------------------------------

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


End of gme-users Digest, Vol 102, Issue 4
*****************************************


More information about the gme-users mailing list