-
Hello, struct my_cursor {
sqlite3_vtab_cursor base; /* Base class - must be first */
// at least one other field here
}; Do you know if I can do this with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
It sounds like we have to create a new type, and if that is the case, we need to provide an additional header file to JavaCPP for that, yes. If you would like to be able to do that kind of thing from Java, JavaCPP already implements a mechanism for virtual methods in C++: |
Beta Was this translation helpful? Give feedback.
-
Thanks fo all these details. |
Beta Was this translation helpful? Give feedback.
It sounds like we have to create a new type, and if that is the case, we need to provide an additional header file to JavaCPP for that, yes.
If you would like to be able to do that kind of thing from Java, JavaCPP already implements a mechanism for virtual methods in C++:
https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#dealing-with-abstract-classes-and-virtual-methods
So that means if you can figure out a way to map that to a standard C++ abstract class, JavaCPP can do the rest.