<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff size=2>void 
Project::invokeEx( Project p, FCO focus, std::set&lt;FCO&gt; 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>&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
color=#0000ff size=2>if( m)</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
color=#0000ff size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT face=Arial color=#0000ff size=2>// hurray, let's do something with 
m</FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT face=Arial><FONT color=#0000ff size=2>std::set&lt;JBETestBonX::JBEAtom&gt; 
atms = m-&gt;getJBEAtoms();</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=944263713-18102006><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp; }</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 &#8230;.."</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>