Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNA problem

843829Jan 6 2010 — edited Jan 7 2010
Hi
I am new to JNA(Java Native Acess), can anybody tell me how to define a jna Structure class for the following C Structure?
here
FeaTInt equalent in C is int
FeaTDouble in C is double
FeaTString in C is char*

typedef struct
{
FeaTInt nseries;
FeaTDouble *series_lambda;
FeaTDouble lambda;
FeaTString *ccys;
FeaTString *asset_codes;
FeaTInt *asset_classes;
FeaTString *sasset_classes;
FeaTInt *maturities;
FeaTInt *maturity_unit;
FeaTDouble *prices;
FeaTDouble **all_prices;
FeaTDouble *price_vols;
FeaTDouble *yield_vols;
FeaTDouble **corr_matrix;
FeaTDouble **chol_matrix;
FeaTDate begin_date;
FeaTDate end_date;
FeaTInt nuassets;
FeaTString *uasset_codes;
FeaTInt *uasset_classes;
FeaTString *suasset_classes;
FeaTString *uasset_ccys;
FeaTString assets_file;
FeaTString corr_file;
FeaTString cholesky_file;
FeaTString vol_file;
FeaTString history_file;
FeaTString yield_file;
}FeaTMVCOutput;

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2010
Added on Jan 6 2010
3 comments
168 views