<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2975" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2>Hi Zoli,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2>Thanks for the small example. As you noticed below I
created the object from ModelImpl, it compiles but generates an error when the
interpreter is executed.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2>I had a look into the BON2SFExample folder, but I did not
find it useful related to my problem. </FONT></SPAN><SPAN
class=709390620-18102006><FONT face=Verdana color=#0000ff size=2>Whereas the
"Interpreter" folder uses separately generated BONExtender
files. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2>But at least it is working for me now and I can benefit
from using the BON extender interpreter, Thanks.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=709390620-18102006><FONT face=Verdana
color=#0000ff size=2>\Jesper</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of </B>Zoltan
Molnar<BR><B>Sent:</B> 18. oktober 2006 15:41<BR><B>To:</B>
gme-users<BR><B>Subject:</B> RE: [gme-users] BON extender - how to use the
generated files"classes" within BON2interpreter<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff size=2>There
is a sample interpreter using BONXtended classes</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2>gme\Paradigms\SF\BON2SFExample\</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2>However, you can benefit in this way of the bonX
classes:</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff size=2>void
Project::invokeEx( Project p, FCO focus, std::set<FCO> sel, long
p)</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006> <FONT face=Arial
color=#0000ff size=2>JBETestBonX::JBEModel m( focus); // m will be nonzero if
the focus is really a JBEModel</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006> <FONT face=Arial
color=#0000ff size=2>if( m)</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006> <FONT face=Arial
color=#0000ff size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006>
<FONT face=Arial color=#0000ff size=2>// hurray, let's do something with
m</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006>
<FONT face=Arial><FONT color=#0000ff size=2>std::set<JBETestBonX::JBEAtom>
atms = m->getJBEAtoms();</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2> }</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff
size=2>}</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of
</B>Berthing Jesper<BR><B>Sent:</B> Wednesday, October 18, 2006 6:59
AM<BR><B>To:</B> gme-users<BR><B>Subject:</B> [gme-users] BON extender - how
to use the generated files "classes" within
BON2interpreter<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I have used the BON extender in order to make my
life easier ;-), but how is it intended to be used with the generated
interpreter files (BON2Component.h and BON2Component.cpp) ?</FONT></P>
<P><FONT face=Arial size=2>Problem:</FONT> <BR><FONT face=Arial size=2>I
create an object of lets say the generated class JBETestBonX::JBEModelImpl
within my BON2Component.cpp in order to call the method getJBEAtom(). If the
interpreter is invoked from GME it says "MGAUtil: An Application error has
occured in Component MGA.Interpreter.JBE. The system ….."</FONT></P>
<P><FONT face=Arial size=2>I think it is my lack of C++ skills, so therefore
any small examples would be great.</FONT> </P>
<P><FONT face=Arial size=2>Thanks in advance.</FONT> </P>
<P><FONT face=Arial size=2>Best regards,</FONT> <BR><FONT face=Arial
size=2>Jesper</FONT> </P></BLOCKQUOTE></BODY></HTML>