[gme-users] BON extender - how to use the generated files "classes" within BON2interpreter

Zoltan Molnar zolmol at isis.vanderbilt.edu
Wed Oct 18 09:41:02 CDT 2006

There is a sample interpreter using BONXtended classes
However, you can benefit in this way of the bonX classes:
void Project::invokeEx( Project p, FCO focus, std::set<FCO> sel, long p)
    JBETestBonX::JBEModel m( focus); // m will be nonzero if the focus
is really a JBEModel
    if( m)
        // hurray, let's do something with m
        std::set<JBETestBonX::JBEAtom> atms = m->getJBEAtoms();

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
Berthing Jesper
Sent: Wednesday, October 18, 2006 6:59 AM
To: gme-users
Subject: [gme-users] BON extender - how to use the generated files
"classes" within BON2interpreter


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

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 ....."

I think it is my lack of C++ skills, so therefore any small examples
would be great. 

Thanks in advance. 

Best regards, 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20061018/c0eaa5f6/attachment.htm

More information about the gme-users mailing list