[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrapper to use a C++ class in Octave
From: |
Stefan Oltmanns |
Subject: |
Wrapper to use a C++ class in Octave |
Date: |
Wed, 9 Aug 2017 23:40:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hello,
I've got a C++ class I would like to use inside Octave.
This is how I use the class inside a C++ program:
MyClass *abc;
abc = new MyClass();
abc->SomeFunction(parameter,callbackfunction,callbackdata);
...
I assume in Octave this could look like:
myclass = CreateMyClass();
MyClassFunction(myclass,parameter,@callbackfunction,callbackdata);
The class is designed for non blocking operation and everything is done
by a background thread (when result is ready the callback function is
called).
Is there a simple way to write a wrapper around the class? Is there any
example where something like this has been done?
Best regards,
Stefan
- Wrapper to use a C++ class in Octave,
Stefan Oltmanns <=