I'm trying to make GTK frontend and CLIPS backend work together in sync. The structure of my app is as follows:
CLIPSWindow class contains the GUI code of the app.
GTKClips contains the c++ wrappers around the common CLIPS constructs.
- Main app instantiates a design from Glade GUI designer and runs it using
Gtk::kit
here is a link to my github repo. The files of importance are GTKClips.{h,cpp}
, clipswindow.{h,cpp}
and main_app.cpp
.
To put the question more clearly: How do I instantiate a member of GTKClips
class so that it can be used by clipswindow
class to send and receive data. Should I pass it as a parameter to the constructor of clipswindow
and then use it in the class or something else?