<br><font size=2 face="sans-serif">Dear Gabor,</font>
<br>
<br><font size=2 face="sans-serif">I am sorry, I didn't notice that you
are not working at ISIS. I don't know if I can directly send you the source
code. If you want you can get the GReAT source code from the escher site
http://escher.isis.vanderbilt.edu/. </font>
<br>
<br><font size=2 face="sans-serif">Otherwise you can do the following:</font>
<br>
<br><font size=2 face="sans-serif">Create a RAW component using GME's component
generator and then at the bottom of the InvokeEx function you need to write
code which looks like this.</font>
<br>
<br><font size=2 face="sans-serif">
CComPtr<IMgaProject> spProject = project;</font>
<br><font size=2 face="sans-serif">
CComPtr<IMgaFCO> spContextFCO = currentobj;</font>
<br><font size=2 face="sans-serif">
CComPtr<IMgaFCOs> spSelectedFCOs = selectedobjs;</font>
<br><font size=2 face="sans-serif">
long lParam = param;</font>
<br>
<br><font size=2 face="sans-serif">
{ // Calling
the GR interprerter</font>
<br><font size=2 face="sans-serif">
CComBSTR
bstrCompName( L"MGA.Interpreter.Generate GR" );</font>
<br>
<br><font size=2 face="sans-serif">
CComPtr<IMgaComponentEx>
grComponent;</font>
<br><font size=2 face="sans-serif">
COMTHROW(
grComponent.CoCreateInstance( bstrCompName ) ) ;</font>
<br><font size=2 face="sans-serif">
COMTHROW(
grComponent->put_InteractiveMode( VARIANT_TRUE ) );</font>
<br><font size=2 face="sans-serif">
COMTHROW(
grComponent->Enable( VARIANT_TRUE ) );</font>
<br><font size=2 face="sans-serif">
COMTHROW(
grComponent->Initialize( spProject ) );</font>
<br><font size=2 face="sans-serif">
STDMETHODIMP
ret = grComponent->InvokeEx( spProject, spContextFCO, spSelectedFCOs,
lParam ) ;</font>
<br><font size=2 face="sans-serif">
if(ret
!= S_OK)</font>
<br><font size=2 face="sans-serif">
return ret;</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
}</font>
<br>
<br><font size=2 face="sans-serif">You can cascade interpreters, have then
be invoked conditionally and all the good stuff.</font>
<br>
<br><font size=2 face="sans-serif">If I remember correctly I had once assembled
a command line tool that could be provided with a gme file and an interpreter
name. This tool would then invoke the interpreter on the file.</font>
<br>
<br><font size=2 face="sans-serif">Attila, could you please tell us weather
this tool survived or has it been buried?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Adi</font>
<br><font size=2 face="sans-serif">
</font>
<br>
<br><font size=2 face="sans-serif">-----------------------------------<br>
Aditya Agrawal<br>
Researcher<br>
IBM T. J. Watson<br>
mailto:aagrawa@us.ibm.com<br>
+1 (914) 784-6068 (TL 863)<br>
</font>
<br>
<br><font size=2><tt>gme-users-bounces@list.isis.vanderbilt.edu wrote on
04/20/2005 02:54:43 AM:<br>
<br>
> It would be fine if someone can send me the source code or a link
<br>
> where I can access it.</tt></font>
<br><font size=2><tt>> </tt></font>
<br><font size=2><tt>> Thanks,</tt></font>
<br><font size=2><tt>> </tt></font>
<br><font size=2><tt>> Gabor Batori</tt></font>
<br><font size=2><tt>> -----Original Message-----<br>
> From: gme-users-bounces@list.isis.vanderbilt.edu [mailto:gme-users-<br>
> bounces@list.isis.vanderbilt.edu]<br>
> Sent: 20 April 2005 03:40<br>
> To: A list for GME users to share thoughts and discuss bugs and fixes.<br>
> Subject: Re: [gme-users] plug-in chain<br>
</tt></font>
<br><font size=2><tt>> <br>
> Dear Gabor, <br>
> <br>
> you can access the code for the GReAT Master interpreter from the
<br>
> MoBIES source safe. If not could someone from the GReAT team sent
<br>
> Gabor a copy of the files? <br>
> <br>
> There you should look at the file called RawComponent.cpp. It will
<br>
> be quite easy once you see the example. <br>
> <br>
> Thanks, <br>
> Adi <br>
> <br>
> -----------------------------------<br>
> Aditya Agrawal<br>
> Researcher<br>
> IBM T. J. Watson<br>
> mailto:aagrawa@us.ibm.com<br>
> +1 (914) 784-6068 (TL 863)<br>
> <br>
> <br>
> gme-users-bounces@list.isis.vanderbilt.edu wrote on 04/18/2005 12:23:38
PM:<br>
> <br>
> > Hello!<br>
> > <br>
> > Someone can tell me how can I call a plug-in/interpreter in an
other<br>
> > plug-in/interpreter in BON2/Visual C++ framework. I would like
to <br>
> > create a "call chain" where one interpreter offers
some input to the<br>
> > next interpreter, and call it automatically like in GReaT where
<br>
> > Master Interpreter can call the Graph Rewriter Engine.<br>
> > <br>
> > Thanks,<br>
> > <br>
> > Gabor Batori<br>
> > _______________________________________________<br>
> > gme-users mailing list<br>
> > gme-users@list.isis.vanderbilt.edu<br>
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users<br>
> _______________________________________________<br>
> gme-users mailing list<br>
> gme-users@list.isis.vanderbilt.edu<br>
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users<br>
</tt></font>