-
Hi I'm looking for examples with adapters when a C++ type is maped to a java native type like java.time.LocalDate. I would like to map my class MyDate when used as a parameter in for examle: I'm not sure how to add it to JavaCpp? For example:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
JavaCPP adapters cannot use arbitrary Java classes like that. The way we usually go about this is by creating a higher-level API on top of the low-level one that JavaCPP generates. Other tools such as JavaPoet may help you with that: https://github.com/square/javapoet |
Beta Was this translation helpful? Give feedback.
JavaCPP adapters cannot use arbitrary Java classes like that. The way we usually go about this is by creating a higher-level API on top of the low-level one that JavaCPP generates. Other tools such as JavaPoet may help you with that: https://github.com/square/javapoet