+
+
+/*****************************************************************/
+/**
+
+ The four macros UTIL_IS_INSTANCE_FUNCTION, UTIL_SAFE_CAST_FUNTION,
+ UTIL_TYPE_ID_DECLARATION and UTIL_TYPE_ID_INIT can be used to
+ implement a simple system for type checking (void *) at
+ runtime. The system is based on a unique integer for each class,
+ this must be provided by the user.
+
+ The motivation for these functions is to be able to to type-check
+ the arguments to callback functions like pthread_create.
+
+ UTIL_TYPE_ID_DECLARATION: Adds a field "int __type_id;" to the
+ struct defintion.
+
+ UTIL_TYPE_ID_INIT: Should be added to the allocation routine,
+ inserts a "->__type_id = magic_int;" code line in the alloc
+ routine.
+
+ UTIL_IS_INSTANCE_FUNCTION: This macro will generate a function
+ _is_instance(void *) which will cast the (void *) input to
+ (type *), and check the value of __type_id. If this is the
+ correct value true is returned, otherwise the function will
+ return false. Observe that the function will accept NULL as
+ input; in which case it will return false.
+
+ UTIL_SAFE_CAST_FUNCTION: This is similar to
+ UTIL_IS_INSTANCE_FUNCTION, but it will return (type *) if the
+ cast succeeds, and fail hard if it fails. There is also a _CONST
+ variety of this function.
+
+*/
+
+
+
+
+// #define UTIL_IS_INSTANCE_FUNCTION(type , TYPE_ID)
+// bool type ## _is_instance( const void * __arg ) {
+// if (__arg == NULL)
+// return false;
+// else {
+// const type ## _type * arg = (const type ## _type * ) __arg;
+// if ( arg->__type_id == TYPE_ID)
+// return true;
+// else
+// return false;
+// }
+// }
+
+
+// #define UTIL_IS_INSTANCE_HEADER(type) bool type ## _is_instance( const void * __arg )
+
+
+// #define UTIL_SAFE_CAST_FUNCTION(type , TYPE_ID)
+// type ## _type * type ## _safe_cast( void * __arg ) {
+// if (__arg == NULL) {
+// util_abort("%s: runtime cast failed - tried to dereference NULL\n",__func__);
+// return NULL;
+// }
+// {
+// type ## _type * arg = (type ## _type *) __arg;
+// if ( arg->__type_id == TYPE_ID)
+// return arg;
+// else {
+// util_abort("%s: runtime cast failed: Got ID:%d Expected ID:%d \n", __func__ , arg->__type_id , TYPE_ID);
+// return NULL;
+// }
+// }
+// }
+// #define UTIL_SAFE_CAST_HEADER( type ) type ## _type * type ## _safe_cast( void * __arg )
+
+
+// #define UTIL_SAFE_CAST_FUNCTION_CONST(type , TYPE_ID)
+// const type ## _type * type ## _safe_cast_const( const void * __arg ) {
+// if (__arg == NULL) {
+// util_abort("%s: runtime cast failed - tried to dereference NULL\n",__func__);
+// return NULL;
+// }
+// {
+// const type ## _type * arg = (const type ## _type *) __arg;
+// if ( arg->__type_id == TYPE_ID)
+// return arg;
+// else {
+// util_abort("%s: runtime cast failed: Got ID:%d Expected ID:%d \n", __func__ , arg->__type_id , TYPE_ID);
+// return NULL;
+// }
+// }
+// }
+// #define UTIL_SAFE_CAST_HEADER_CONST( type ) const type ## _type * type ## _safe_cast_const( const void * __arg )
+
+
+
+
+// #define UTIL_TRY_CAST_FUNCTION(type , TYPE_ID)
+// type ## _type * type ## _try_cast( void * __arg ) {
+// if (__arg == NULL)
+// return NULL;
+// {
+// type ## _type * arg = (type ## _type *) __arg;
+// if ( arg->__type_id == TYPE_ID)
+// return arg;
+// else
+// return NULL;
+// }
+// }
+// #define UTIL_TRY_CAST_HEADER( type ) type ## _type * type ## _try_cast( void * __arg )
+
+
+// #define UTIL_TRY_CAST_FUNCTION_CONST(type , TYPE_ID)
+// const type ## _type * type ## _try_cast_const( const void * __arg ) {
+// if (__arg == NULL)
+// return NULL;
+// {
+// const type ## _type * arg = (type ## _type *) __arg;
+// if ( arg->__type_id == TYPE_ID)
+// return arg;
+// else
+// return NULL;
+// }
+// }
+// #define UTIL_TRY_CAST_HEADER_CONST( type ) const type ## _type * type ## _try_cast_const( const void * __arg )
+
+
+
+
+public static native @MemberGetter int UTIL_TYPE_ID_DECLARATION();
+public static final int UTIL_TYPE_ID_DECLARATION = UTIL_TYPE_ID_DECLARATION();
+// #define UTIL_TYPE_ID_INIT(var , TYPE_ID) var->__type_id = TYPE_ID;
+
+
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/perm_vector.hpp
+
+/*
+ Copyright (C) 2016 Equinor ASA, Norway.
+
+ The file 'perm_vector.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef PERM_VECTOR_H
+// #define PERM_VECTOR_H
+
+// #include
+
+// #ifdef __cplusplus
+// Targeting ../perm_vector_type.java
+
+
+
+public static native perm_vector_type perm_vector_alloc( IntPointer perm_input, int size );
+public static native perm_vector_type perm_vector_alloc( IntBuffer perm_input, int size );
+public static native perm_vector_type perm_vector_alloc( int[] perm_input, int size );
+public static native void perm_vector_free( perm_vector_type perm_vector );
+public static native int perm_vector_get_size( @Const perm_vector_type perm);
+public static native int perm_vector_iget( @Const perm_vector_type perm, int index);
+
+// #ifdef __cplusplus
+// #endif //__cplusplus
+
+// #endif
+
+
+
+// Parsed from ert/util/perm_vector.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/type_macros.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/int_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_int_VECTOR_H
+// #define ERT_int_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../int_vector_type.java
+
+
+// Targeting ../int_ftype.java
+
+
+
+
+ public static native int int_vector_lookup_bin( @Const int_vector_type limits, int value, int guess);
+ public static native int int_vector_lookup_bin__( @Const int_vector_type limits, int value, int guess);
+ public static native void int_vector_inplace_div( int_vector_type vector, @Const int_vector_type inv_factor);
+ public static native void int_vector_inplace_mul( int_vector_type vector, @Const int_vector_type factor);
+ public static native void int_vector_inplace_add( int_vector_type vector, @Const int_vector_type delta);
+ public static native void int_vector_inplace_sub( int_vector_type vector, @Const int_vector_type delta);
+ public static native void int_vector_set_read_only( int_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean int_vector_get_read_only( @Const int_vector_type vector );
+ public static native void int_vector_memcpy_data( IntPointer target, @Const int_vector_type src );
+ public static native void int_vector_memcpy_data( IntBuffer target, @Const int_vector_type src );
+ public static native void int_vector_memcpy_data( int[] target, @Const int_vector_type src );
+ public static native void int_vector_memcpy_from_data( int_vector_type target, @Const IntPointer src, int src_size );
+ public static native void int_vector_memcpy_from_data( int_vector_type target, @Const IntBuffer src, int src_size );
+ public static native void int_vector_memcpy_from_data( int_vector_type target, @Const int[] src, int src_size );
+ public static native void int_vector_memcpy( int_vector_type target, @Const int_vector_type src);
+ public static native void int_vector_memcpy_data_block( int_vector_type target, @Const int_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean int_vector_growable( @Const int_vector_type vector);
+ public static native void int_vector_select_unique(int_vector_type vector);
+ public static native int_vector_type int_vector_alloc( int init_size, int arg1 );
+ public static native int_vector_type int_vector_alloc_private_wrapper(int init_size, int default_value, IntPointer data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_private_wrapper(int init_size, int default_value, IntBuffer data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_private_wrapper(int init_size, int default_value, int[] data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_shared_wrapper(int init_size, int default_value, IntPointer data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_shared_wrapper(int init_size, int default_value, IntBuffer data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_shared_wrapper(int init_size, int default_value, int[] data, int alloc_size);
+ public static native int_vector_type int_vector_alloc_strided_copy( @Const int_vector_type src, int start, int stop, int stride );
+ public static native int_vector_type int_vector_alloc_copy( @Const int_vector_type src);
+ public static native void int_vector_imul(int_vector_type vector, int index, int factor);
+ public static native void int_vector_scale(int_vector_type vector, int factor);
+ public static native void int_vector_div(int_vector_type vector, int divisor);
+ public static native int int_vector_reverse_iget(@Const int_vector_type vector, int index);
+ public static native int int_vector_iget(@Const int_vector_type arg0, int arg1);
+ public static native int int_vector_safe_iget(@Const int_vector_type arg0, int arg1);
+ public static native int int_vector_get_min(@Const int_vector_type vector);
+ public static native int int_vector_get_max(@Const int_vector_type vector);
+ public static native int int_vector_get_min_index(@Const int_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int int_vector_get_max_index(@Const int_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int int_vector_iadd( int_vector_type vector, int index, int delta);
+ public static native void int_vector_resize( int_vector_type vector, int new_size, int default_value );
+ public static native void int_vector_iset(int_vector_type arg0, int arg1, int arg2);
+ public static native void int_vector_iset_block(int_vector_type vector, int index, int block_size, int value);
+ public static native void int_vector_idel_block( int_vector_type vector, int index, int block_size);
+ public static native int int_vector_idel( int_vector_type vector, int index);
+ public static native int int_vector_del_value( int_vector_type vector, int del_value);
+ public static native void int_vector_insert( int_vector_type vector, int index, int value);
+ public static native void int_vector_append(int_vector_type arg0, int arg1);
+ public static native void int_vector_free_container(int_vector_type vector);
+ public static native void int_vector_free(int_vector_type arg0);
+ public static native void int_vector_free__(Pointer arg0);
+ public static native void int_vector_free_data(int_vector_type arg0);
+ public static native void int_vector_reset(int_vector_type arg0);
+ public static native void int_vector_reset__(Pointer __vector);
+ public static native int int_vector_size(@Const int_vector_type arg0 );
+ public static native void int_vector_lshift(int_vector_type vector, int shift);
+ public static native void int_vector_rshift(int_vector_type vector, int shift);
+ public static native int int_vector_pop(int_vector_type vector);
+ public static native int int_vector_get_first(@Const int_vector_type vector);
+ public static native int int_vector_get_last(@Const int_vector_type arg0 );
+ public static native IntPointer int_vector_get_ptr(@Const int_vector_type arg0 );
+ public static native IntPointer int_vector_alloc_data_copy( @Const int_vector_type vector );
+ public static native @Const IntPointer int_vector_get_const_ptr(@Const int_vector_type arg0 );
+ public static native @Cast("bool") boolean int_vector_init_linear(int_vector_type vector, int start_value, int end_value, int num_values);
+ public static native void int_vector_init_range(int_vector_type vector, int value1, int value2, int delta);
+ public static native void int_vector_set_many(int_vector_type arg0, int arg1, @Const IntPointer arg2, int arg3 );
+ public static native void int_vector_set_many(int_vector_type arg0, int arg1, @Const IntBuffer arg2, int arg3 );
+ public static native void int_vector_set_many(int_vector_type arg0, int arg1, @Const int[] arg2, int arg3 );
+ public static native void int_vector_set_all(int_vector_type vector, int value);
+ public static native void int_vector_append_many(int_vector_type vector, @Const IntPointer data, int length);
+ public static native void int_vector_append_many(int_vector_type vector, @Const IntBuffer data, int length);
+ public static native void int_vector_append_many(int_vector_type vector, @Const int[] data, int length);
+ public static native void int_vector_append_vector(int_vector_type vector, @Const int_vector_type other);
+ public static native void int_vector_shrink(int_vector_type arg0 );
+ public static native int int_vector_sum(@Const int_vector_type arg0 );
+ public static native int int_vector_get_default(@Const int_vector_type arg0 );
+ public static native void int_vector_set_default(int_vector_type vector, int default_value);
+ public static native void int_vector_append_default(int_vector_type vector, int default_value);
+ public static native void int_vector_iset_default(int_vector_type vector, int index, int default_value);
+ public static native @Cast("bool") boolean int_vector_is_sorted( @Const int_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean int_vector_contains(@Const int_vector_type vector, int value);
+ public static native @Cast("bool") boolean int_vector_contains_sorted(@Const int_vector_type vector, int value);
+ public static native int int_vector_index(@Const int_vector_type vector, int value);
+ public static native int int_vector_index_sorted(@Const int_vector_type vector, int value);
+ public static native void int_vector_sort(int_vector_type vector);
+ public static native void int_vector_rsort(int_vector_type vector);
+ public static native void int_vector_permute(int_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type int_vector_alloc_sort_perm(@Const int_vector_type vector);
+ public static native perm_vector_type int_vector_alloc_rsort_perm(@Const int_vector_type vector);
+ public static native void int_vector_fprintf(@Const int_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void int_vector_fprintf(@Const int_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void int_vector_fwrite(@Const int_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native int_vector_type int_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void int_vector_fread( int_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void int_vector_fwrite_data( @Const int_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void int_vector_fread_data( int_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean int_vector_equal(@Const int_vector_type vector1, @Const int_vector_type vector2);
+ public static native int int_vector_first_equal(@Const int_vector_type vector1, @Const int_vector_type vector2, int offset);
+ public static native int int_vector_first_not_equal(@Const int_vector_type vector1, @Const int_vector_type vector2, int offset);
+ public static native void int_vector_apply(int_vector_type vector, int_ftype func);
+ public static native int int_vector_count_equal( @Const int_vector_type vector, int cmp_value);
+ public static native int int_vector_element_size( @Const int_vector_type vector );
+ public static native void int_vector_range_fill(int_vector_type vector, int limit1, int delta, int limit2);
+ public static native void int_vector_shift(int_vector_type vector, int delta);
+
+ public static native int_vector_type int_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean int_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/int_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_int_VECTOR_CXX
+// #define ERT_int_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_VECTOR_H
+// #define ERT_VECTOR_H
+
+// #include
+// #include
+// #include
+
+// #ifdef __cplusplus
+// Targeting ../vector_func_type.java
+
+
+// Targeting ../vector_cmp_ftype.java
+
+
+// Targeting ../vector_type.java
+
+
+
+
+ public static native vector_type vector_alloc_new();
+ public static native void vector_grow_NULL( vector_type vector, int new_size );
+ public static native vector_type vector_alloc_NULL_initialized( int size );
+
+ public static native int vector_append_ref( vector_type arg0, @Const Pointer arg1);
+ public static native int vector_append_owned_ref( vector_type arg0, @Const Pointer arg1, free_ftype del);
+ public static native int vector_append_copy(vector_type arg0, @Const Pointer arg1, copyc_ftype arg2, free_ftype arg3);
+
+ public static native void vector_iset_ref( vector_type arg0, int arg1, @Const Pointer arg2);
+ public static native void vector_iset_owned_ref( vector_type arg0, int arg1, @Const Pointer arg2, free_ftype del);
+ public static native void vector_iset_copy(vector_type arg0, int arg1, @Const Pointer arg2, copyc_ftype arg3, free_ftype arg4);
+
+ public static native void vector_safe_iset_copy(vector_type vector, int index, @Const Pointer data, copyc_ftype copyc, free_ftype del);
+ public static native void vector_safe_iset_owned_ref(vector_type vector, int index, @Const Pointer data, free_ftype del);
+ public static native void vector_safe_iset_ref(vector_type vector, int index, @Const Pointer data);
+
+ public static native void vector_insert_ref( vector_type arg0, int arg1, @Const Pointer arg2);
+ public static native void vector_insert_owned_ref( vector_type arg0, int arg1, @Const Pointer arg2, free_ftype del);
+ public static native void vector_insert_copy(vector_type arg0, int arg1, @Const Pointer arg2, copyc_ftype arg3, free_ftype arg4);
+ public static native void vector_insert_buffer(vector_type vector, int index, @Const Pointer buffer, int buffer_size);
+
+ public static native void vector_push_front_ref( vector_type arg0, @Const Pointer arg1);
+ public static native void vector_push_front_owned_ref( vector_type arg0, @Const Pointer arg1, free_ftype del);
+ public static native void vector_push_front_copy(vector_type arg0, @Const Pointer arg1, copyc_ftype arg2, free_ftype arg3);
+
+
+ public static native void vector_clear(vector_type vector);
+ public static native void vector_free(vector_type arg0 );
+ public static native void vector_free__( Pointer arg );
+ public static native void vector_append_buffer(vector_type arg0, @Const Pointer arg1, int arg2);
+ public static native void vector_push_buffer(vector_type arg0, @Const Pointer arg1, int arg2);
+ public static native Pointer vector_safe_iget(@Const vector_type vector, int index);
+ public static native @Const Pointer vector_safe_iget_const(@Const vector_type vector, int index);
+ public static native @Const Pointer vector_iget_const(@Const vector_type arg0, int arg1 );
+ public static native Pointer vector_iget(@Const vector_type arg0, int arg1 );
+ public static native void vector_idel(vector_type vector, int index);
+ public static native void vector_shrink( vector_type vector, int new_size );
+ public static native Pointer vector_get_last(@Const vector_type arg0 );
+ public static native @Const Pointer vector_get_last_const(@Const vector_type arg0 );
+ public static native int vector_get_size( @Const vector_type arg0 );
+ public static native Pointer vector_pop_back(vector_type arg0 );
+ public static native Pointer vector_pop_front(vector_type arg0 );
+ public static native void vector_sort(vector_type vector, vector_cmp_ftype cmp);
+ public static native int_vector_type vector_alloc_sort_perm(@Const vector_type vector, vector_cmp_ftype cmp);
+ public static native void vector_permute(vector_type vector, @Const int_vector_type perm_vector);
+ public static native void vector_inplace_reverse(vector_type vector);
+ public static native vector_type vector_alloc_copy(@Const vector_type src, @Cast("bool") boolean deep_copy);
+
+ public static native void vector_iset_buffer(vector_type vector, int index, @Const Pointer buffer, int buffer_size);
+ public static native int vector_find( @Const vector_type vector, @Const Pointer ptr);
+
+ public static native @Cast("bool") boolean vector_is_instance( @Const Pointer __arg );
+ public static native vector_type vector_safe_cast( Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/vector.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/util_unlink.h
+
+/*
+ Copyright (C) 2017 Equinor ASA, Norway.
+
+ The file 'util_unlink.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_UTIL_UNLINK_H
+// #define ERT_UTIL_UNLINK_H
+
+
+// #ifdef __cplusplus
+// #endif
+
+ public static native int util_unlink(@Cast("const char*") BytePointer filename);
+ public static native int util_unlink(String filename);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+
+// Parsed from ert/util/util_endian.h
+
+/*
+ Copyright (C) 2012 Equinor ASA, Norway.
+
+ The file 'util_endian.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_UTIL_ENDIAN_H
+// #define ERT_UTIL_ENDIAN_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+
+// Parsed from ert/util/util.hpp
+
+/*
+ Copyright (C) 2018 Equinor ASA, Norway.
+
+ This is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or1
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef UTIL_CXX
+// #define UTIL_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/double_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_double_VECTOR_H
+// #define ERT_double_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../double_vector_type.java
+
+
+// Targeting ../double_ftype.java
+
+
+
+
+ public static native int double_vector_lookup_bin( @Const double_vector_type limits, double value, int guess);
+ public static native int double_vector_lookup_bin__( @Const double_vector_type limits, double value, int guess);
+ public static native void double_vector_inplace_div( double_vector_type vector, @Const double_vector_type inv_factor);
+ public static native void double_vector_inplace_mul( double_vector_type vector, @Const double_vector_type factor);
+ public static native void double_vector_inplace_add( double_vector_type vector, @Const double_vector_type delta);
+ public static native void double_vector_inplace_sub( double_vector_type vector, @Const double_vector_type delta);
+ public static native void double_vector_set_read_only( double_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean double_vector_get_read_only( @Const double_vector_type vector );
+ public static native void double_vector_memcpy_data( DoublePointer target, @Const double_vector_type src );
+ public static native void double_vector_memcpy_data( DoubleBuffer target, @Const double_vector_type src );
+ public static native void double_vector_memcpy_data( double[] target, @Const double_vector_type src );
+ public static native void double_vector_memcpy_from_data( double_vector_type target, @Const DoublePointer src, int src_size );
+ public static native void double_vector_memcpy_from_data( double_vector_type target, @Const DoubleBuffer src, int src_size );
+ public static native void double_vector_memcpy_from_data( double_vector_type target, @Const double[] src, int src_size );
+ public static native void double_vector_memcpy( double_vector_type target, @Const double_vector_type src);
+ public static native void double_vector_memcpy_data_block( double_vector_type target, @Const double_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean double_vector_growable( @Const double_vector_type vector);
+ public static native void double_vector_select_unique(double_vector_type vector);
+ public static native double_vector_type double_vector_alloc( int init_size, double arg1 );
+ public static native double_vector_type double_vector_alloc_private_wrapper(int init_size, double default_value, DoublePointer data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_private_wrapper(int init_size, double default_value, DoubleBuffer data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_private_wrapper(int init_size, double default_value, double[] data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_shared_wrapper(int init_size, double default_value, DoublePointer data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_shared_wrapper(int init_size, double default_value, DoubleBuffer data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_shared_wrapper(int init_size, double default_value, double[] data, int alloc_size);
+ public static native double_vector_type double_vector_alloc_strided_copy( @Const double_vector_type src, int start, int stop, int stride );
+ public static native double_vector_type double_vector_alloc_copy( @Const double_vector_type src);
+ public static native void double_vector_imul(double_vector_type vector, int index, double factor);
+ public static native void double_vector_scale(double_vector_type vector, double factor);
+ public static native void double_vector_div(double_vector_type vector, double divisor);
+ public static native double double_vector_reverse_iget(@Const double_vector_type vector, int index);
+ public static native double double_vector_iget(@Const double_vector_type arg0, int arg1);
+ public static native double double_vector_safe_iget(@Const double_vector_type arg0, int arg1);
+ public static native double double_vector_get_min(@Const double_vector_type vector);
+ public static native double double_vector_get_max(@Const double_vector_type vector);
+ public static native int double_vector_get_min_index(@Const double_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int double_vector_get_max_index(@Const double_vector_type vector, @Cast("bool") boolean reverse);
+ public static native double double_vector_iadd( double_vector_type vector, int index, double delta);
+ public static native void double_vector_resize( double_vector_type vector, int new_size, double default_value );
+ public static native void double_vector_iset(double_vector_type arg0, int arg1, double arg2);
+ public static native void double_vector_iset_block(double_vector_type vector, int index, int block_size, double value);
+ public static native void double_vector_idel_block( double_vector_type vector, int index, int block_size);
+ public static native double double_vector_idel( double_vector_type vector, int index);
+ public static native double double_vector_del_value( double_vector_type vector, double del_value);
+ public static native void double_vector_insert( double_vector_type vector, int index, double value);
+ public static native void double_vector_append(double_vector_type arg0, double arg1);
+ public static native void double_vector_free_container(double_vector_type vector);
+ public static native void double_vector_free(double_vector_type arg0);
+ public static native void double_vector_free__(Pointer arg0);
+ public static native void double_vector_free_data(double_vector_type arg0);
+ public static native void double_vector_reset(double_vector_type arg0);
+ public static native void double_vector_reset__(Pointer __vector);
+ public static native int double_vector_size(@Const double_vector_type arg0 );
+ public static native void double_vector_lshift(double_vector_type vector, int shift);
+ public static native void double_vector_rshift(double_vector_type vector, int shift);
+ public static native double double_vector_pop(double_vector_type vector);
+ public static native double double_vector_get_first(@Const double_vector_type vector);
+ public static native double double_vector_get_last(@Const double_vector_type arg0 );
+ public static native DoublePointer double_vector_get_ptr(@Const double_vector_type arg0 );
+ public static native DoublePointer double_vector_alloc_data_copy( @Const double_vector_type vector );
+ public static native @Const DoublePointer double_vector_get_const_ptr(@Const double_vector_type arg0 );
+ public static native @Cast("bool") boolean double_vector_init_linear(double_vector_type vector, double start_value, double end_value, int num_values);
+ public static native void double_vector_init_range(double_vector_type vector, double value1, double value2, double delta);
+ public static native void double_vector_set_many(double_vector_type arg0, int arg1, @Const DoublePointer arg2, int arg3 );
+ public static native void double_vector_set_many(double_vector_type arg0, int arg1, @Const DoubleBuffer arg2, int arg3 );
+ public static native void double_vector_set_many(double_vector_type arg0, int arg1, @Const double[] arg2, int arg3 );
+ public static native void double_vector_set_all(double_vector_type vector, double value);
+ public static native void double_vector_append_many(double_vector_type vector, @Const DoublePointer data, int length);
+ public static native void double_vector_append_many(double_vector_type vector, @Const DoubleBuffer data, int length);
+ public static native void double_vector_append_many(double_vector_type vector, @Const double[] data, int length);
+ public static native void double_vector_append_vector(double_vector_type vector, @Const double_vector_type other);
+ public static native void double_vector_shrink(double_vector_type arg0 );
+ public static native double double_vector_sum(@Const double_vector_type arg0 );
+ public static native double double_vector_get_default(@Const double_vector_type arg0 );
+ public static native void double_vector_set_default(double_vector_type vector, double default_value);
+ public static native void double_vector_append_default(double_vector_type vector, double default_value);
+ public static native void double_vector_iset_default(double_vector_type vector, int index, double default_value);
+ public static native @Cast("bool") boolean double_vector_is_sorted( @Const double_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean double_vector_contains(@Const double_vector_type vector, double value);
+ public static native @Cast("bool") boolean double_vector_contains_sorted(@Const double_vector_type vector, double value);
+ public static native int double_vector_index(@Const double_vector_type vector, double value);
+ public static native int double_vector_index_sorted(@Const double_vector_type vector, double value);
+ public static native void double_vector_sort(double_vector_type vector);
+ public static native void double_vector_rsort(double_vector_type vector);
+ public static native void double_vector_permute(double_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type double_vector_alloc_sort_perm(@Const double_vector_type vector);
+ public static native perm_vector_type double_vector_alloc_rsort_perm(@Const double_vector_type vector);
+ public static native void double_vector_fprintf(@Const double_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void double_vector_fprintf(@Const double_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void double_vector_fwrite(@Const double_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native double_vector_type double_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void double_vector_fread( double_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void double_vector_fwrite_data( @Const double_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void double_vector_fread_data( double_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean double_vector_equal(@Const double_vector_type vector1, @Const double_vector_type vector2);
+ public static native int double_vector_first_equal(@Const double_vector_type vector1, @Const double_vector_type vector2, int offset);
+ public static native int double_vector_first_not_equal(@Const double_vector_type vector1, @Const double_vector_type vector2, int offset);
+ public static native void double_vector_apply(double_vector_type vector, double_ftype func);
+ public static native int double_vector_count_equal( @Const double_vector_type vector, double cmp_value);
+ public static native int double_vector_element_size( @Const double_vector_type vector );
+ public static native void double_vector_range_fill(double_vector_type vector, double limit1, double delta, double limit2);
+ public static native void double_vector_shift(double_vector_type vector, double delta);
+
+ public static native double_vector_type double_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean double_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/double_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_double_VECTOR_CXX
+// #define ERT_double_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/bool_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_bool_VECTOR_H
+// #define ERT_bool_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../bool_vector_type.java
+
+
+// Targeting ../bool_ftype.java
+
+
+
+
+ public static native int bool_vector_lookup_bin( @Const bool_vector_type limits, @Cast("bool") boolean value, int guess);
+ public static native int bool_vector_lookup_bin__( @Const bool_vector_type limits, @Cast("bool") boolean value, int guess);
+ public static native void bool_vector_inplace_div( bool_vector_type vector, @Const bool_vector_type inv_factor);
+ public static native void bool_vector_inplace_mul( bool_vector_type vector, @Const bool_vector_type factor);
+ public static native void bool_vector_inplace_add( bool_vector_type vector, @Const bool_vector_type delta);
+ public static native void bool_vector_inplace_sub( bool_vector_type vector, @Const bool_vector_type delta);
+ public static native void bool_vector_set_read_only( bool_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean bool_vector_get_read_only( @Const bool_vector_type vector );
+ public static native void bool_vector_memcpy_data( @Cast("bool*") BoolPointer target, @Const bool_vector_type src );
+ public static native void bool_vector_memcpy_data( @Cast("bool*") boolean[] target, @Const bool_vector_type src );
+ public static native void bool_vector_memcpy_from_data( bool_vector_type target, @Cast("const bool*") BoolPointer src, int src_size );
+ public static native void bool_vector_memcpy_from_data( bool_vector_type target, @Cast("const bool*") boolean[] src, int src_size );
+ public static native void bool_vector_memcpy( bool_vector_type target, @Const bool_vector_type src);
+ public static native void bool_vector_memcpy_data_block( bool_vector_type target, @Const bool_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean bool_vector_growable( @Const bool_vector_type vector);
+ public static native void bool_vector_select_unique(bool_vector_type vector);
+ public static native bool_vector_type bool_vector_alloc( int init_size, @Cast("bool") boolean arg1 );
+ public static native bool_vector_type bool_vector_alloc_private_wrapper(int init_size, @Cast("bool") boolean default_value, @Cast("bool*") BoolPointer data, int alloc_size);
+ public static native bool_vector_type bool_vector_alloc_private_wrapper(int init_size, @Cast("bool") boolean default_value, @Cast("bool*") boolean[] data, int alloc_size);
+ public static native bool_vector_type bool_vector_alloc_shared_wrapper(int init_size, @Cast("bool") boolean default_value, @Cast("bool*") BoolPointer data, int alloc_size);
+ public static native bool_vector_type bool_vector_alloc_shared_wrapper(int init_size, @Cast("bool") boolean default_value, @Cast("bool*") boolean[] data, int alloc_size);
+ public static native bool_vector_type bool_vector_alloc_strided_copy( @Const bool_vector_type src, int start, int stop, int stride );
+ public static native bool_vector_type bool_vector_alloc_copy( @Const bool_vector_type src);
+ public static native void bool_vector_imul(bool_vector_type vector, int index, @Cast("bool") boolean factor);
+ public static native void bool_vector_scale(bool_vector_type vector, @Cast("bool") boolean factor);
+ public static native void bool_vector_div(bool_vector_type vector, @Cast("bool") boolean divisor);
+ public static native @Cast("bool") boolean bool_vector_reverse_iget(@Const bool_vector_type vector, int index);
+ public static native @Cast("bool") boolean bool_vector_iget(@Const bool_vector_type arg0, int arg1);
+ public static native @Cast("bool") boolean bool_vector_safe_iget(@Const bool_vector_type arg0, int arg1);
+ public static native @Cast("bool") boolean bool_vector_get_min(@Const bool_vector_type vector);
+ public static native @Cast("bool") boolean bool_vector_get_max(@Const bool_vector_type vector);
+ public static native int bool_vector_get_min_index(@Const bool_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int bool_vector_get_max_index(@Const bool_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean bool_vector_iadd( bool_vector_type vector, int index, @Cast("bool") boolean delta);
+ public static native void bool_vector_resize( bool_vector_type vector, int new_size, @Cast("bool") boolean default_value );
+ public static native void bool_vector_iset(bool_vector_type arg0, int arg1, @Cast("bool") boolean arg2);
+ public static native void bool_vector_iset_block(bool_vector_type vector, int index, int block_size, @Cast("bool") boolean value);
+ public static native void bool_vector_idel_block( bool_vector_type vector, int index, int block_size);
+ public static native @Cast("bool") boolean bool_vector_idel( bool_vector_type vector, int index);
+ public static native @Cast("bool") boolean bool_vector_del_value( bool_vector_type vector, @Cast("bool") boolean del_value);
+ public static native void bool_vector_insert( bool_vector_type vector, int index, @Cast("bool") boolean value);
+ public static native void bool_vector_append(bool_vector_type arg0, @Cast("bool") boolean arg1);
+ public static native void bool_vector_free_container(bool_vector_type vector);
+ public static native void bool_vector_free(bool_vector_type arg0);
+ public static native void bool_vector_free__(Pointer arg0);
+ public static native void bool_vector_free_data(bool_vector_type arg0);
+ public static native void bool_vector_reset(bool_vector_type arg0);
+ public static native void bool_vector_reset__(Pointer __vector);
+ public static native int bool_vector_size(@Const bool_vector_type arg0 );
+ public static native void bool_vector_lshift(bool_vector_type vector, int shift);
+ public static native void bool_vector_rshift(bool_vector_type vector, int shift);
+ public static native @Cast("bool") boolean bool_vector_pop(bool_vector_type vector);
+ public static native @Cast("bool") boolean bool_vector_get_first(@Const bool_vector_type vector);
+ public static native @Cast("bool") boolean bool_vector_get_last(@Const bool_vector_type arg0 );
+ public static native @Cast("bool*") BoolPointer bool_vector_get_ptr(@Const bool_vector_type arg0 );
+ public static native @Cast("bool*") BoolPointer bool_vector_alloc_data_copy( @Const bool_vector_type vector );
+ public static native @Cast("const bool*") BoolPointer bool_vector_get_const_ptr(@Const bool_vector_type arg0 );
+ public static native @Cast("bool") boolean bool_vector_init_linear(bool_vector_type vector, @Cast("bool") boolean start_value, @Cast("bool") boolean end_value, int num_values);
+ public static native void bool_vector_init_range(bool_vector_type vector, @Cast("bool") boolean value1, @Cast("bool") boolean value2, @Cast("bool") boolean delta);
+ public static native void bool_vector_set_many(bool_vector_type arg0, int arg1, @Cast("const bool*") BoolPointer arg2, int arg3 );
+ public static native void bool_vector_set_many(bool_vector_type arg0, int arg1, @Cast("const bool*") boolean[] arg2, int arg3 );
+ public static native void bool_vector_set_all(bool_vector_type vector, @Cast("bool") boolean value);
+ public static native void bool_vector_append_many(bool_vector_type vector, @Cast("const bool*") BoolPointer data, int length);
+ public static native void bool_vector_append_many(bool_vector_type vector, @Cast("const bool*") boolean[] data, int length);
+ public static native void bool_vector_append_vector(bool_vector_type vector, @Const bool_vector_type other);
+ public static native void bool_vector_shrink(bool_vector_type arg0 );
+ public static native @Cast("bool") boolean bool_vector_sum(@Const bool_vector_type arg0 );
+ public static native @Cast("bool") boolean bool_vector_get_default(@Const bool_vector_type arg0 );
+ public static native void bool_vector_set_default(bool_vector_type vector, @Cast("bool") boolean default_value);
+ public static native void bool_vector_append_default(bool_vector_type vector, @Cast("bool") boolean default_value);
+ public static native void bool_vector_iset_default(bool_vector_type vector, int index, @Cast("bool") boolean default_value);
+ public static native @Cast("bool") boolean bool_vector_is_sorted( @Const bool_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean bool_vector_contains(@Const bool_vector_type vector, @Cast("bool") boolean value);
+ public static native @Cast("bool") boolean bool_vector_contains_sorted(@Const bool_vector_type vector, @Cast("bool") boolean value);
+ public static native int bool_vector_index(@Const bool_vector_type vector, @Cast("bool") boolean value);
+ public static native int bool_vector_index_sorted(@Const bool_vector_type vector, @Cast("bool") boolean value);
+ public static native void bool_vector_sort(bool_vector_type vector);
+ public static native void bool_vector_rsort(bool_vector_type vector);
+ public static native void bool_vector_permute(bool_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type bool_vector_alloc_sort_perm(@Const bool_vector_type vector);
+ public static native perm_vector_type bool_vector_alloc_rsort_perm(@Const bool_vector_type vector);
+ public static native void bool_vector_fprintf(@Const bool_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void bool_vector_fprintf(@Const bool_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void bool_vector_fwrite(@Const bool_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native bool_vector_type bool_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void bool_vector_fread( bool_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void bool_vector_fwrite_data( @Const bool_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void bool_vector_fread_data( bool_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean bool_vector_equal(@Const bool_vector_type vector1, @Const bool_vector_type vector2);
+ public static native int bool_vector_first_equal(@Const bool_vector_type vector1, @Const bool_vector_type vector2, int offset);
+ public static native int bool_vector_first_not_equal(@Const bool_vector_type vector1, @Const bool_vector_type vector2, int offset);
+ public static native void bool_vector_apply(bool_vector_type vector, bool_ftype func);
+ public static native int bool_vector_count_equal( @Const bool_vector_type vector, @Cast("bool") boolean cmp_value);
+ public static native int bool_vector_element_size( @Const bool_vector_type vector );
+ public static native void bool_vector_range_fill(bool_vector_type vector, @Cast("bool") boolean limit1, @Cast("bool") boolean delta, @Cast("bool") boolean limit2);
+ public static native void bool_vector_shift(bool_vector_type vector, @Cast("bool") boolean delta);
+
+ public static native bool_vector_type bool_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean bool_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/bool_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_bool_VECTOR_CXX
+// #define ERT_bool_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/type_vector_functions.hpp
+
+/*
+ Copyright (C) 2013 Equinor ASA, Norway.
+
+ The file 'type_vector_functions.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+// #ifndef ERT_TYPE_VECTOR_FUNCTIONS_H
+// #define ERT_TYPE_VECTOR_FUNCTIONS_H
+
+// #include
+// #include
+// #include
+
+// #ifdef __cplusplus
+// #endif
+
+ public static native int_vector_type bool_vector_alloc_active_list( @Const bool_vector_type mask );
+ public static native bool_vector_type int_vector_alloc_mask( @Const int_vector_type active_list );
+ public static native int_vector_type bool_vector_alloc_active_index_list(@Const bool_vector_type mask, int default_value);
+ public static native @Cast("bool") boolean double_vector_approx_equal( @Const double_vector_type v1, @Const double_vector_type v12, double epsilon);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/type_vector_functions.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/timer.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'timer.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_TIMER_H
+// #define ERT_TIMER_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// #include
+// Targeting ../timer_type.java
+
+
+
+ public static native timer_type timer_alloc( @Cast("bool") boolean arg0 );
+ public static native void timer_free(timer_type arg0);
+ public static native void timer_start(timer_type arg0);
+ public static native double timer_stop(timer_type arg0);
+ public static native void timer_reset(timer_type arg0);
+
+ public static native double timer_get_total_time(@Const timer_type timer);
+ public static native double timer_get_max_time(@Const timer_type timer);
+ public static native double timer_get_min_time(@Const timer_type timer);
+ public static native double timer_get_avg_time(@Const timer_type timer);
+
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+
+// Parsed from ert/util/timer.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/time_t_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_time_t_VECTOR_H
+// #define ERT_time_t_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../time_t_vector_type.java
+
+
+// Targeting ../time_t_ftype.java
+
+
+
+
+ public static native int time_t_vector_lookup_bin( @Const time_t_vector_type limits, @ByVal @Cast("time_t*") Pointer value, int guess);
+ public static native int time_t_vector_lookup_bin__( @Const time_t_vector_type limits, @ByVal @Cast("time_t*") Pointer value, int guess);
+ public static native void time_t_vector_inplace_div( time_t_vector_type vector, @Const time_t_vector_type inv_factor);
+ public static native void time_t_vector_inplace_mul( time_t_vector_type vector, @Const time_t_vector_type factor);
+ public static native void time_t_vector_inplace_add( time_t_vector_type vector, @Const time_t_vector_type delta);
+ public static native void time_t_vector_inplace_sub( time_t_vector_type vector, @Const time_t_vector_type delta);
+ public static native void time_t_vector_set_read_only( time_t_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean time_t_vector_get_read_only( @Const time_t_vector_type vector );
+ public static native void time_t_vector_memcpy_data( @Cast("time_t*") Pointer target, @Const time_t_vector_type src );
+ public static native void time_t_vector_memcpy_from_data( time_t_vector_type target, @Cast("const time_t*") Pointer src, int src_size );
+ public static native void time_t_vector_memcpy( time_t_vector_type target, @Const time_t_vector_type src);
+ public static native void time_t_vector_memcpy_data_block( time_t_vector_type target, @Const time_t_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean time_t_vector_growable( @Const time_t_vector_type vector);
+ public static native void time_t_vector_select_unique(time_t_vector_type vector);
+ public static native time_t_vector_type time_t_vector_alloc( int init_size, @ByVal @Cast("time_t*") Pointer arg1 );
+ public static native time_t_vector_type time_t_vector_alloc_private_wrapper(int init_size, @ByVal @Cast("time_t*") Pointer default_value, @Cast("time_t*") Pointer data, int alloc_size);
+ public static native time_t_vector_type time_t_vector_alloc_shared_wrapper(int init_size, @ByVal @Cast("time_t*") Pointer default_value, @Cast("time_t*") Pointer data, int alloc_size);
+ public static native time_t_vector_type time_t_vector_alloc_strided_copy( @Const time_t_vector_type src, int start, int stop, int stride );
+ public static native time_t_vector_type time_t_vector_alloc_copy( @Const time_t_vector_type src);
+ public static native void time_t_vector_imul(time_t_vector_type vector, int index, @ByVal @Cast("time_t*") Pointer factor);
+ public static native void time_t_vector_scale(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer factor);
+ public static native void time_t_vector_div(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer divisor);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_reverse_iget(@Const time_t_vector_type vector, int index);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_iget(@Const time_t_vector_type arg0, int arg1);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_safe_iget(@Const time_t_vector_type arg0, int arg1);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_get_min(@Const time_t_vector_type vector);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_get_max(@Const time_t_vector_type vector);
+ public static native int time_t_vector_get_min_index(@Const time_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int time_t_vector_get_max_index(@Const time_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_iadd( time_t_vector_type vector, int index, @ByVal @Cast("time_t*") Pointer delta);
+ public static native void time_t_vector_resize( time_t_vector_type vector, int new_size, @ByVal @Cast("time_t*") Pointer default_value );
+ public static native void time_t_vector_iset(time_t_vector_type arg0, int arg1, @ByVal @Cast("time_t*") Pointer arg2);
+ public static native void time_t_vector_iset_block(time_t_vector_type vector, int index, int block_size, @ByVal @Cast("time_t*") Pointer value);
+ public static native void time_t_vector_idel_block( time_t_vector_type vector, int index, int block_size);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_idel( time_t_vector_type vector, int index);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_del_value( time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer del_value);
+ public static native void time_t_vector_insert( time_t_vector_type vector, int index, @ByVal @Cast("time_t*") Pointer value);
+ public static native void time_t_vector_append(time_t_vector_type arg0, @ByVal @Cast("time_t*") Pointer arg1);
+ public static native void time_t_vector_free_container(time_t_vector_type vector);
+ public static native void time_t_vector_free(time_t_vector_type arg0);
+ public static native void time_t_vector_free__(Pointer arg0);
+ public static native void time_t_vector_free_data(time_t_vector_type arg0);
+ public static native void time_t_vector_reset(time_t_vector_type arg0);
+ public static native void time_t_vector_reset__(Pointer __vector);
+ public static native int time_t_vector_size(@Const time_t_vector_type arg0 );
+ public static native void time_t_vector_lshift(time_t_vector_type vector, int shift);
+ public static native void time_t_vector_rshift(time_t_vector_type vector, int shift);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_pop(time_t_vector_type vector);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_get_first(@Const time_t_vector_type vector);
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_get_last(@Const time_t_vector_type arg0 );
+ public static native @Cast("time_t*") Pointer time_t_vector_get_ptr(@Const time_t_vector_type arg0 );
+ public static native @Cast("time_t*") Pointer time_t_vector_alloc_data_copy( @Const time_t_vector_type vector );
+ public static native @Cast("const time_t*") Pointer time_t_vector_get_const_ptr(@Const time_t_vector_type arg0 );
+ public static native @Cast("bool") boolean time_t_vector_init_linear(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer start_value, @ByVal @Cast("time_t*") Pointer end_value, int num_values);
+ public static native void time_t_vector_init_range(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value1, @ByVal @Cast("time_t*") Pointer value2, @ByVal @Cast("time_t*") Pointer delta);
+ public static native void time_t_vector_set_many(time_t_vector_type arg0, int arg1, @Cast("const time_t*") Pointer arg2, int arg3 );
+ public static native void time_t_vector_set_all(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value);
+ public static native void time_t_vector_append_many(time_t_vector_type vector, @Cast("const time_t*") Pointer data, int length);
+ public static native void time_t_vector_append_vector(time_t_vector_type vector, @Const time_t_vector_type other);
+ public static native void time_t_vector_shrink(time_t_vector_type arg0 );
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_sum(@Const time_t_vector_type arg0 );
+ public static native @ByVal @Cast("time_t*") Pointer time_t_vector_get_default(@Const time_t_vector_type arg0 );
+ public static native void time_t_vector_set_default(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer default_value);
+ public static native void time_t_vector_append_default(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer default_value);
+ public static native void time_t_vector_iset_default(time_t_vector_type vector, int index, @ByVal @Cast("time_t*") Pointer default_value);
+ public static native @Cast("bool") boolean time_t_vector_is_sorted( @Const time_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean time_t_vector_contains(@Const time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value);
+ public static native @Cast("bool") boolean time_t_vector_contains_sorted(@Const time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value);
+ public static native int time_t_vector_index(@Const time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value);
+ public static native int time_t_vector_index_sorted(@Const time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer value);
+ public static native void time_t_vector_sort(time_t_vector_type vector);
+ public static native void time_t_vector_rsort(time_t_vector_type vector);
+ public static native void time_t_vector_permute(time_t_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type time_t_vector_alloc_sort_perm(@Const time_t_vector_type vector);
+ public static native perm_vector_type time_t_vector_alloc_rsort_perm(@Const time_t_vector_type vector);
+ public static native void time_t_vector_fprintf(@Const time_t_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void time_t_vector_fprintf(@Const time_t_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void time_t_vector_fwrite(@Const time_t_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native time_t_vector_type time_t_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void time_t_vector_fread( time_t_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void time_t_vector_fwrite_data( @Const time_t_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void time_t_vector_fread_data( time_t_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean time_t_vector_equal(@Const time_t_vector_type vector1, @Const time_t_vector_type vector2);
+ public static native int time_t_vector_first_equal(@Const time_t_vector_type vector1, @Const time_t_vector_type vector2, int offset);
+ public static native int time_t_vector_first_not_equal(@Const time_t_vector_type vector1, @Const time_t_vector_type vector2, int offset);
+ public static native void time_t_vector_apply(time_t_vector_type vector, time_t_ftype func);
+ public static native int time_t_vector_count_equal( @Const time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer cmp_value);
+ public static native int time_t_vector_element_size( @Const time_t_vector_type vector );
+ public static native void time_t_vector_range_fill(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer limit1, @ByVal @Cast("time_t*") Pointer delta, @ByVal @Cast("time_t*") Pointer limit2);
+ public static native void time_t_vector_shift(time_t_vector_type vector, @ByVal @Cast("time_t*") Pointer delta);
+
+ public static native time_t_vector_type time_t_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean time_t_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/time_t_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_time_t_VECTOR_CXX
+// #define ERT_time_t_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/time_interval.hpp
+
+/*
+ Copyright (C) 2018 Equinor ASA, Norway.
+
+ This is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or1
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef TIME_INTERVAL_CXX
+// #define TIME_INTERVAL_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/thread_pool1.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'thread_pool1.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_THREAD_POOL_H
+// #define ERT_THREAD_POOL_H
+// #ifdef __cplusplus
+// Targeting ../thread_pool_type.java
+
+
+
+public static native void thread_pool_join(thread_pool_type arg0 );
+public static native thread_pool_type thread_pool_alloc(int arg0 );
+// Targeting ../Arg1_Pointer.java
+
+
+public static native void thread_pool_add_job(thread_pool_type arg0,Arg1_Pointer arg1, Pointer arg2);
+public static native void thread_pool_free(thread_pool_type arg0);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/test_work_area.hpp
+
+/*
+ Copyright (C) 2013 Equinor ASA, Norway.
+
+ The file 'test_work_area.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_TEST_WORK_AREA_H
+// #define ERT_TEST_WORK_AREA_H
+
+// #include
+// Targeting ../TestArea.java
+
+
+
+
+
+
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+ public static native @Cast("char*") BytePointer test_work_area_alloc_input_path( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_path );
+ public static native @Cast("char*") ByteBuffer test_work_area_alloc_input_path( @Cast("const test_work_area_type*") TestArea work_area, String input_path );
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc(@Cast("const char*") BytePointer test_name );
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc(String test_name );
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc__(@Cast("const char*") BytePointer test_name, @Cast("bool") boolean store_area );
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc__(String test_name, @Cast("bool") boolean store_area );
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc_relative(@Cast("const char*") BytePointer prefix, @Cast("const char*") BytePointer test_path);
+ public static native @Cast("test_work_area_type*") TestArea test_work_area_alloc_relative(String prefix, String test_path);
+
+ public static native void test_work_area_free(@Cast("test_work_area_type*") TestArea work_area);
+ public static native @Cast("const char*") BytePointer test_work_area_get_cwd( @Cast("const test_work_area_type*") TestArea work_area );
+ public static native @Cast("const char*") BytePointer test_work_area_get_original_cwd( @Cast("const test_work_area_type*") TestArea work_area );
+ public static native void test_work_area_install_file( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_src_file );
+ public static native void test_work_area_install_file( @Cast("const test_work_area_type*") TestArea work_area, String input_src_file );
+ public static native void test_work_area_copy_directory( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_directory);
+ public static native void test_work_area_copy_directory( @Cast("const test_work_area_type*") TestArea work_area, String input_directory);
+ public static native void test_work_area_copy_directory_content( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_directory);
+ public static native void test_work_area_copy_directory_content( @Cast("const test_work_area_type*") TestArea work_area, String input_directory);
+ public static native void test_work_area_copy_file( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_file);
+ public static native void test_work_area_copy_file( @Cast("const test_work_area_type*") TestArea work_area, String input_file);
+ public static native @Cast("bool") boolean test_work_area_copy_parent_directory( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_path);
+ public static native @Cast("bool") boolean test_work_area_copy_parent_directory( @Cast("const test_work_area_type*") TestArea work_area, String input_path);
+ public static native @Cast("bool") boolean test_work_area_copy_parent_content( @Cast("const test_work_area_type*") TestArea work_area, @Cast("const char*") BytePointer input_path);
+ public static native @Cast("bool") boolean test_work_area_copy_parent_content( @Cast("const test_work_area_type*") TestArea work_area, String input_path);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/test_work_area.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/test_util.hpp
+
+/*
+ Copyright (C) 2012 Equinor ASA, Norway.
+
+ The file 'test_util.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_TEST_UTIL_H
+// #define ERT_TEST_UTIL_H
+
+// #include
+// #include
+// #include
+// #include
+
+// #if defined(__APPLE__)
+// #include
+// #include
+// #endif
+
+// #ifdef __cplusplus
+// #endif
+
+
+ public static native void test_error_exit( @Cast("const char*") BytePointer fmt);
+ public static native void test_error_exit( String fmt);
+ public static native Pointer test_argpack_is_stringlist( Pointer arg );
+ public static native Pointer thread_pool_test_func1( Pointer arg );
+
+// #define test_exit( fmt, ...) test_exit__( __FILE__ , __LINE__ , fmt , __VA_ARGS__);
+ public static native void test_exit__(@Cast("const char*") BytePointer file, int line, @Cast("const char*") BytePointer fmt);
+ public static native void test_exit__(String file, int line, String fmt);
+
+// #define test_assert_string_equal( s1 , s2 ) test_assert_string_equal__(s1 , s2 , __FILE__ , __LINE__)
+ public static native void test_assert_string_equal__( @Cast("const char*") BytePointer s1, @Cast("const char*") BytePointer s2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_string_equal__( String s1, String s2, String file, int line);
+// #define test_assert_string_not_equal( s1 , s2 ) test_assert_string_not_equal__(s1 , s2 , __FILE__ , __LINE__)
+ public static native void test_assert_string_not_equal__( @Cast("const char*") BytePointer s1, @Cast("const char*") BytePointer s2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_string_not_equal__( String s1, String s2, String file, int line);
+
+ public static native @Cast("bool") boolean test_check_string_equal( @Cast("const char*") BytePointer s1, @Cast("const char*") BytePointer s2);
+ public static native @Cast("bool") boolean test_check_string_equal( String s1, String s2);
+
+// #define test_assert_int_equal( i1 , i2 ) test_assert_int_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_int_equal__( int i1, int i2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_int_equal__( int i1, int i2, String file, int line );
+
+// #define test_assert_int_not_equal( i1 , i2 ) test_assert_int_not_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_int_not_equal__( int i1, int i2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_int_not_equal__( int i1, int i2, String file, int line );
+
+// #define test_assert_long_equal( i1 , i2 ) test_assert_long_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_long_equal__( long i1, long i2, @Cast("const char*") BytePointer file, long line );
+ public static native void test_assert_long_equal__( long i1, long i2, String file, long line );
+
+// #define test_assert_long_not_equal( i1 , i2 ) test_assert_long_not_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_long_not_equal__( long i1, long i2, @Cast("const char*") BytePointer file, long line );
+ public static native void test_assert_long_not_equal__( long i1, long i2, String file, long line );
+
+// #define test_assert_uint_equal( i1 , i2 ) test_assert_uint_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_uint_equal__( @Cast("unsigned int") int i1, @Cast("unsigned int") int i2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_uint_equal__( @Cast("unsigned int") int i1, @Cast("unsigned int") int i2, String file, int line );
+
+// #define test_assert_uint_not_equal( i1 , i2 ) test_assert_uint_not_equal__( (i1) , (i2) , __FILE__ , __LINE__ )
+ public static native void test_assert_uint_not_equal__( @Cast("unsigned int") int i1, @Cast("unsigned int") int i2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_uint_not_equal__( @Cast("unsigned int") int i1, @Cast("unsigned int") int i2, String file, int line );
+
+// #define test_assert_size_t_equal( s1 , s2 ) test_assert_size_t_equal__( (s1) , (s2) , __FILE__ , __LINE__ )
+ public static native void test_assert_size_t_equal__( @Cast("size_t") long s1, @Cast("size_t") long s2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_size_t_equal__( @Cast("size_t") long s1, @Cast("size_t") long s2, String file, int line );
+
+// #define test_assert_size_t_not_equal( s1 , s2 ) test_assert_size_t_not_equal__( (s1) , (s2) , __FILE__ , __LINE__ )
+ public static native void test_assert_size_t_not_equal__( @Cast("size_t") long s1, @Cast("size_t") long s2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_size_t_not_equal__( @Cast("size_t") long s1, @Cast("size_t") long s2, String file, int line );
+
+
+// #define test_assert_double_equal( d1 , d2 ) test_assert_double_equal__( (d1) , (d2) , __FILE__ , __LINE__ )
+ public static native void test_assert_double_equal__( double d1, double d2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_double_equal__( double d1, double d2, String file, int line );
+ public static native @Cast("bool") boolean test_check_double_equal( double d1, double d2);
+
+// #define test_assert_float_equal( d1 , d2 ) test_assert_float_equal__( (d1) , (d2) , __FILE__ , __LINE__ )
+ public static native void test_assert_float_equal__( float d1, float d2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_float_equal__( float d1, float d2, String file, int line );
+ public static native @Cast("bool") boolean test_check_float_equal( float d1, float d2);
+
+// #define test_assert_double_not_equal( d1 , d2 ) test_assert_double_not_equal__( (d1) , (d2) , __FILE__ , __LINE__ )
+ public static native void test_assert_double_not_equal__( double d1, double d2, @Cast("const char*") BytePointer file, int line );
+ public static native void test_assert_double_not_equal__( double d1, double d2, String file, int line );
+
+// #define test_assert_bool_equal( b1 , b2 ) test_assert_bool_equal__( (b1) , (b2) , __FILE__ , __LINE__ )
+ public static native void test_assert_bool_equal__( @Cast("bool") boolean b1, @Cast("bool") boolean b2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_bool_equal__( @Cast("bool") boolean b1, @Cast("bool") boolean b2, String file, int line);
+
+// #define test_assert_bool_not_equal( b1 , b2 ) test_assert_bool_not_equal__( (b1) , (b2) , __FILE__ , __LINE__ )
+ public static native void test_assert_bool_not_equal__( @Cast("bool") boolean b1, @Cast("bool") boolean b2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_bool_not_equal__( @Cast("bool") boolean b1, @Cast("bool") boolean b2, String file, int line);
+
+// #define test_assert_true( value ) test_assert_true__( (value) , __FILE__ , __LINE__)
+ public static native void test_assert_true__( @Cast("bool") boolean value, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_true__( @Cast("bool") boolean value, String file, int line);
+
+// #define test_assert_false( value ) test_assert_false__( (value) , __FILE__ , __LINE__)
+ public static native void test_assert_false__( @Cast("bool") boolean value, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_false__( @Cast("bool") boolean value, String file, int line);
+
+// #define test_assert_time_t_equal( t1 , t2) test_assert_time_t_equal__((t1) , (t2) , __FILE__ , __LINE__)
+ public static native void test_assert_time_t_equal__( @ByVal @Cast("time_t*") Pointer t1, @ByVal @Cast("time_t*") Pointer t2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_time_t_equal__( @ByVal @Cast("time_t*") Pointer t1, @ByVal @Cast("time_t*") Pointer t2, String file, int line);
+
+// #define test_assert_time_t_not_equal( t1 , t2) test_assert_time_t_not_equal__((t1) , (t2) , __FILE__ , __LINE__)
+ public static native void test_assert_time_t_not_equal__( @ByVal @Cast("time_t*") Pointer t1, @ByVal @Cast("time_t*") Pointer t2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_time_t_not_equal__( @ByVal @Cast("time_t*") Pointer t1, @ByVal @Cast("time_t*") Pointer t2, String file, int line);
+
+// #define test_assert_ptr_equal( p1 , p2 ) test_assert_ptr_equal__( (p1) , (p2) , __FILE__ , __LINE__)
+ public static native void test_assert_ptr_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_ptr_equal__( @Const Pointer p1, @Const Pointer p2, String file, int line);
+
+// #define test_assert_ptr_not_equal(p1 , p2) test_assert_ptr_not_equal__( (p1) , (p2) , __FILE__ , __LINE__)
+ public static native void test_assert_ptr_not_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_ptr_not_equal__( @Const Pointer p1, @Const Pointer p2, String file, int line);
+
+// #define test_assert_NULL( p ) test_assert_NULL__( (p) , __FILE__ , __LINE__)
+ public static native void test_assert_NULL__( @Const Pointer p, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_NULL__( @Const Pointer p, String file, int line);
+
+// #define test_assert_not_NULL( p ) test_assert_not_NULL__( (p) , __FILE__ , __LINE__)
+ public static native void test_assert_not_NULL__( @Const Pointer p, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_not_NULL__( @Const Pointer p, String file, int line);
+
+// #define test_assert_mem_equal( p1 , p2 , byte_size ) test_assert_mem_equal__( (p1) , (p2) , (byte_size), __FILE__ , __LINE__)
+ public static native void test_assert_mem_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("size_t") long byte_size, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_mem_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("size_t") long byte_size, String file, int line);
+
+// #define test_assert_mem_not_equal( p1 , p2 , byte_size ) test_assert_mem_not_equal__( (p1) , (p2) , (byte_size), __FILE__ , __LINE__)
+ public static native void test_assert_mem_not_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("size_t") long byte_size, @Cast("const char*") BytePointer file, int line);
+ public static native void test_assert_mem_not_equal__( @Const Pointer p1, @Const Pointer p2, @Cast("size_t") long byte_size, String file, int line);
+
+// #define test_assert_file_content( input_file , expected) test_assert_file_content__( input_file , expected , __FILE__ , __LINE__)
+ public static native void test_assert_file_content__( @Cast("const char*") BytePointer input_file, @Cast("const char*") BytePointer expected, @Cast("const char*") BytePointer src_file, int line);
+ public static native void test_assert_file_content__( String input_file, String expected, String src_file, int line);
+
+ public static native void test_install_SIGNALS();
+
+ public static native @Cast("jmp_buf*") Pointer util_abort_test_jump_buffer();
+ public static native void test_util_addr2line();
+ public static native void test_assert_util_abort(@Cast("const char*") BytePointer function_name, Pointer arg);
+ public static native void test_assert_util_abort(String function_name, Pointer arg);
+
+
+// #ifdef __cplusplus
+// #endif
+
+// #ifdef __cplusplus
+
+// #define test_assert_throw(expr , exception_type )
+// {
+// bool throw_ok = false;
+// try {
+// expr;
+// }
+// catch (std::exception &e) {
+// if (dynamic_cast(&e))
+// throw_ok = true;
+// }
+// if (!throw_ok)
+// test_error_exit("Correct exception not thrown at %s:%d\n",__FILE__ , __LINE__);
+// }
+
+// #define test_assert_std_string_equal(s0, s1)
+// {
+// if (s0.compare(s1) != 0)
+// test_error_exit("Strings not equal at%s:%d (%s != %s)\n",
+// __FILE__ , __LINE__, s0.c_str(), s1.c_str());
+// }
+
+
+// #endif
+
+
+// #endif
+
+
+// Parsed from ert/util/test_util.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/stringlist.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'stringlist.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_STRINGLIST_H
+// #define ERT_STRINGLIST_H
+
+// #include
+// #include
+
+// #include
+// #include
+// #include
+
+// #ifdef __cplusplus
+// Targeting ../stringlist_type.java
+
+
+// Targeting ../string_cmp_ftype.java
+
+
+// Targeting ../file_pred_ftype.java
+
+
+
+ public static native int stringlist_select_files(stringlist_type names, @Cast("const char*") BytePointer path, file_pred_ftype predicate, @Const Pointer pred_arg);
+ public static native int stringlist_select_files(stringlist_type names, String path, file_pred_ftype predicate, @Const Pointer pred_arg);
+
+ public static native @Cast("const char*") BytePointer stringlist_get_last( @Const stringlist_type stringlist );
+ public static native @Cast("char*") BytePointer stringlist_pop( stringlist_type stringlist);
+ public static native void stringlist_deep_copy( stringlist_type target, @Const stringlist_type src);
+ public static native stringlist_type stringlist_alloc_deep_copy_with_limits(@Const stringlist_type src, int offset, int num_strings);
+ public static native stringlist_type stringlist_alloc_deep_copy_with_offset(@Const stringlist_type src, int offset);
+ public static native stringlist_type stringlist_alloc_deep_copy( @Const stringlist_type src );
+
+ public static native stringlist_type stringlist_alloc_new();
+ public static native void stringlist_free__(Pointer arg0 );
+ public static native void stringlist_free(stringlist_type arg0);
+ public static native void stringlist_clear(stringlist_type arg0 );
+
+ public static native void stringlist_append_copy(stringlist_type arg0, @Cast("const char*") BytePointer arg1);
+ public static native void stringlist_append_copy(stringlist_type arg0, String arg1);
+
+ public static native @Cast("const char*") BytePointer stringlist_safe_iget( @Const stringlist_type stringlist, int index);
+ public static native @Cast("bool") boolean stringlist_unique(@Const stringlist_type stringlist );
+ public static native @Cast("bool") boolean stringlist_iequal( @Const stringlist_type stringlist, int index, @Cast("const char*") BytePointer s );
+ public static native @Cast("bool") boolean stringlist_iequal( @Const stringlist_type stringlist, int index, String s );
+ public static native @Cast("const char*") BytePointer stringlist_iget(@Const stringlist_type arg0, int arg1);
+ public static native int stringlist_iget_as_int( @Const stringlist_type stringlist, int index, @Cast("bool*") BoolPointer valid);
+ public static native int stringlist_iget_as_int( @Const stringlist_type stringlist, int index, @Cast("bool*") boolean[] valid);
+ public static native double stringlist_iget_as_double( @Const stringlist_type stringlist, int index, @Cast("bool*") BoolPointer valid);
+ public static native double stringlist_iget_as_double( @Const stringlist_type stringlist, int index, @Cast("bool*") boolean[] valid);
+ public static native @Cast("bool") boolean stringlist_iget_as_bool( @Const stringlist_type stringlist, int index, @Cast("bool*") BoolPointer valid);
+ public static native @Cast("bool") boolean stringlist_iget_as_bool( @Const stringlist_type stringlist, int index, @Cast("bool*") boolean[] valid);
+ public static native @Cast("char*") BytePointer stringlist_iget_copy(@Const stringlist_type stringlist, int arg1 );
+ public static native @Cast("char*") BytePointer stringlist_alloc_joined_string(@Const stringlist_type arg0, @Cast("const char*") BytePointer arg1 );
+ public static native @Cast("char*") ByteBuffer stringlist_alloc_joined_string(@Const stringlist_type arg0, String arg1 );
+ public static native @Cast("char*") BytePointer stringlist_alloc_joined_substring( @Const stringlist_type s, int start_index, int end_index, @Cast("const char*") BytePointer sep );
+ public static native @Cast("char*") ByteBuffer stringlist_alloc_joined_substring( @Const stringlist_type s, int start_index, int end_index, String sep );
+ public static native @Cast("const char*") BytePointer stringlist_front(@Const stringlist_type stringlist);
+ public static native @Cast("const char*") BytePointer stringlist_back(@Const stringlist_type stringlist);
+
+
+
+ public static native void stringlist_iset_copy(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_iset_copy(stringlist_type arg0, int index, String arg2);
+ public static native void stringlist_iset_ref(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_iset_ref(stringlist_type arg0, int index, String arg2);
+ public static native void stringlist_iset_owned_ref(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_iset_owned_ref(stringlist_type arg0, int index, String arg2);
+
+ public static native void stringlist_insert_copy(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_insert_copy(stringlist_type arg0, int index, String arg2);
+ public static native void stringlist_insert_ref(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_insert_ref(stringlist_type arg0, int index, String arg2);
+ public static native void stringlist_insert_owned_ref(stringlist_type arg0, int index, @Cast("const char*") BytePointer arg2);
+ public static native void stringlist_insert_owned_ref(stringlist_type arg0, int index, String arg2);
+
+ public static native void stringlist_idel(stringlist_type stringlist, int index);
+
+ public static native int stringlist_get_size(@Const stringlist_type arg0 );
+ public static native void stringlist_fprintf(@Const stringlist_type arg0, @Cast("const char*") BytePointer arg1, @Cast("FILE*") Pointer arg2);
+ public static native void stringlist_fprintf(@Const stringlist_type arg0, String arg1, @Cast("FILE*") Pointer arg2);
+ public static native void stringlist_fprintf_fmt(@Const stringlist_type stringlist, @Const stringlist_type fmt_list, @Cast("FILE*") Pointer stream);
+
+
+ public static native stringlist_type stringlist_alloc_argv_copy(@Cast("const char**") PointerPointer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_copy(@Cast("const char**") @ByPtrPtr BytePointer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_copy(@Cast("const char**") @ByPtrPtr ByteBuffer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_copy(@Cast("const char**") @ByPtrPtr byte[] arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_ref(@Cast("const char**") PointerPointer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_ref(@Cast("const char**") @ByPtrPtr BytePointer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_ref(@Cast("const char**") @ByPtrPtr ByteBuffer arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_ref(@Cast("const char**") @ByPtrPtr byte[] arg0, int arg1 );
+ public static native stringlist_type stringlist_alloc_argv_owned_ref(@Cast("const char**") PointerPointer argv, int argc);
+ public static native stringlist_type stringlist_alloc_argv_owned_ref(@Cast("const char**") @ByPtrPtr BytePointer argv, int argc);
+ public static native stringlist_type stringlist_alloc_argv_owned_ref(@Cast("const char**") @ByPtrPtr ByteBuffer argv, int argc);
+ public static native stringlist_type stringlist_alloc_argv_owned_ref(@Cast("const char**") @ByPtrPtr byte[] argv, int argc);
+ public static native stringlist_type stringlist_alloc_from_split( @Cast("const char*") BytePointer input_string, @Cast("const char*") BytePointer sep );
+ public static native stringlist_type stringlist_alloc_from_split( String input_string, String sep );
+ public static native stringlist_type stringlist_fread_alloc(@Cast("FILE*") Pointer arg0 );
+
+ public static native void stringlist_append_stringlist_copy(stringlist_type arg0, @Const stringlist_type arg1 );
+ public static native void stringlist_insert_stringlist_copy(stringlist_type arg0, @Const stringlist_type arg1, int arg2);
+
+ public static native @Cast("bool") boolean stringlist_equal(@Const stringlist_type arg0, @Const stringlist_type arg1);
+ public static native @Cast("bool") boolean stringlist_contains(@Const stringlist_type arg0, @Cast("const char*") BytePointer arg1 );
+ public static native @Cast("bool") boolean stringlist_contains(@Const stringlist_type arg0, String arg1 );
+ public static native int_vector_type stringlist_find(@Const stringlist_type arg0, @Cast("const char*") BytePointer arg1);
+ public static native int_vector_type stringlist_find(@Const stringlist_type arg0, String arg1);
+ public static native int stringlist_find_first(@Const stringlist_type arg0, @Cast("const char*") BytePointer arg1 );
+ public static native int stringlist_find_first(@Const stringlist_type arg0, String arg1 );
+ public static native int stringlist_get_argc(@Const stringlist_type arg0 );
+ public static native @Cast("char**") PointerPointer stringlist_alloc_char_copy(@Const stringlist_type arg0 );
+ public static native @Cast("char**") PointerPointer stringlist_alloc_char_ref(@Const stringlist_type stringlist);
+ public static native void stringlist_fread(stringlist_type arg0, @Cast("FILE*") Pointer arg1 );
+ public static native void stringlist_fwrite(@Const stringlist_type arg0, @Cast("FILE*") Pointer arg1 );
+ public static native void stringlist_sort(stringlist_type arg0, string_cmp_ftype string_cmp);
+ public static native void stringlist_reverse( stringlist_type s );
+ public static native void stringlist_python_sort( stringlist_type s, int cmp_flag);
+
+// #ifdef ERT_HAVE_GLOB
+// #endif
+ public static native int stringlist_select_matching_files(stringlist_type names, @Cast("const char*") BytePointer path, @Cast("const char*") BytePointer file_pattern);
+ public static native int stringlist_select_matching_files(stringlist_type names, String path, String file_pattern);
+ public static native int stringlist_select_matching_elements(stringlist_type target, @Const stringlist_type src, @Cast("const char*") BytePointer pattern);
+ public static native int stringlist_select_matching_elements(stringlist_type target, @Const stringlist_type src, String pattern);
+ public static native int stringlist_append_matching_elements(stringlist_type target, @Const stringlist_type src, @Cast("const char*") BytePointer pattern);
+ public static native int stringlist_append_matching_elements(stringlist_type target, @Const stringlist_type src, String pattern);
+ public static native @Cast("bool") boolean stringlist_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/stringlist.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/string_util.hpp
+
+/*
+ Copyright (C) 2013 Equinor ASA, Norway.
+
+ The file 'string_util.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+// #ifndef ERT_STRING_UTIL_H
+// #define ERT_STRING_UTIL_H
+
+// #include
+// #include
+
+// #ifdef __cplusplus
+// #endif
+
+ public static native @Cast("bool") boolean string_util_init_active_list( @Cast("const char*") BytePointer range_string, int_vector_type active_list );
+ public static native @Cast("bool") boolean string_util_init_active_list( String range_string, int_vector_type active_list );
+ public static native @Cast("bool") boolean string_util_update_active_list( @Cast("const char*") BytePointer range_string, int_vector_type active_list );
+ public static native @Cast("bool") boolean string_util_update_active_list( String range_string, int_vector_type active_list );
+ public static native int_vector_type string_util_alloc_active_list( @Cast("const char*") BytePointer range_string );
+ public static native int_vector_type string_util_alloc_active_list( String range_string );
+
+ public static native @Cast("bool") boolean string_util_init_active_mask( @Cast("const char*") BytePointer range_string, bool_vector_type active_mask);
+ public static native @Cast("bool") boolean string_util_init_active_mask( String range_string, bool_vector_type active_mask);
+ public static native @Cast("bool") boolean string_util_update_active_mask( @Cast("const char*") BytePointer range_string, bool_vector_type active_mask);
+ public static native @Cast("bool") boolean string_util_update_active_mask( String range_string, bool_vector_type active_mask);
+ public static native bool_vector_type string_util_alloc_active_mask( @Cast("const char*") BytePointer range_string );
+ public static native bool_vector_type string_util_alloc_active_mask( String range_string );
+
+ public static native @Cast("bool") boolean string_util_update_value_list( @Cast("const char*") BytePointer range_string, int_vector_type value_list);
+ public static native @Cast("bool") boolean string_util_update_value_list( String range_string, int_vector_type value_list);
+ public static native @Cast("bool") boolean string_util_init_value_list( @Cast("const char*") BytePointer range_string, int_vector_type value_list );
+ public static native @Cast("bool") boolean string_util_init_value_list( String range_string, int_vector_type value_list );
+ public static native int_vector_type string_util_alloc_value_list(@Cast("const char*") BytePointer range_string);
+ public static native int_vector_type string_util_alloc_value_list(String range_string);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/string_util.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/statistics.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'statistics.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_STATISTICS_H
+// #define ERT_STATISTICS_H
+
+// #ifdef __cplusplus
+// #endif
+// #include
+
+public static native double statistics_std( @Const double_vector_type data_vector );
+public static native double statistics_mean( @Const double_vector_type data_vector );
+public static native double statistics_empirical_quantile( double_vector_type data, double quantile );
+public static native double statistics_empirical_quantile__( @Const double_vector_type data, double quantile );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/statistics.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/ssize_t.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ssize_t.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_SSIZE_T_H
+// #define ERT_SSIZE_T_H
+
+// #ifdef _MSC_VER
+/* maximum number of bytes addressable */
+// #ifdef _WIN64
+// #else
+// #endif
+// #else
+/* POSIX 2008 states that it should be defined here */
+// #include
+// #endif
+
+// #endif
+
+
+// Parsed from ert/util/ssize_t.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/size_t_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_size_t_VECTOR_H
+// #define ERT_size_t_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../size_t_vector_type.java
+
+
+// Targeting ../size_t_ftype.java
+
+
+
+
+ public static native int size_t_vector_lookup_bin( @Const size_t_vector_type limits, @Cast("size_t") long value, int guess);
+ public static native int size_t_vector_lookup_bin__( @Const size_t_vector_type limits, @Cast("size_t") long value, int guess);
+ public static native void size_t_vector_inplace_div( size_t_vector_type vector, @Const size_t_vector_type inv_factor);
+ public static native void size_t_vector_inplace_mul( size_t_vector_type vector, @Const size_t_vector_type factor);
+ public static native void size_t_vector_inplace_add( size_t_vector_type vector, @Const size_t_vector_type delta);
+ public static native void size_t_vector_inplace_sub( size_t_vector_type vector, @Const size_t_vector_type delta);
+ public static native void size_t_vector_set_read_only( size_t_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean size_t_vector_get_read_only( @Const size_t_vector_type vector );
+ public static native void size_t_vector_memcpy_data( @Cast("size_t*") SizeTPointer target, @Const size_t_vector_type src );
+ public static native void size_t_vector_memcpy_from_data( size_t_vector_type target, @Cast("const size_t*") SizeTPointer src, int src_size );
+ public static native void size_t_vector_memcpy( size_t_vector_type target, @Const size_t_vector_type src);
+ public static native void size_t_vector_memcpy_data_block( size_t_vector_type target, @Const size_t_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean size_t_vector_growable( @Const size_t_vector_type vector);
+ public static native void size_t_vector_select_unique(size_t_vector_type vector);
+ public static native size_t_vector_type size_t_vector_alloc( int init_size, @Cast("size_t") long arg1 );
+ public static native size_t_vector_type size_t_vector_alloc_private_wrapper(int init_size, @Cast("size_t") long default_value, @Cast("size_t*") SizeTPointer data, int alloc_size);
+ public static native size_t_vector_type size_t_vector_alloc_shared_wrapper(int init_size, @Cast("size_t") long default_value, @Cast("size_t*") SizeTPointer data, int alloc_size);
+ public static native size_t_vector_type size_t_vector_alloc_strided_copy( @Const size_t_vector_type src, int start, int stop, int stride );
+ public static native size_t_vector_type size_t_vector_alloc_copy( @Const size_t_vector_type src);
+ public static native void size_t_vector_imul(size_t_vector_type vector, int index, @Cast("size_t") long factor);
+ public static native void size_t_vector_scale(size_t_vector_type vector, @Cast("size_t") long factor);
+ public static native void size_t_vector_div(size_t_vector_type vector, @Cast("size_t") long divisor);
+ public static native @Cast("size_t") long size_t_vector_reverse_iget(@Const size_t_vector_type vector, int index);
+ public static native @Cast("size_t") long size_t_vector_iget(@Const size_t_vector_type arg0, int arg1);
+ public static native @Cast("size_t") long size_t_vector_safe_iget(@Const size_t_vector_type arg0, int arg1);
+ public static native @Cast("size_t") long size_t_vector_get_min(@Const size_t_vector_type vector);
+ public static native @Cast("size_t") long size_t_vector_get_max(@Const size_t_vector_type vector);
+ public static native int size_t_vector_get_min_index(@Const size_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int size_t_vector_get_max_index(@Const size_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("size_t") long size_t_vector_iadd( size_t_vector_type vector, int index, @Cast("size_t") long delta);
+ public static native void size_t_vector_resize( size_t_vector_type vector, int new_size, @Cast("size_t") long default_value );
+ public static native void size_t_vector_iset(size_t_vector_type arg0, int arg1, @Cast("size_t") long arg2);
+ public static native void size_t_vector_iset_block(size_t_vector_type vector, int index, int block_size, @Cast("size_t") long value);
+ public static native void size_t_vector_idel_block( size_t_vector_type vector, int index, int block_size);
+ public static native @Cast("size_t") long size_t_vector_idel( size_t_vector_type vector, int index);
+ public static native @Cast("size_t") long size_t_vector_del_value( size_t_vector_type vector, @Cast("size_t") long del_value);
+ public static native void size_t_vector_insert( size_t_vector_type vector, int index, @Cast("size_t") long value);
+ public static native void size_t_vector_append(size_t_vector_type arg0, @Cast("size_t") long arg1);
+ public static native void size_t_vector_free_container(size_t_vector_type vector);
+ public static native void size_t_vector_free(size_t_vector_type arg0);
+ public static native void size_t_vector_free__(Pointer arg0);
+ public static native void size_t_vector_free_data(size_t_vector_type arg0);
+ public static native void size_t_vector_reset(size_t_vector_type arg0);
+ public static native void size_t_vector_reset__(Pointer __vector);
+ public static native int size_t_vector_size(@Const size_t_vector_type arg0 );
+ public static native void size_t_vector_lshift(size_t_vector_type vector, int shift);
+ public static native void size_t_vector_rshift(size_t_vector_type vector, int shift);
+ public static native @Cast("size_t") long size_t_vector_pop(size_t_vector_type vector);
+ public static native @Cast("size_t") long size_t_vector_get_first(@Const size_t_vector_type vector);
+ public static native @Cast("size_t") long size_t_vector_get_last(@Const size_t_vector_type arg0 );
+ public static native @Cast("size_t*") SizeTPointer size_t_vector_get_ptr(@Const size_t_vector_type arg0 );
+ public static native @Cast("size_t*") SizeTPointer size_t_vector_alloc_data_copy( @Const size_t_vector_type vector );
+ public static native @Cast("const size_t*") SizeTPointer size_t_vector_get_const_ptr(@Const size_t_vector_type arg0 );
+ public static native @Cast("bool") boolean size_t_vector_init_linear(size_t_vector_type vector, @Cast("size_t") long start_value, @Cast("size_t") long end_value, int num_values);
+ public static native void size_t_vector_init_range(size_t_vector_type vector, @Cast("size_t") long value1, @Cast("size_t") long value2, @Cast("size_t") long delta);
+ public static native void size_t_vector_set_many(size_t_vector_type arg0, int arg1, @Cast("const size_t*") SizeTPointer arg2, int arg3 );
+ public static native void size_t_vector_set_all(size_t_vector_type vector, @Cast("size_t") long value);
+ public static native void size_t_vector_append_many(size_t_vector_type vector, @Cast("const size_t*") SizeTPointer data, int length);
+ public static native void size_t_vector_append_vector(size_t_vector_type vector, @Const size_t_vector_type other);
+ public static native void size_t_vector_shrink(size_t_vector_type arg0 );
+ public static native @Cast("size_t") long size_t_vector_sum(@Const size_t_vector_type arg0 );
+ public static native @Cast("size_t") long size_t_vector_get_default(@Const size_t_vector_type arg0 );
+ public static native void size_t_vector_set_default(size_t_vector_type vector, @Cast("size_t") long default_value);
+ public static native void size_t_vector_append_default(size_t_vector_type vector, @Cast("size_t") long default_value);
+ public static native void size_t_vector_iset_default(size_t_vector_type vector, int index, @Cast("size_t") long default_value);
+ public static native @Cast("bool") boolean size_t_vector_is_sorted( @Const size_t_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean size_t_vector_contains(@Const size_t_vector_type vector, @Cast("size_t") long value);
+ public static native @Cast("bool") boolean size_t_vector_contains_sorted(@Const size_t_vector_type vector, @Cast("size_t") long value);
+ public static native int size_t_vector_index(@Const size_t_vector_type vector, @Cast("size_t") long value);
+ public static native int size_t_vector_index_sorted(@Const size_t_vector_type vector, @Cast("size_t") long value);
+ public static native void size_t_vector_sort(size_t_vector_type vector);
+ public static native void size_t_vector_rsort(size_t_vector_type vector);
+ public static native void size_t_vector_permute(size_t_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type size_t_vector_alloc_sort_perm(@Const size_t_vector_type vector);
+ public static native perm_vector_type size_t_vector_alloc_rsort_perm(@Const size_t_vector_type vector);
+ public static native void size_t_vector_fprintf(@Const size_t_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void size_t_vector_fprintf(@Const size_t_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void size_t_vector_fwrite(@Const size_t_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native size_t_vector_type size_t_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void size_t_vector_fread( size_t_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void size_t_vector_fwrite_data( @Const size_t_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void size_t_vector_fread_data( size_t_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean size_t_vector_equal(@Const size_t_vector_type vector1, @Const size_t_vector_type vector2);
+ public static native int size_t_vector_first_equal(@Const size_t_vector_type vector1, @Const size_t_vector_type vector2, int offset);
+ public static native int size_t_vector_first_not_equal(@Const size_t_vector_type vector1, @Const size_t_vector_type vector2, int offset);
+ public static native void size_t_vector_apply(size_t_vector_type vector, size_t_ftype func);
+ public static native int size_t_vector_count_equal( @Const size_t_vector_type vector, @Cast("size_t") long cmp_value);
+ public static native int size_t_vector_element_size( @Const size_t_vector_type vector );
+ public static native void size_t_vector_range_fill(size_t_vector_type vector, @Cast("size_t") long limit1, @Cast("size_t") long delta, @Cast("size_t") long limit2);
+ public static native void size_t_vector_shift(size_t_vector_type vector, @Cast("size_t") long delta);
+
+ public static native size_t_vector_type size_t_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean size_t_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/size_t_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_size_t_VECTOR_CXX
+// #define ERT_size_t_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/rng.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'rng.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_RNG_H
+// #define ERT_RNG_H
+
+// #ifdef __cplusplus
+// #endif
+// #include
+
+// #include
+
+
+/** enum rng_init_mode */
+public static final int
+ INIT_DEFAULT = 0, /* The rng is initialized with the default seed values. */
+ INIT_CLOCK = 1, /* Four random seeds are calculated with the util_clock_seed() function. */
+ INIT_DEV_RANDOM = 2, /* Random content is read with the function util_fread_dev_random(). */
+ INIT_DEV_URANDOM = 3; /* Random content is read with the function util_fread_dev_urandom(). */
+
+
+/** enum rng_alg_type */
+public static final int
+ MZRAN = 1;
+// Targeting ../rng_forward_ftype.java
+
+
+// Targeting ../rng_set_state_ftype.java
+
+
+// Targeting ../rng_get_state_ftype.java
+
+
+// Targeting ../rng_alloc_ftype.java
+
+
+// Targeting ../rng_free_ftype.java
+
+
+// Targeting ../rng_fscanf_ftype.java
+
+
+// Targeting ../rng_fprintf_ftype.java
+
+
+// Targeting ../rng_type.java
+
+
+
+ public static native rng_type rng_alloc( @Cast("rng_alg_type") int type, @Cast("rng_init_mode") int init_mode );
+ public static native void rng_free( rng_type rng);
+ public static native @Cast("unsigned int") int rng_forward( rng_type rng );
+ public static native double rng_get_double( rng_type rng);
+ public static native void rng_rng_init( rng_type rng, rng_type seed_src);
+ public static native void rng_init( rng_type rng, @Cast("rng_init_mode") int init_mode );
+ public static native @Cast("rng_alg_type") int rng_get_type( @Const rng_type rng );
+ public static native void rng_fprintf_state( rng_type rng, @Cast("FILE*") Pointer stream );
+ public static native void rng_fscanf_state( rng_type rng, @Cast("FILE*") Pointer stream );
+ public static native int rng_state_size( @Const rng_type rng );
+ public static native void rng_save_state( rng_type rng, @Cast("const char*") BytePointer filename);
+ public static native void rng_save_state( rng_type rng, String filename);
+ public static native void rng_load_state( rng_type rng, @Cast("const char*") BytePointer filename);
+ public static native void rng_load_state( rng_type rng, String filename);
+
+ public static native void rng_set_state( rng_type rng, @Cast("const char*") BytePointer state);
+ public static native void rng_set_state( rng_type rng, String state);
+ public static native void rng_get_state( @Const rng_type rng, @Cast("char*") BytePointer state);
+ public static native void rng_get_state( @Const rng_type rng, @Cast("char*") ByteBuffer state);
+ public static native void rng_get_state( @Const rng_type rng, @Cast("char*") byte[] state);
+ public static native int rng_get_int( rng_type rng, int max_value );
+ public static native @Cast("unsigned int") int rng_get_max_int(@Const rng_type rng);
+
+ public static native double rng_std_normal( rng_type rng );
+ public static native void rng_shuffle_int( rng_type rng, IntPointer data, @Cast("size_t") long num_elements);
+ public static native void rng_shuffle_int( rng_type rng, IntBuffer data, @Cast("size_t") long num_elements);
+ public static native void rng_shuffle_int( rng_type rng, int[] data, @Cast("size_t") long num_elements);
+ public static native void rng_shuffle( rng_type rng, @Cast("char*") BytePointer data, @Cast("size_t") long element_size, @Cast("size_t") long num_elements);
+ public static native void rng_shuffle( rng_type rng, @Cast("char*") ByteBuffer data, @Cast("size_t") long element_size, @Cast("size_t") long num_elements);
+ public static native void rng_shuffle( rng_type rng, @Cast("char*") byte[] data, @Cast("size_t") long element_size, @Cast("size_t") long num_elements);
+ public static native void rng_free__( Pointer arg);
+
+ public static native rng_type rng_safe_cast( Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/rng.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/path_stack.hpp
+
+/*
+ Copyright (C) 2012 Equinor ASA, Norway.
+
+ The file 'path_stack.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_PATH_STACK_H
+// #define ERT_PATH_STACK_H
+
+// #ifdef __cplusplus
+// Targeting ../path_stack_type.java
+
+
+
+ public static native path_stack_type path_stack_alloc();
+ public static native void path_stack_pop( path_stack_type path_stack );
+ public static native void path_stack_push_cwd( path_stack_type path_stack );
+ public static native @Cast("bool") boolean path_stack_push( path_stack_type path_stack, @Cast("const char*") BytePointer path );
+ public static native @Cast("bool") boolean path_stack_push( path_stack_type path_stack, String path );
+ public static native void path_stack_free( path_stack_type path_stack );
+ public static native int path_stack_size( @Const path_stack_type path_stack );
+
+// #ifdef __cplusplus
+// #endif
+
+
+// #endif
+
+
+// Parsed from ert/util/path_stack.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/parser.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'parser.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_PARSER_H
+// #define ERT_PARSER_H
+// #include
+
+// #ifdef __cplusplus
+// Targeting ../basic_parser_type.java
+
+
+
+
+/**
+ GENERAL OVERVIEW
+
+ The parser_type is used to create a series of "tokens"
+ from a file or string buffer. In it's simplest form,
+ we define a token as a subset of a string separated by
+ by some split characters.
+
+ For example, if we define the normal space (i.e. " ") as
+ the only split character, "tokenizing" the string
+ "I like beer " would give the following result:
+
+ Token number 0 is "I"
+ Token number 1 is "like"
+ Token number 2 is "beer"
+
+ Note that all the white space (i.e. split characters) have been
+ removed.
+
+
+
+ COMMENTS
+
+ The parser can ignore comments when tokenzing
+ a file or buffer. To enable this feature, allocate
+ the parser_type with comment_start and comment_end
+ different from NULL. For example if we set both
+ comment_start and comment_end to "##", tokenizing
+ "I ## really ## like beer" would give:
+
+ Token number 0 is "I"
+ Token number 1 is "like"
+ Token number 2 is "beer"
+
+
+
+ SPECIAL CHARACTERS
+
+ Some times it can be useful to define a set of characters which
+ behave like white space in the sense that they separate tokens in
+ the source, but they do not get dropped. For example, letting "=" be
+ a special character, tokenzing "key=value" would give:
+
+ Token number 0 is "key"
+ Token number 1 is "="
+ Token number 2 is "value"
+
+ The special characters are given in the "specials" string when
+ allocating the parser.
+
+
+
+ QUOTERS
+
+ When parsing user input, the user often wants to provide e.g. a
+ filename with a white-space character in it. To support this, the
+ parser can be given a set of quoters. For example, letting " " be
+ white space and adding "'" to the quoters, tokenizing
+
+ "my_file = 'my documents with space in.txt'"
+
+ would give:
+
+ Token number 0 is "my_file"
+ Token number 1 is "="
+ Token number 2 is "'my documents with space in.txt'"
+
+ If wanted, the quoting characters can be removed
+ using the strip_quote_marks options when running
+ the parser on the buffer. The last token
+ in the example above would then be:
+
+ Token number 2 is "my documents with space in.txt"
+
+ To use one of the quoter characters in a string,
+ place a "\" in front of it. Building on our previous
+ example, let the string be "my_file = 'my \'doc.txt'"
+ Tokenzing this with strip_quote_marks set to true
+ would give:
+
+ Token number 0 is "my_file"
+ Token number 1 is "="
+ Token number 2 is "my 'doc.txt"
+
+ Note that the "\" in front of"'" has been removed.
+ If strip_quote_marks is set to false, the result is:
+
+
+ Token number 0 is "my_file"
+ Token number 1 is "="
+ Token number 2 is "'my \'doc.txt'"
+
+*/
+
+
+public static native basic_parser_type basic_parser_alloc(
+ @Cast("const char*") BytePointer whitespace,
+ @Cast("const char*") BytePointer quoters,
+ @Cast("const char*") BytePointer specials,
+ @Cast("const char*") BytePointer delete_set,
+ @Cast("const char*") BytePointer comment_start,
+ @Cast("const char*") BytePointer comment_end);
+public static native basic_parser_type basic_parser_alloc(
+ String whitespace,
+ String quoters,
+ String specials,
+ String delete_set,
+ String comment_start,
+ String comment_end); /** Set to NULL if not interessting. */
+
+
+public static native void basic_parser_set_splitters( basic_parser_type parser, @Cast("const char*") BytePointer splitters );
+public static native void basic_parser_set_splitters( basic_parser_type parser, String splitters );
+public static native void basic_parser_set_quoters( basic_parser_type parser, @Cast("const char*") BytePointer quoters );
+public static native void basic_parser_set_quoters( basic_parser_type parser, String quoters );
+public static native void basic_parser_set_specials( basic_parser_type parser, @Cast("const char*") BytePointer specials );
+public static native void basic_parser_set_specials( basic_parser_type parser, String specials );
+public static native void basic_parser_set_delete_set( basic_parser_type parser, @Cast("const char*") BytePointer delete_set );
+public static native void basic_parser_set_delete_set( basic_parser_type parser, String delete_set );
+public static native void basic_parser_set_comment_start( basic_parser_type parser, @Cast("const char*") BytePointer comment_start );
+public static native void basic_parser_set_comment_start( basic_parser_type parser, String comment_start );
+public static native void basic_parser_set_comment_end( basic_parser_type parser, @Cast("const char*") BytePointer comment_end );
+public static native void basic_parser_set_comment_end( basic_parser_type parser, String comment_end );
+
+
+public static native void basic_parser_free(
+ basic_parser_type parser);
+
+
+public static native stringlist_type basic_parser_tokenize_buffer(
+ @Const basic_parser_type parser,
+ @Cast("const char*") BytePointer buffer,
+ @Cast("bool") boolean strip_quote_marks);
+public static native stringlist_type basic_parser_tokenize_buffer(
+ @Const basic_parser_type parser,
+ String buffer,
+ @Cast("bool") boolean strip_quote_marks);
+
+
+public static native stringlist_type basic_parser_tokenize_file(
+ @Const basic_parser_type parser,
+ @Cast("const char*") BytePointer filename,
+ @Cast("bool") boolean strip_quote_marks);
+public static native stringlist_type basic_parser_tokenize_file(
+ @Const basic_parser_type parser,
+ String filename,
+ @Cast("bool") boolean strip_quote_marks);
+
+
+/* Pollution by Joakim: */
+
+public static native void basic_parser_strip_buffer(@Const basic_parser_type parser, @Cast("char**") PointerPointer __buffer);
+public static native void basic_parser_strip_buffer(@Const basic_parser_type parser, @Cast("char**") @ByPtrPtr BytePointer __buffer);
+public static native void basic_parser_strip_buffer(@Const basic_parser_type parser, @Cast("char**") @ByPtrPtr ByteBuffer __buffer);
+public static native void basic_parser_strip_buffer(@Const basic_parser_type parser, @Cast("char**") @ByPtrPtr byte[] __buffer);
+public static native @Cast("bool") boolean basic_parser_fseek_string(@Const basic_parser_type parser, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer string, @Cast("bool") boolean skip_string, @Cast("bool") boolean case_sensitive);
+public static native @Cast("bool") boolean basic_parser_fseek_string(@Const basic_parser_type parser, @Cast("FILE*") Pointer stream, String string, @Cast("bool") boolean skip_string, @Cast("bool") boolean case_sensitive);
+public static native @Cast("char*") BytePointer basic_parser_fread_alloc_file_content(@Cast("const char*") BytePointer filename, @Cast("const char*") BytePointer quote_set, @Cast("const char*") BytePointer delete_set, @Cast("const char*") BytePointer comment_start, @Cast("const char*") BytePointer comment_end);
+public static native @Cast("char*") ByteBuffer basic_parser_fread_alloc_file_content(String filename, String quote_set, String delete_set, String comment_start, String comment_end);
+// #ifdef __cplusplus
+// #endif // __cplusplus
+
+// #endif
+
+
+
+// Parsed from ert/util/parser.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/node_data.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/node_ctype.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'node_ctype.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_NODE_CTYPE_H
+// #define ERT_NODE_CTYPE_H
+// #ifdef __cplusplus
+// #endif
+
+
+/*
+ value : means a scalar which has been packed into the container
+ object.
+
+ pointer: means a (typed) pointer which points to a memory location
+ outside the container object (however the container can own
+ the memory).
+
+*/
+
+/** enum node_ctype */
+public static final int CTYPE_VOID_POINTER = 1,
+ CTYPE_INT_VALUE = 2,
+ CTYPE_DOUBLE_VALUE = 3,
+ CTYPE_FLOAT_VALUE = 4,
+ CTYPE_CHAR_VALUE = 5,
+ CTYPE_BOOL_VALUE = 6,
+ CTYPE_SIZE_T_VALUE = 7,
+ CTYPE_INVALID = 100;
+
+
+public static native @Cast("const char*") BytePointer node_ctype_name(@Cast("node_ctype") int arg0 );
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/node_ctype.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/mzran.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'mzran.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_MZRAN_H
+// #define ERT_MZRAN_H
+
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+// Targeting ../mzran_type.java
+
+
+
+public static final long MZRAN_MAX_VALUE = 4294967296L;
+public static final int MZRAN_STATE_SIZE = 16; /* Size of the seed buffer - in bytes. */
+
+
+public static native void mzran_fscanf_state( Pointer __rng, @Cast("FILE*") Pointer stream );
+public static native @Cast("unsigned int") int mzran_forward(Pointer __rng);
+public static native Pointer mzran_alloc( );
+public static native void mzran_set_state(Pointer __rng, @Cast("const char*") BytePointer seed_buffer);
+public static native void mzran_set_state(Pointer __rng, String seed_buffer);
+public static native void mzran_get_state(Pointer __rng, @Cast("char*") BytePointer state_buffer);
+public static native void mzran_get_state(Pointer __rng, @Cast("char*") ByteBuffer state_buffer);
+public static native void mzran_get_state(Pointer __rng, @Cast("char*") byte[] state_buffer);
+public static native double mzran_get_double(mzran_type rng);
+public static native int mzran_get_int( mzran_type rng, int max);
+public static native void mzran_fprintf_state( @Const Pointer __rng, @Cast("FILE*") Pointer stream);
+public static native void mzran_free( Pointer __rng );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/mzran.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/msvc_stdbool.h
+
+/*
+ When building with MSVC this file is renamed to stdbool.h and copied into the
+ list of headers. The situation is as follows:
+
+ - The ERT code makes use of stdbool in many places. The msvc C
+ compiler does not have a stdbool header, i.e. the #include
+ statements fail when compiling.
+
+ - When included in a C++ project the compiler already has a bool
+ defined; it is therefore important not to redefine this symbol if
+ we are compiling C++.
+
+*/
+
+// #ifndef __cplusplus
+public static final int TRUE = 1;
+public static final int FALSE = 0;
+
+// #endif
+
+
+// Parsed from ert/util/lookup_table.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'lookup_table.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_LOOKUP_TABLE_H
+// #define ERT_LOOKUP_TABLE_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// Targeting ../lookup_table_type.java
+
+
+
+
+ public static native void lookup_table_set_data( lookup_table_type lt, double_vector_type x, double_vector_type y, @Cast("bool") boolean data_owner );
+ public static native lookup_table_type lookup_table_alloc( double_vector_type x, double_vector_type y, @Cast("bool") boolean data_owner);
+ public static native lookup_table_type lookup_table_alloc_empty();
+ public static native void lookup_table_append( lookup_table_type lt, double x, double y);
+ public static native void lookup_table_free( lookup_table_type lt );
+ public static native double lookup_table_interp( lookup_table_type lt, double x);
+ public static native double lookup_table_get_max_value( lookup_table_type lookup_table );
+ public static native double lookup_table_get_min_value( lookup_table_type lookup_table );
+ public static native double lookup_table_get_max_arg( lookup_table_type lookup_table );
+ public static native double lookup_table_get_min_arg( lookup_table_type lookup_table );
+ public static native int lookup_table_get_size( @Const lookup_table_type lt );
+ public static native void lookup_table_set_low_limit( lookup_table_type lt, double _limit);
+ public static native @Cast("bool") boolean lookup_table_has_low_limit(@Const lookup_table_type lt );
+ public static native void lookup_table_set_high_limit( lookup_table_type lt, double _limit);
+ public static native @Cast("bool") boolean lookup_table_has_high_limit(@Const lookup_table_type lt );
+
+
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/lookup_table.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/long_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_long_VECTOR_H
+// #define ERT_long_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../long_vector_type.java
+
+
+// Targeting ../long_ftype.java
+
+
+
+
+ public static native int long_vector_lookup_bin( @Const long_vector_type limits, long value, int guess);
+ public static native int long_vector_lookup_bin__( @Const long_vector_type limits, long value, int guess);
+ public static native void long_vector_inplace_div( long_vector_type vector, @Const long_vector_type inv_factor);
+ public static native void long_vector_inplace_mul( long_vector_type vector, @Const long_vector_type factor);
+ public static native void long_vector_inplace_add( long_vector_type vector, @Const long_vector_type delta);
+ public static native void long_vector_inplace_sub( long_vector_type vector, @Const long_vector_type delta);
+ public static native void long_vector_set_read_only( long_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean long_vector_get_read_only( @Const long_vector_type vector );
+ public static native void long_vector_memcpy_data( CLongPointer target, @Const long_vector_type src );
+ public static native void long_vector_memcpy_from_data( long_vector_type target, @Const CLongPointer src, int src_size );
+ public static native void long_vector_memcpy( long_vector_type target, @Const long_vector_type src);
+ public static native void long_vector_memcpy_data_block( long_vector_type target, @Const long_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean long_vector_growable( @Const long_vector_type vector);
+ public static native void long_vector_select_unique(long_vector_type vector);
+ public static native long_vector_type long_vector_alloc( int init_size, long arg1 );
+ public static native long_vector_type long_vector_alloc_private_wrapper(int init_size, long default_value, CLongPointer data, int alloc_size);
+ public static native long_vector_type long_vector_alloc_shared_wrapper(int init_size, long default_value, CLongPointer data, int alloc_size);
+ public static native long_vector_type long_vector_alloc_strided_copy( @Const long_vector_type src, int start, int stop, int stride );
+ public static native long_vector_type long_vector_alloc_copy( @Const long_vector_type src);
+ public static native void long_vector_imul(long_vector_type vector, int index, long factor);
+ public static native void long_vector_scale(long_vector_type vector, long factor);
+ public static native void long_vector_div(long_vector_type vector, long divisor);
+ public static native long long_vector_reverse_iget(@Const long_vector_type vector, int index);
+ public static native long long_vector_iget(@Const long_vector_type arg0, int arg1);
+ public static native long long_vector_safe_iget(@Const long_vector_type arg0, int arg1);
+ public static native long long_vector_get_min(@Const long_vector_type vector);
+ public static native long long_vector_get_max(@Const long_vector_type vector);
+ public static native int long_vector_get_min_index(@Const long_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int long_vector_get_max_index(@Const long_vector_type vector, @Cast("bool") boolean reverse);
+ public static native long long_vector_iadd( long_vector_type vector, int index, long delta);
+ public static native void long_vector_resize( long_vector_type vector, int new_size, long default_value );
+ public static native void long_vector_iset(long_vector_type arg0, int arg1, long arg2);
+ public static native void long_vector_iset_block(long_vector_type vector, int index, int block_size, long value);
+ public static native void long_vector_idel_block( long_vector_type vector, int index, int block_size);
+ public static native long long_vector_idel( long_vector_type vector, int index);
+ public static native long long_vector_del_value( long_vector_type vector, long del_value);
+ public static native void long_vector_insert( long_vector_type vector, int index, long value);
+ public static native void long_vector_append(long_vector_type arg0, long arg1);
+ public static native void long_vector_free_container(long_vector_type vector);
+ public static native void long_vector_free(long_vector_type arg0);
+ public static native void long_vector_free__(Pointer arg0);
+ public static native void long_vector_free_data(long_vector_type arg0);
+ public static native void long_vector_reset(long_vector_type arg0);
+ public static native void long_vector_reset__(Pointer __vector);
+ public static native int long_vector_size(@Const long_vector_type arg0 );
+ public static native void long_vector_lshift(long_vector_type vector, int shift);
+ public static native void long_vector_rshift(long_vector_type vector, int shift);
+ public static native long long_vector_pop(long_vector_type vector);
+ public static native long long_vector_get_first(@Const long_vector_type vector);
+ public static native long long_vector_get_last(@Const long_vector_type arg0 );
+ public static native CLongPointer long_vector_get_ptr(@Const long_vector_type arg0 );
+ public static native CLongPointer long_vector_alloc_data_copy( @Const long_vector_type vector );
+ public static native @Const CLongPointer long_vector_get_const_ptr(@Const long_vector_type arg0 );
+ public static native @Cast("bool") boolean long_vector_init_linear(long_vector_type vector, long start_value, long end_value, int num_values);
+ public static native void long_vector_init_range(long_vector_type vector, long value1, long value2, long delta);
+ public static native void long_vector_set_many(long_vector_type arg0, int arg1, @Const CLongPointer arg2, int arg3 );
+ public static native void long_vector_set_all(long_vector_type vector, long value);
+ public static native void long_vector_append_many(long_vector_type vector, @Const CLongPointer data, int length);
+ public static native void long_vector_append_vector(long_vector_type vector, @Const long_vector_type other);
+ public static native void long_vector_shrink(long_vector_type arg0 );
+ public static native long long_vector_sum(@Const long_vector_type arg0 );
+ public static native long long_vector_get_default(@Const long_vector_type arg0 );
+ public static native void long_vector_set_default(long_vector_type vector, long default_value);
+ public static native void long_vector_append_default(long_vector_type vector, long default_value);
+ public static native void long_vector_iset_default(long_vector_type vector, int index, long default_value);
+ public static native @Cast("bool") boolean long_vector_is_sorted( @Const long_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean long_vector_contains(@Const long_vector_type vector, long value);
+ public static native @Cast("bool") boolean long_vector_contains_sorted(@Const long_vector_type vector, long value);
+ public static native int long_vector_index(@Const long_vector_type vector, long value);
+ public static native int long_vector_index_sorted(@Const long_vector_type vector, long value);
+ public static native void long_vector_sort(long_vector_type vector);
+ public static native void long_vector_rsort(long_vector_type vector);
+ public static native void long_vector_permute(long_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type long_vector_alloc_sort_perm(@Const long_vector_type vector);
+ public static native perm_vector_type long_vector_alloc_rsort_perm(@Const long_vector_type vector);
+ public static native void long_vector_fprintf(@Const long_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void long_vector_fprintf(@Const long_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void long_vector_fwrite(@Const long_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native long_vector_type long_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void long_vector_fread( long_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void long_vector_fwrite_data( @Const long_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void long_vector_fread_data( long_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean long_vector_equal(@Const long_vector_type vector1, @Const long_vector_type vector2);
+ public static native int long_vector_first_equal(@Const long_vector_type vector1, @Const long_vector_type vector2, int offset);
+ public static native int long_vector_first_not_equal(@Const long_vector_type vector1, @Const long_vector_type vector2, int offset);
+ public static native void long_vector_apply(long_vector_type vector, long_ftype func);
+ public static native int long_vector_count_equal( @Const long_vector_type vector, long cmp_value);
+ public static native int long_vector_element_size( @Const long_vector_type vector );
+ public static native void long_vector_range_fill(long_vector_type vector, long limit1, long delta, long limit2);
+ public static native void long_vector_shift(long_vector_type vector, long delta);
+
+ public static native long_vector_type long_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean long_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/long_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_long_VECTOR_CXX
+// #define ERT_long_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/hash_node.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'hash_node.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_HASH_NODE_H
+// #define ERT_HASH_NODE_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// Targeting ../hash_node_type.java
+
+
+// Targeting ../hashf_type.java
+
+
+/** enum hash_data_type */
+public static final int hash_ref_data = 0, hash_int_data = 1, hash_double_data = 2, hash_string_data = 3;
+
+
+public static native @Cast("bool") boolean hash_node_key_eq(@Const hash_node_type arg0, @Cast("uint32_t") int arg1, @Cast("const char*") BytePointer arg2);
+public static native @Cast("bool") boolean hash_node_key_eq(@Const hash_node_type arg0, @Cast("uint32_t") int arg1, String arg2);
+public static native hash_node_type hash_node_get_next(@Const hash_node_type arg0 );
+public static native @Cast("uint32_t") int hash_node_get_insert_nr(@Const hash_node_type arg0 );
+public static native void hash_node_set_next(hash_node_type arg0, @Const hash_node_type arg1 );
+public static native hash_node_type hash_node_alloc_new(@Cast("const char*") BytePointer arg0, node_data_type arg1, hashf_type arg2, @Cast("uint32_t") int arg3);
+public static native hash_node_type hash_node_alloc_new(String arg0, node_data_type arg1, hashf_type arg2, @Cast("uint32_t") int arg3);
+public static native void hash_node_set_insert_nr(hash_node_type arg0, @Cast("uint32_t") int arg1 );
+public static native @Cast("uint32_t") int hash_node_get_table_index(@Const hash_node_type arg0 );
+public static native @Cast("uint32_t") int hash_node_get_global_index(@Const hash_node_type arg0 );
+public static native @Cast("const char*") BytePointer hash_node_get_key(@Const hash_node_type arg0 );
+public static native node_data_type hash_node_get_data(@Const hash_node_type arg0);
+public static native void hash_node_free(hash_node_type arg0);
+public static native @Cast("uint32_t") int hash_node_set_table_index(hash_node_type arg0, @Cast("uint32_t") int arg1 );
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/hash_sll.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'hash_sll.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_HASH_SLL_H
+// #define ERT_HASH_SLL_H
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// Targeting ../hash_sll_type.java
+
+
+
+public static native @Cast("hash_sll_type**") PointerPointer hash_sll_alloc_table(int arg0 );
+/*hash_sll_type * hash_sll_alloc(void);*/
+public static native void hash_sll_del_node(hash_sll_type arg0, hash_node_type arg1);
+public static native void hash_sll_add_node(hash_sll_type arg0, hash_node_type arg1);
+public static native void hash_sll_free(hash_sll_type arg0);
+public static native @Cast("bool") boolean hash_sll_has_key(@Const hash_sll_type arg0, @Cast("uint32_t") int arg1, @Cast("const char*") BytePointer arg2);
+public static native @Cast("bool") boolean hash_sll_has_key(@Const hash_sll_type arg0, @Cast("uint32_t") int arg1, String arg2);
+public static native @Cast("bool") boolean hash_sll_empty(@Const hash_sll_type hash_sll);
+public static native hash_node_type hash_sll_get(@Const hash_sll_type arg0, @Cast("uint32_t") int arg1, @Cast("const char*") BytePointer arg2);
+public static native hash_node_type hash_sll_get(@Const hash_sll_type arg0, @Cast("uint32_t") int arg1, String arg2);
+public static native hash_node_type hash_sll_get_head(@Const hash_sll_type arg0);
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/hash_sll.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/hash_node.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/hash.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'hash.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_HASH_H
+// #define ERT_HASH_H
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+// #include
+// #include
+// #include
+// Targeting ../hash_type.java
+
+
+// Targeting ../hash_iter_type.java
+
+
+// Targeting ../hash_apply_ftype.java
+
+
+
+public static native hash_type hash_safe_cast( Pointer __arg );
+public static native @Const hash_type hash_safe_cast_const( @Const Pointer __arg );
+
+public static native hash_type hash_alloc();
+public static native void hash_iter_complete(hash_type arg0 );
+public static native void hash_free(hash_type arg0);
+public static native void hash_free__(Pointer arg0);
+public static native void hash_insert_ref(hash_type arg0, @Cast("const char*") BytePointer arg1, @Const Pointer arg2);
+public static native void hash_insert_ref(hash_type arg0, String arg1, @Const Pointer arg2);
+public static native void hash_insert_copy(hash_type arg0, @Cast("const char*") BytePointer arg1, @Const Pointer arg2, copyc_ftype arg3, free_ftype arg4);
+public static native void hash_insert_copy(hash_type arg0, String arg1, @Const Pointer arg2, copyc_ftype arg3, free_ftype arg4);
+public static native void hash_insert_string(hash_type arg0, @Cast("const char*") BytePointer arg1, @Cast("const char*") BytePointer arg2);
+public static native void hash_insert_string(hash_type arg0, String arg1, String arg2);
+public static native @Cast("bool") boolean hash_has_key(@Const hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native @Cast("bool") boolean hash_has_key(@Const hash_type arg0, String arg1);
+public static native Pointer hash_pop( hash_type hash, @Cast("const char*") BytePointer key);
+public static native Pointer hash_pop( hash_type hash, String key);
+public static native Pointer hash_safe_get( @Const hash_type hash, @Cast("const char*") BytePointer key );
+public static native Pointer hash_safe_get( @Const hash_type hash, String key );
+public static native Pointer hash_get(@Const hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native Pointer hash_get(@Const hash_type arg0, String arg1);
+public static native @Cast("char*") BytePointer hash_get_string(@Const hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native @Cast("char*") ByteBuffer hash_get_string(@Const hash_type arg0, String arg1);
+public static native void hash_del(hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native void hash_del(hash_type arg0, String arg1);
+public static native void hash_safe_del(hash_type arg0, @Cast("const char*") BytePointer arg1 );
+public static native void hash_safe_del(hash_type arg0, String arg1 );
+public static native void hash_clear(hash_type arg0);
+public static native int hash_get_size(@Const hash_type arg0);
+public static native void hash_set_keylist(@Const hash_type arg0, @Cast("char**") PointerPointer arg1);
+public static native void hash_set_keylist(@Const hash_type arg0, @Cast("char**") @ByPtrPtr BytePointer arg1);
+public static native void hash_set_keylist(@Const hash_type arg0, @Cast("char**") @ByPtrPtr ByteBuffer arg1);
+public static native void hash_set_keylist(@Const hash_type arg0, @Cast("char**") @ByPtrPtr byte[] arg1);
+public static native @Cast("char**") PointerPointer hash_alloc_keylist(@Const hash_type arg0);
+public static native stringlist_type hash_alloc_stringlist(@Const hash_type arg0 );
+
+public static native @Cast("char**") PointerPointer hash_alloc_sorted_keylist(@Const hash_type hash, int hash_get_cmp_value);
+// Targeting ../Cmp_Pointer_Pointer.java
+
+
+public static native @Cast("char**") PointerPointer hash_alloc_key_sorted_list(@Const hash_type hash, Cmp_Pointer_Pointer cmp);
+public static native @Cast("bool") boolean hash_key_list_compare(@Const hash_type hash1, @Const hash_type hash2);
+public static native void hash_insert_hash_owned_ref(hash_type arg0, @Cast("const char*") BytePointer arg1, @Const Pointer arg2, free_ftype arg3);
+public static native void hash_insert_hash_owned_ref(hash_type arg0, String arg1, @Const Pointer arg2, free_ftype arg3);
+public static native void hash_resize(hash_type hash, int new_size);
+
+public static native hash_iter_type hash_iter_alloc(@Const hash_type arg0);
+public static native void hash_iter_free(hash_iter_type arg0);
+public static native @Cast("bool") boolean hash_iter_is_complete(@Const hash_iter_type arg0);
+public static native @Cast("const char*") BytePointer hash_iter_get_next_key(hash_iter_type arg0);
+public static native Pointer hash_iter_get_next_value(hash_iter_type arg0);
+public static native void hash_iter_restart( hash_iter_type iter );
+
+public static native hash_type hash_alloc_from_options(@Const stringlist_type arg0);
+public static native @Cast("bool") boolean hash_add_option( hash_type hash, @Cast("const char*") BytePointer key_value);
+public static native @Cast("bool") boolean hash_add_option( hash_type hash, String key_value);
+
+public static native int hash_inc_counter(hash_type hash, @Cast("const char*") BytePointer counter_key);
+public static native int hash_inc_counter(hash_type hash, String counter_key);
+public static native int hash_get_counter(@Const hash_type hash, @Cast("const char*") BytePointer key);
+public static native int hash_get_counter(@Const hash_type hash, String key);
+public static native void hash_insert_int(hash_type arg0, @Cast("const char*") BytePointer arg1, int arg2);
+public static native void hash_insert_int(hash_type arg0, String arg1, int arg2);
+public static native int hash_get_int(@Const hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native int hash_get_int(@Const hash_type arg0, String arg1);
+public static native void hash_insert_double(hash_type arg0, @Cast("const char*") BytePointer arg1, double arg2);
+public static native void hash_insert_double(hash_type arg0, String arg1, double arg2);
+public static native double hash_get_double(@Const hash_type arg0, @Cast("const char*") BytePointer arg1);
+public static native double hash_get_double(@Const hash_type arg0, String arg1);
+public static native void hash_apply( hash_type hash, hash_apply_ftype func);
+
+public static native @Cast("bool") boolean hash_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/util/hash.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/float_vector.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_float_VECTOR_H
+// #define ERT_float_VECTOR_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// Targeting ../float_vector_type.java
+
+
+// Targeting ../float_ftype.java
+
+
+
+
+ public static native int float_vector_lookup_bin( @Const float_vector_type limits, float value, int guess);
+ public static native int float_vector_lookup_bin__( @Const float_vector_type limits, float value, int guess);
+ public static native void float_vector_inplace_div( float_vector_type vector, @Const float_vector_type inv_factor);
+ public static native void float_vector_inplace_mul( float_vector_type vector, @Const float_vector_type factor);
+ public static native void float_vector_inplace_add( float_vector_type vector, @Const float_vector_type delta);
+ public static native void float_vector_inplace_sub( float_vector_type vector, @Const float_vector_type delta);
+ public static native void float_vector_set_read_only( float_vector_type vector, @Cast("bool") boolean read_only);
+ public static native @Cast("bool") boolean float_vector_get_read_only( @Const float_vector_type vector );
+ public static native void float_vector_memcpy_data( FloatPointer target, @Const float_vector_type src );
+ public static native void float_vector_memcpy_data( FloatBuffer target, @Const float_vector_type src );
+ public static native void float_vector_memcpy_data( float[] target, @Const float_vector_type src );
+ public static native void float_vector_memcpy_from_data( float_vector_type target, @Const FloatPointer src, int src_size );
+ public static native void float_vector_memcpy_from_data( float_vector_type target, @Const FloatBuffer src, int src_size );
+ public static native void float_vector_memcpy_from_data( float_vector_type target, @Const float[] src, int src_size );
+ public static native void float_vector_memcpy( float_vector_type target, @Const float_vector_type src);
+ public static native void float_vector_memcpy_data_block( float_vector_type target, @Const float_vector_type src, int target_offset, int src_offset, int len);
+ public static native @Cast("bool") boolean float_vector_growable( @Const float_vector_type vector);
+ public static native void float_vector_select_unique(float_vector_type vector);
+ public static native float_vector_type float_vector_alloc( int init_size, float arg1 );
+ public static native float_vector_type float_vector_alloc_private_wrapper(int init_size, float default_value, FloatPointer data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_private_wrapper(int init_size, float default_value, FloatBuffer data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_private_wrapper(int init_size, float default_value, float[] data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_shared_wrapper(int init_size, float default_value, FloatPointer data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_shared_wrapper(int init_size, float default_value, FloatBuffer data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_shared_wrapper(int init_size, float default_value, float[] data, int alloc_size);
+ public static native float_vector_type float_vector_alloc_strided_copy( @Const float_vector_type src, int start, int stop, int stride );
+ public static native float_vector_type float_vector_alloc_copy( @Const float_vector_type src);
+ public static native void float_vector_imul(float_vector_type vector, int index, float factor);
+ public static native void float_vector_scale(float_vector_type vector, float factor);
+ public static native void float_vector_div(float_vector_type vector, float divisor);
+ public static native float float_vector_reverse_iget(@Const float_vector_type vector, int index);
+ public static native float float_vector_iget(@Const float_vector_type arg0, int arg1);
+ public static native float float_vector_safe_iget(@Const float_vector_type arg0, int arg1);
+ public static native float float_vector_get_min(@Const float_vector_type vector);
+ public static native float float_vector_get_max(@Const float_vector_type vector);
+ public static native int float_vector_get_min_index(@Const float_vector_type vector, @Cast("bool") boolean reverse);
+ public static native int float_vector_get_max_index(@Const float_vector_type vector, @Cast("bool") boolean reverse);
+ public static native float float_vector_iadd( float_vector_type vector, int index, float delta);
+ public static native void float_vector_resize( float_vector_type vector, int new_size, float default_value );
+ public static native void float_vector_iset(float_vector_type arg0, int arg1, float arg2);
+ public static native void float_vector_iset_block(float_vector_type vector, int index, int block_size, float value);
+ public static native void float_vector_idel_block( float_vector_type vector, int index, int block_size);
+ public static native float float_vector_idel( float_vector_type vector, int index);
+ public static native float float_vector_del_value( float_vector_type vector, float del_value);
+ public static native void float_vector_insert( float_vector_type vector, int index, float value);
+ public static native void float_vector_append(float_vector_type arg0, float arg1);
+ public static native void float_vector_free_container(float_vector_type vector);
+ public static native void float_vector_free(float_vector_type arg0);
+ public static native void float_vector_free__(Pointer arg0);
+ public static native void float_vector_free_data(float_vector_type arg0);
+ public static native void float_vector_reset(float_vector_type arg0);
+ public static native void float_vector_reset__(Pointer __vector);
+ public static native int float_vector_size(@Const float_vector_type arg0 );
+ public static native void float_vector_lshift(float_vector_type vector, int shift);
+ public static native void float_vector_rshift(float_vector_type vector, int shift);
+ public static native float float_vector_pop(float_vector_type vector);
+ public static native float float_vector_get_first(@Const float_vector_type vector);
+ public static native float float_vector_get_last(@Const float_vector_type arg0 );
+ public static native FloatPointer float_vector_get_ptr(@Const float_vector_type arg0 );
+ public static native FloatPointer float_vector_alloc_data_copy( @Const float_vector_type vector );
+ public static native @Const FloatPointer float_vector_get_const_ptr(@Const float_vector_type arg0 );
+ public static native @Cast("bool") boolean float_vector_init_linear(float_vector_type vector, float start_value, float end_value, int num_values);
+ public static native void float_vector_init_range(float_vector_type vector, float value1, float value2, float delta);
+ public static native void float_vector_set_many(float_vector_type arg0, int arg1, @Const FloatPointer arg2, int arg3 );
+ public static native void float_vector_set_many(float_vector_type arg0, int arg1, @Const FloatBuffer arg2, int arg3 );
+ public static native void float_vector_set_many(float_vector_type arg0, int arg1, @Const float[] arg2, int arg3 );
+ public static native void float_vector_set_all(float_vector_type vector, float value);
+ public static native void float_vector_append_many(float_vector_type vector, @Const FloatPointer data, int length);
+ public static native void float_vector_append_many(float_vector_type vector, @Const FloatBuffer data, int length);
+ public static native void float_vector_append_many(float_vector_type vector, @Const float[] data, int length);
+ public static native void float_vector_append_vector(float_vector_type vector, @Const float_vector_type other);
+ public static native void float_vector_shrink(float_vector_type arg0 );
+ public static native float float_vector_sum(@Const float_vector_type arg0 );
+ public static native float float_vector_get_default(@Const float_vector_type arg0 );
+ public static native void float_vector_set_default(float_vector_type vector, float default_value);
+ public static native void float_vector_append_default(float_vector_type vector, float default_value);
+ public static native void float_vector_iset_default(float_vector_type vector, int index, float default_value);
+ public static native @Cast("bool") boolean float_vector_is_sorted( @Const float_vector_type vector, @Cast("bool") boolean reverse);
+ public static native @Cast("bool") boolean float_vector_contains(@Const float_vector_type vector, float value);
+ public static native @Cast("bool") boolean float_vector_contains_sorted(@Const float_vector_type vector, float value);
+ public static native int float_vector_index(@Const float_vector_type vector, float value);
+ public static native int float_vector_index_sorted(@Const float_vector_type vector, float value);
+ public static native void float_vector_sort(float_vector_type vector);
+ public static native void float_vector_rsort(float_vector_type vector);
+ public static native void float_vector_permute(float_vector_type vector, @Const perm_vector_type perm);
+ public static native perm_vector_type float_vector_alloc_sort_perm(@Const float_vector_type vector);
+ public static native perm_vector_type float_vector_alloc_rsort_perm(@Const float_vector_type vector);
+ public static native void float_vector_fprintf(@Const float_vector_type vector, @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer name, @Cast("const char*") BytePointer fmt);
+ public static native void float_vector_fprintf(@Const float_vector_type vector, @Cast("FILE*") Pointer stream, String name, String fmt);
+ public static native void float_vector_fwrite(@Const float_vector_type vector, @Cast("FILE*") Pointer stream);
+ public static native float_vector_type float_vector_fread_alloc( @Cast("FILE*") Pointer stream );
+ public static native void float_vector_fread( float_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void float_vector_fwrite_data( @Const float_vector_type vector, @Cast("FILE*") Pointer stream );
+ public static native void float_vector_fread_data( float_vector_type vector, int size, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean float_vector_equal(@Const float_vector_type vector1, @Const float_vector_type vector2);
+ public static native int float_vector_first_equal(@Const float_vector_type vector1, @Const float_vector_type vector2, int offset);
+ public static native int float_vector_first_not_equal(@Const float_vector_type vector1, @Const float_vector_type vector2, int offset);
+ public static native void float_vector_apply(float_vector_type vector, float_ftype func);
+ public static native int float_vector_count_equal( @Const float_vector_type vector, float cmp_value);
+ public static native int float_vector_element_size( @Const float_vector_type vector );
+ public static native void float_vector_range_fill(float_vector_type vector, float limit1, float delta, float limit2);
+ public static native void float_vector_shift(float_vector_type vector, float delta);
+
+ public static native float_vector_type float_vector_safe_cast( Pointer __arg );
+ public static native @Cast("bool") boolean float_vector_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+//
+
+
+
+
+
+
+// Parsed from ert/util/float_vector.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'vector_template.hpp' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_float_VECTOR_CXX
+// #define ERT_float_VECTOR_CXX
+
+// #include
+
+// #endif
+
+
+// Parsed from ert/util/ert_unique_ptr.hpp
+
+// #ifndef ERT_UNIQUE_PTR
+// #define ERT_UNIQUE_PTR
+
+// #include
+
+
+
+// #endif
+
+
+
+
+// Parsed from ert/util/ecl_version.hpp
+
+/*
+ Copyright (C) 2016 Equinor ASA, Norway.
+
+ The file 'ecl_version.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ECL_VERSION
+// #define ECL_VERSION
+
+// #include
+
+// #ifdef __cplusplus
+// #endif
+
+public static native @Cast("const char*") BytePointer ecl_version_get_git_commit();
+public static native @Cast("const char*") BytePointer ecl_version_get_git_commit_short();
+public static native @Cast("const char*") BytePointer ecl_version_get_build_time();
+public static native int ecl_version_get_major_version();
+public static native int ecl_version_get_minor_version();
+public static native @Cast("const char*") BytePointer ecl_version_get_micro_version();
+public static native @Cast("bool") boolean ecl_version_is_ert_devel_version();
+
+// #ifdef __cplusplus
+// #endif
+
+// #endif
+
+
+// Parsed from ert/util/ecl_version.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/util/build_config.h
+
+// #define HAVE_GMTIME_R
+// #define HAVE_TIMEGM
+// #define HAVE_LOCALTIME_R
+// #define HAVE_REALPATH
+// #define HAVE__USLEEP
+// #define HAVE_FNMATCH
+// #define HAVE_FTRUNCATE
+// #define HAVE_POSIX_CHDIR
+/* #undef HAVE_WINDOWS_CHDIR */
+// #define HAVE_POSIX_GETCWD
+/* #undef HAVE_WINDOWS_GETCWD */
+// #define HAVE_TZNAME
+/* #undef HAVE_ROUND */
+// #define HAVE_VA_COPY
+// #define HAVE_SIGBUS
+// #define HAVE_PTHREAD
+// #define HAVE_PID_T
+// #define HAVE_EXECINFO
+// #define HAVE_FORK
+// #define HAVE_POSIX_MKDIR
+/* #undef HAVE_WINDOWS_MKDIR */
+// #define HAVE_GETPWUID
+// #define HAVE_FSYNC
+// #define HAVE_CHMOD
+// #define HAVE_MODE_T
+// #define HAVE_CXX_SHARED_PTR
+// #define HAVE_POSIX_UNLINK
+/* #undef HAVE_WINDOWS_UNLINK */
+/* #undef HAVE_SIGHANDLER_T */
+
+// #define HAVE_POSIX_ACCESS
+/* #undef HAVE_WINDOWS__ACCESS */
+/* #undef HAVE_WINDOWS_GET_TEMP_PATH */
+/* #undef HAVE_WINDOWS_TZNAME */
+
+// #ifdef HAVE_VA_COPY
+// #else
+// #define UTIL_VA_COPY(target,src) target = src
+// #endif
+
+
+/*
+ The HAVE_UTIL_ABORT_INTERCEPT is required to allow testing of the
+ util_abort() functionality; in prinicple this could be implemented
+ also in the simple util_abort() function without backtrace
+ capabilities, but currently it is only implemented in the full
+ util_abort_gnu() function.
+*/
+
+// #ifdef HAVE_FORK
+// #endif
+
+
+// Parsed from ert/util/build_config.hpp
+
+// #include
+
+
+// Parsed from ert/util/buffer.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'buffer.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_BUFFER_H
+// #define ERT_BUFFER_H
+
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+// #include
+// #include
+// #include
+
+// #include
+// #include
+// #include
+// Targeting ../buffer_type.java
+
+
+
+ public static native buffer_type buffer_alloc( @Cast("size_t") long buffer_size );
+ public static native buffer_type buffer_alloc_private_wrapper(Pointer data, @Cast("size_t") long buffer_size );
+ public static native @Cast("bool") boolean buffer_search_replace( buffer_type buffer, @Cast("const char*") BytePointer old_string, @Cast("const char*") BytePointer new_string);
+ public static native @Cast("bool") boolean buffer_search_replace( buffer_type buffer, String old_string, String new_string);
+ public static native void buffer_shrink_to_fit( buffer_type buffer );
+ public static native void buffer_memshift(buffer_type buffer, @Cast("size_t") long offset, @Cast("ssize_t") long shift);
+ public static native @Cast("bool") boolean buffer_strstr( buffer_type buffer, @Cast("const char*") BytePointer expr );
+ public static native @Cast("bool") boolean buffer_strstr( buffer_type buffer, String expr );
+ public static native @Cast("bool") boolean buffer_strchr( buffer_type buffer, int c);
+ public static native void buffer_replace_string( buffer_type buffer, @Cast("size_t") long offset, @Cast("size_t") long old_size, @Cast("const char*") BytePointer new_string);
+ public static native void buffer_replace_string( buffer_type buffer, @Cast("size_t") long offset, @Cast("size_t") long old_size, String new_string);
+ public static native void buffer_replace_data(buffer_type buffer, @Cast("size_t") long offset, @Cast("size_t") long old_size, @Const Pointer new_data, @Cast("size_t") long new_size);
+
+ public static native void buffer_free_container( buffer_type buffer );
+ public static native void buffer_free( buffer_type buffer);
+ public static native @Cast("size_t") long buffer_fread(buffer_type buffer, Pointer target_ptr, @Cast("size_t") long item_size, @Cast("size_t") long items);
+ public static native @Cast("size_t") long buffer_fwrite(buffer_type buffer, @Const Pointer src_ptr, @Cast("size_t") long item_size, @Cast("size_t") long items);
+ public static native void buffer_summarize(@Const buffer_type buffer, @Cast("const char*") BytePointer arg1);
+ public static native void buffer_summarize(@Const buffer_type buffer, String arg1);
+
+ public static native void buffer_fwrite_char_ptr(buffer_type buffer, @Cast("const char*") BytePointer string_ptr );
+ public static native void buffer_fwrite_char_ptr(buffer_type buffer, String string_ptr );
+ public static native void buffer_strcat(buffer_type buffer, @Cast("const char*") BytePointer string);
+ public static native void buffer_strcat(buffer_type buffer, String string);
+ public static native void buffer_fwrite_char(buffer_type buffer, @Cast("char") byte value);
+ public static native void buffer_fwrite_int(buffer_type buffer, int value);
+ public static native void buffer_fskip_bool(buffer_type buffer);
+ public static native void buffer_fwrite_bool(buffer_type buffer, @Cast("bool") boolean value);
+ public static native int buffer_fread_int(buffer_type buffer );
+ public static native @Cast("bool") boolean buffer_fread_bool(buffer_type buffer);
+ public static native long buffer_fread_long(buffer_type buffer);
+ public static native void buffer_fskip_long(buffer_type buffer);
+ public static native void buffer_store(@Const buffer_type buffer, @Cast("const char*") BytePointer filename);
+ public static native void buffer_store(@Const buffer_type buffer, String filename);
+ public static native @Cast("size_t") long buffer_get_offset(@Const buffer_type buffer);
+ public static native @Cast("size_t") long buffer_get_alloc_size(@Const buffer_type buffer);
+ public static native @Cast("size_t") long buffer_get_size(@Const buffer_type buffer);
+ public static native @Cast("size_t") long buffer_get_string_size( @Const buffer_type buffer );
+ public static native @Cast("size_t") long buffer_get_remaining_size(@Const buffer_type buffer);
+ public static native Pointer buffer_get_data(@Const buffer_type buffer);
+ public static native Pointer buffer_alloc_data_copy(@Const buffer_type buffer);
+ public static native Pointer buffer_iget_data(@Const buffer_type buffer, @Cast("size_t") long offset);
+ public static native void buffer_stream_fwrite( @Const buffer_type buffer, @Cast("FILE*") Pointer stream );
+ public static native int buffer_fgetc( buffer_type buffer );
+ public static native void buffer_fseek(buffer_type buffer, @Cast("ssize_t") long offset, int whence);
+ public static native void buffer_fskip(buffer_type buffer, @Cast("ssize_t") long offset);
+ public static native void buffer_clear( buffer_type buffer );
+
+ public static native void buffer_fskip_int(buffer_type buffer);
+ public static native void buffer_fskip_time_t(buffer_type buffer);
+ public static native @ByVal @Cast("time_t*") Pointer buffer_fread_time_t(buffer_type buffer);
+ public static native void buffer_fwrite_time_t(buffer_type buffer, @ByVal @Cast("time_t*") Pointer value);
+ public static native void buffer_rewind(buffer_type buffer );
+
+ public static native double buffer_fread_double(buffer_type buffer);
+ public static native void buffer_fwrite_double(buffer_type buffer, double value);
+
+ public static native @Cast("size_t") long buffer_stream_fwrite_n( @Const buffer_type buffer, @Cast("size_t") long offset, @Cast("ssize_t") long write_size, @Cast("FILE*") Pointer stream );
+ public static native void buffer_stream_fprintf( @Const buffer_type buffer, @Cast("FILE*") Pointer stream );
+ public static native void buffer_stream_fread( buffer_type buffer, @Cast("size_t") long byte_size, @Cast("FILE*") Pointer stream);
+ public static native buffer_type buffer_fread_alloc(@Cast("const char*") BytePointer filename);
+ public static native buffer_type buffer_fread_alloc(String filename);
+ public static native void buffer_fread_realloc(buffer_type buffer, @Cast("const char*") BytePointer filename);
+ public static native void buffer_fread_realloc(buffer_type buffer, String filename);
+ public static native void buffer_fprintf(@Const buffer_type buffer, @Cast("const char*") BytePointer fmt, @Cast("FILE*") Pointer stream);
+ public static native void buffer_fprintf(@Const buffer_type buffer, String fmt, @Cast("FILE*") Pointer stream);
+
+// #ifdef ERT_HAVE_ZLIB
+// #endif
+
+
+// #include "buffer_string.h"
+
+ public static native @Cast("bool") boolean buffer_is_instance( @Const Pointer __arg );
+ public static native buffer_type buffer_safe_cast( Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+
+// #endif
+
+
+// Parsed from ert/util/buffer.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_util.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'geo_util.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_GEO_UTIL_H
+// #define ERT_GEO_UTIL_H
+
+
+// #ifdef __cplusplus
+// #endif
+// #include
+
+ /** enum geo_util_xlines_status_enum */
+ public static final int
+ GEO_UTIL_LINES_CROSSING = 0,
+ GEO_UTIL_LINES_PARALLELL = 1,
+ GEO_UTIL_LINES_OVERLAPPING = 2,
+ GEO_UTIL_LINES_DEGENERATE = 3,
+ GEO_UTIL_NOT_CROSSING = 4;
+
+ public static native @Cast("bool") boolean geo_util_inside_polygon__(@Const DoublePointer xlist, @Const DoublePointer ylist, int num_points, double x0, double y0, @Cast("bool") boolean force_edge_inside);
+ public static native @Cast("bool") boolean geo_util_inside_polygon__(@Const DoubleBuffer xlist, @Const DoubleBuffer ylist, int num_points, double x0, double y0, @Cast("bool") boolean force_edge_inside);
+ public static native @Cast("bool") boolean geo_util_inside_polygon__(@Const double[] xlist, @Const double[] ylist, int num_points, double x0, double y0, @Cast("bool") boolean force_edge_inside);
+ public static native @Cast("bool") boolean geo_util_inside_polygon(@Const DoublePointer xlist, @Const DoublePointer ylist, int num_points, double x0, double y0);
+ public static native @Cast("bool") boolean geo_util_inside_polygon(@Const DoubleBuffer xlist, @Const DoubleBuffer ylist, int num_points, double x0, double y0);
+ public static native @Cast("bool") boolean geo_util_inside_polygon(@Const double[] xlist, @Const double[] ylist, int num_points, double x0, double y0);
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xlines( @Cast("const double**") PointerPointer points, DoublePointer x0, DoublePointer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xlines( @Const @ByPtrPtr DoublePointer points, DoublePointer x0, DoublePointer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xlines( @Const @ByPtrPtr DoubleBuffer points, DoubleBuffer x0, DoubleBuffer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xlines( @Const @ByPtrPtr double[] points, double[] x0, double[] y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xsegments( @Cast("const double**") PointerPointer points, DoublePointer x0, DoublePointer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xsegments( @Const @ByPtrPtr DoublePointer points, DoublePointer x0, DoublePointer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xsegments( @Const @ByPtrPtr DoubleBuffer points, DoubleBuffer x0, DoubleBuffer y0 );
+ public static native @Cast("geo_util_xlines_status_enum") int geo_util_xsegments( @Const @ByPtrPtr double[] points, double[] x0, double[] y0 );
+
+
+// #ifdef __cplusplus
+// #endif
+
+// #endif
+
+
+// Parsed from ert/geometry/geo_util.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_pointset.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'geo_pointset.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_GEO_POINTSET_H
+// #define ERT_GEO_POINTSET_H
+
+
+// #ifdef __cplusplus
+// Targeting ../geo_pointset_type.java
+
+
+
+
+ public static native geo_pointset_type geo_pointset_alloc( @Cast("bool") boolean external_z );
+ public static native void geo_pointset_free( geo_pointset_type pointset );
+ public static native void geo_pointset_add_xyz( geo_pointset_type pointset, double x, double y, double z);
+ public static native int geo_pointset_get_size( @Const geo_pointset_type pointset );
+ public static native void geo_pointset_iget_xy( @Const geo_pointset_type pointset, int index, DoublePointer x, DoublePointer y);
+ public static native void geo_pointset_iget_xy( @Const geo_pointset_type pointset, int index, DoubleBuffer x, DoubleBuffer y);
+ public static native void geo_pointset_iget_xy( @Const geo_pointset_type pointset, int index, double[] x, double[] y);
+ public static native @Const DoublePointer geo_pointset_get_zcoord( @Const geo_pointset_type pointset );
+ public static native @Cast("bool") boolean geo_pointset_equal( @Const geo_pointset_type pointset1, @Const geo_pointset_type pointset2);
+ public static native double geo_pointset_iget_z( @Const geo_pointset_type pointset, int index );
+ public static native void geo_pointset_iset_z( geo_pointset_type pointset, int index, double value);
+ public static native void geo_pointset_memcpy( @Const geo_pointset_type src, geo_pointset_type target, @Cast("bool") boolean copy_zdata);
+ public static native void geo_pointset_shift_z( geo_pointset_type pointset, double value );
+ public static native void geo_pointset_assign_z( geo_pointset_type pointset, double value );
+ public static native void geo_pointset_scale_z( geo_pointset_type pointset, double value );
+ public static native void geo_pointset_imul( geo_pointset_type pointset, @Const geo_pointset_type other );
+ public static native void geo_pointset_iadd( geo_pointset_type pointset, @Const geo_pointset_type other );
+ public static native void geo_pointset_isub( geo_pointset_type self, @Const geo_pointset_type other );
+ public static native void geo_pointset_isqrt( geo_pointset_type pointset );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/geometry/geo_surface.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'geo_surface.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_GEO_SURFACE_H
+// #define ERT_GEO_SURFACE_H
+
+// #ifdef __cplusplus
+// #endif
+
+
+// #include
+// Targeting ../geo_surface_type.java
+
+
+
+ public static native @Cast("bool") boolean geo_surface_equal_header( @Const geo_surface_type surface1, @Const geo_surface_type surface2 );
+ public static native @Cast("bool") boolean geo_surface_equal( @Const geo_surface_type surface1, @Const geo_surface_type surface2);
+ public static native void geo_surface_free( geo_surface_type geo_surface );
+ public static native void geo_surface_free__( Pointer arg);
+ public static native geo_pointset_type geo_surface_get_pointset( @Const geo_surface_type surface );
+ public static native geo_surface_type geo_surface_fload_alloc_irap( @Cast("const char*") BytePointer filename, @Cast("bool") boolean loadz);
+ public static native geo_surface_type geo_surface_fload_alloc_irap( String filename, @Cast("bool") boolean loadz);
+ public static native geo_surface_type geo_surface_alloc_new( int nx, int ny, double xinc, double yinc, double xstart, double ystart, double angle );
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, DoublePointer zlist);
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, String filename, DoubleBuffer zlist);
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, double[] zlist);
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, String filename, DoublePointer zlist);
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, DoubleBuffer zlist);
+ public static native @Cast("bool") boolean geo_surface_fload_irap_zcoord( @Const geo_surface_type surface, String filename, double[] zlist);
+ public static native double geo_surface_iget_zvalue(@Const geo_surface_type surface, int index);
+ public static native int geo_surface_get_size( @Const geo_surface_type surface );
+ public static native void geo_surface_fprintf_irap( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename );
+ public static native void geo_surface_fprintf_irap( @Const geo_surface_type surface, String filename );
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, @Const DoublePointer zcoord);
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, String filename, @Const DoubleBuffer zcoord);
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, @Const double[] zcoord);
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, String filename, @Const DoublePointer zcoord);
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, @Cast("const char*") BytePointer filename, @Const DoubleBuffer zcoord);
+ public static native void geo_surface_fprintf_irap_external_zcoord( @Const geo_surface_type surface, String filename, @Const double[] zcoord);
+ public static native int geo_surface_get_nx( @Const geo_surface_type surface );
+ public static native int geo_surface_get_ny( @Const geo_surface_type surface );
+ public static native void geo_surface_iget_xy( @Const geo_surface_type surface, int index, DoublePointer x, DoublePointer y);
+ public static native void geo_surface_iget_xy( @Const geo_surface_type surface, int index, DoubleBuffer x, DoubleBuffer y);
+ public static native void geo_surface_iget_xy( @Const geo_surface_type surface, int index, double[] x, double[] y);
+
+ public static native void geo_surface_shift( @Const geo_surface_type src, double value);
+ public static native void geo_surface_scale( @Const geo_surface_type src, double value);
+ public static native void geo_surface_isub( geo_surface_type self, @Const geo_surface_type other);
+ public static native void geo_surface_iset_zvalue(geo_surface_type surface, int index, double value);
+ public static native void geo_surface_assign_value( @Const geo_surface_type src, double value);
+ public static native geo_surface_type geo_surface_alloc_copy( @Const geo_surface_type src, @Cast("bool") boolean copy_zdata);
+ public static native void geo_surface_iadd( geo_surface_type self, @Const geo_surface_type other);
+ public static native void geo_surface_imul( geo_surface_type self, @Const geo_surface_type other);
+ public static native void geo_surface_isqrt( geo_surface_type surface );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/geometry/geo_surface.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_polygon.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'geo_polygon.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_GEO_POLYGON_H
+// #define ERT_GEO_POLYGON_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+// #include
+// Targeting ../geo_polygon_type.java
+
+
+
+ public static native geo_polygon_type geo_polygon_alloc( @Cast("const char*") BytePointer name );
+ public static native geo_polygon_type geo_polygon_alloc( String name );
+ public static native void geo_polygon_free( geo_polygon_type polygon );
+ public static native void geo_polygon_free__( Pointer arg );
+ public static native void geo_polygon_add_point( geo_polygon_type polygon, double x, double y );
+ public static native void geo_polygon_add_point_front( geo_polygon_type polygon, double x, double y);
+ public static native geo_polygon_type geo_polygon_fload_alloc_irap( @Cast("const char*") BytePointer filename );
+ public static native geo_polygon_type geo_polygon_fload_alloc_irap( String filename );
+ public static native @Cast("bool") boolean geo_polygon_contains_point( @Const geo_polygon_type polygon, double x, double y);
+ public static native @Cast("bool") boolean geo_polygon_contains_point__( @Const geo_polygon_type polygon, double x, double y, @Cast("bool") boolean force_edge_inside);
+ public static native void geo_polygon_reset(geo_polygon_type polygon );
+ public static native void geo_polygon_fprintf(@Const geo_polygon_type polygon, @Cast("FILE*") Pointer stream);
+ public static native void geo_polygon_shift(geo_polygon_type polygon, double x0, double y0);
+ public static native void geo_polygon_close( geo_polygon_type polygoon);
+ public static native int geo_polygon_get_size(@Const geo_polygon_type polygon );
+ public static native void geo_polygon_iget_xy(@Const geo_polygon_type polygon, int index, DoublePointer x, DoublePointer y);
+ public static native void geo_polygon_iget_xy(@Const geo_polygon_type polygon, int index, DoubleBuffer x, DoubleBuffer y);
+ public static native void geo_polygon_iget_xy(@Const geo_polygon_type polygon, int index, double[] x, double[] y);
+ public static native @Cast("bool") boolean geo_polygon_segment_intersects(@Const geo_polygon_type polygon, double x1, double y1, double x2, double y2);
+ public static native @Cast("const char*") BytePointer geo_polygon_get_name( @Const geo_polygon_type polygon );
+ public static native void geo_polygon_set_name( geo_polygon_type polygon, @Cast("const char*") BytePointer name);
+ public static native void geo_polygon_set_name( geo_polygon_type polygon, String name);
+ public static native double geo_polygon_get_length( geo_polygon_type polygon );
+ public static native @Cast("bool") boolean geo_polygon_equal( @Const geo_polygon_type polygon1, @Const geo_polygon_type polygon2 );
+
+ public static native @Cast("bool") boolean geo_polygon_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/geometry/geo_region.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'geo_region.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #include
+// #include
+
+// #include
+// #include
+
+// #include
+// #include
+
+// #ifndef ERT_GEO_REGION_H
+// #define ERT_GEO_REGION_H
+
+
+// #ifdef __cplusplus
+// Targeting ../geo_region_type.java
+
+
+
+ public static native geo_region_type geo_region_alloc( @Const geo_pointset_type pointset, @Cast("bool") boolean preselect);
+ public static native void geo_region_free( geo_region_type region );
+ public static native void geo_region_free__( Pointer arg );
+ public static native void geo_region_reset( geo_region_type region );
+ public static native @Const int_vector_type geo_region_get_index_list( geo_region_type region );
+
+ public static native void geo_region_select_inside_polygon( geo_region_type region, @Const geo_polygon_type polygon);
+ public static native void geo_region_select_outside_polygon( geo_region_type region, @Const geo_polygon_type polygon);
+ public static native void geo_region_deselect_inside_polygon( geo_region_type region, @Const geo_polygon_type polygon);
+ public static native void geo_region_deselect_outside_polygon( geo_region_type region, @Const geo_polygon_type polygon);
+
+ public static native void geo_region_select_above_line( geo_region_type region, @Const DoublePointer xcoords, @Const DoublePointer ycoords);
+ public static native void geo_region_select_above_line( geo_region_type region, @Const DoubleBuffer xcoords, @Const DoubleBuffer ycoords);
+ public static native void geo_region_select_above_line( geo_region_type region, @Const double[] xcoords, @Const double[] ycoords);
+ public static native void geo_region_select_below_line( geo_region_type region, @Const DoublePointer xcoords, @Const DoublePointer ycoords);
+ public static native void geo_region_select_below_line( geo_region_type region, @Const DoubleBuffer xcoords, @Const DoubleBuffer ycoords);
+ public static native void geo_region_select_below_line( geo_region_type region, @Const double[] xcoords, @Const double[] ycoords);
+ public static native void geo_region_deselect_above_line( geo_region_type region, @Const DoublePointer xcoords, @Const DoublePointer ycoords);
+ public static native void geo_region_deselect_above_line( geo_region_type region, @Const DoubleBuffer xcoords, @Const DoubleBuffer ycoords);
+ public static native void geo_region_deselect_above_line( geo_region_type region, @Const double[] xcoords, @Const double[] ycoords);
+ public static native void geo_region_deselect_below_line( geo_region_type region, @Const DoublePointer xcoords, @Const DoublePointer ycoords);
+ public static native void geo_region_deselect_below_line( geo_region_type region, @Const DoubleBuffer xcoords, @Const DoubleBuffer ycoords);
+ public static native void geo_region_deselect_below_line( geo_region_type region, @Const double[] xcoords, @Const double[] ycoords);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/geometry/geo_region.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_polygon_collection.hpp
+
+/*
+ Copyright (C) 2014 Equinor ASA, Norway.
+
+ The file 'geo_polygon_collection.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_GEO_POLYGON_COLLECTION_H
+// #define ERT_GEO_POLYGON_COLLECTION_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+// #include
+
+// #include
+// Targeting ../geo_polygon_collection_type.java
+
+
+
+ public static native geo_polygon_collection_type geo_polygon_collection_alloc( );
+ public static native void geo_polygon_collection_free( geo_polygon_collection_type polygons );
+ public static native int geo_polygon_collection_size( @Const geo_polygon_collection_type polygons );
+ public static native geo_polygon_type geo_polygon_collection_create_polygon( geo_polygon_collection_type polygons, @Cast("const char*") BytePointer name );
+ public static native geo_polygon_type geo_polygon_collection_create_polygon( geo_polygon_collection_type polygons, String name );
+ public static native @Cast("bool") boolean geo_polygon_collection_has_polygon( @Const geo_polygon_collection_type polygons, @Cast("const char*") BytePointer name);
+ public static native @Cast("bool") boolean geo_polygon_collection_has_polygon( @Const geo_polygon_collection_type polygons, String name);
+ public static native @Cast("bool") boolean geo_polygon_collection_add_polygon( geo_polygon_collection_type polygons, geo_polygon_type polygon, @Cast("bool") boolean polygon_owner );
+ public static native geo_polygon_type geo_polygon_collection_iget_polygon(@Const geo_polygon_collection_type polygons, int index);
+ public static native geo_polygon_type geo_polygon_collection_get_polygon(@Const geo_polygon_collection_type polygons, @Cast("const char*") BytePointer polygon_name);
+ public static native geo_polygon_type geo_polygon_collection_get_polygon(@Const geo_polygon_collection_type polygons, String polygon_name);
+
+ public static native @Cast("bool") boolean geo_polygon_collection_is_instance( @Const Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/geometry/geo_polygon_collection.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_polygon.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/geometry/geo_pointset.h
+
+/*
+ Warning: The libecl code has changed to be compiled as a C++ project. This
+ header file is retained for a period for compatibility, but you are encouraged
+ to switch to include the new hpp header directly in your code.
+*/
+
+// #include
+
+
+
+
+// Parsed from ert/ecl/ecl_type.hpp
+
+/*
+ Copyright (C) 2017 Equinor ASA, Norway.
+
+ The file 'ecl_type.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_TYPE_H
+// #define ERT_ECL_TYPE_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// #include
+
+/*
+ The type of an eclipse keyword is carried by a struct
+ ecl_type_struct which contains a type enum, and the size in bytes of
+ one such element. These structs are for the most part handled with
+ value semantics, and created with macros ECL_INT, ECL_FLOAT and so
+ on.
+
+ The macros in C use designated initializers, whereas the C++ macros
+ use a constructor, for this reason this file has two slightly
+ different code paths for C and C++.
+*/
+
+public static final int ECL_STRING8_LENGTH = 8;
+public static final int ECL_TYPE_LENGTH = 4;
+
+/** enum ecl_type_enum */
+public static final int
+ ECL_CHAR_TYPE = 0,
+ ECL_FLOAT_TYPE = 1,
+ ECL_DOUBLE_TYPE = 2,
+ ECL_INT_TYPE = 3,
+ ECL_BOOL_TYPE = 4,
+ ECL_MESS_TYPE = 5,
+ ECL_STRING_TYPE = 7;
+
+public static native @MemberGetter double ECL_TYPE_ENUM_DEFS();
+public static final double ECL_TYPE_ENUM_DEFS = ECL_TYPE_ENUM_DEFS();
+
+
+/*
+ Character data in ECLIPSE files comes as an array of fixed-length
+ string. Each of these strings is 8 characters long. The type name,
+ i.e. 'REAL', 'INTE', ... , come as 4 character strings.
+*/
+// Targeting ../ecl_type_struct.java
+
+
+
+// #ifdef __cplusplus
+
+public static native @MemberGetter int ECL_INT();
+public static final int ECL_INT = ECL_INT();
+public static native @MemberGetter int ECL_FLOAT();
+public static final int ECL_FLOAT = ECL_FLOAT();
+public static native @MemberGetter int ECL_DOUBLE();
+public static final int ECL_DOUBLE = ECL_DOUBLE();
+public static native @MemberGetter int ECL_BOOL();
+public static final int ECL_BOOL = ECL_BOOL();
+public static native @MemberGetter int ECL_CHAR();
+public static final int ECL_CHAR = ECL_CHAR();
+public static native @MemberGetter int ECL_MESS();
+public static final int ECL_MESS = ECL_MESS();
+// #define ECL_STRING(size) ecl_data_type{ECL_STRING_TYPE, (size) + 1}
+
+// #else
+// #define ECL_STRING(size) (ecl_data_type) {.type = ECL_STRING_TYPE, .eement_size = (size) + 1}
+
+// #endif
+
+// #ifdef __cplusplus
+// Targeting ../ecl_data_type.java
+
+
+
+public static native @ByVal ecl_data_type ecl_type_create_from_name(@Cast("const char*") BytePointer arg0);
+public static native @ByVal ecl_data_type ecl_type_create_from_name(String arg0);
+public static native @ByVal ecl_data_type ecl_type_create(@Cast("const ecl_type_enum") int arg0, @Cast("const size_t") long arg1);
+public static native @ByVal ecl_data_type ecl_type_create_from_type(@Cast("const ecl_type_enum") int arg0);
+
+public static native @Cast("ecl_type_enum") int ecl_type_get_type(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("char*") BytePointer ecl_type_alloc_name(@Const @ByVal ecl_data_type arg0);
+
+public static native int ecl_type_get_sizeof_ctype(@Const @ByVal ecl_data_type arg0);
+public static native int ecl_type_get_sizeof_iotype(@Const @ByVal ecl_data_type arg0);
+
+public static native @Cast("bool") boolean ecl_type_is_equal(@Const @ByVal ecl_data_type arg0, @Const @ByVal ecl_data_type arg1);
+
+public static native @Cast("bool") boolean ecl_type_is_numeric(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_alpha(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_char(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_int(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_float(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_double(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_mess(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_bool(@Const @ByVal ecl_data_type arg0);
+public static native @Cast("bool") boolean ecl_type_is_string(@Const @ByVal ecl_data_type arg0);
+
+// Temporary fixup for OPM.
+public static native @Cast("char*") BytePointer ecl_type_get_name(@Const @ByVal ecl_data_type arg0);
+
+// #ifdef __cplusplus
+// #endif
+
+
+// #endif
+
+
+// Parsed from ert/ecl/ecl_util.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_util.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_UTIL_H
+// #define ERT_ECL_UTIL_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+
+// #include
+// #include
+// #include
+// #include
+
+
+/** enum ecl_file_enum */
+public static final int ECL_OTHER_FILE = 0,
+ ECL_RESTART_FILE = 1,
+ ECL_UNIFIED_RESTART_FILE = 2,
+ ECL_SUMMARY_FILE = 4,
+ ECL_UNIFIED_SUMMARY_FILE = 8,
+ ECL_SUMMARY_HEADER_FILE = 16,
+ ECL_GRID_FILE = 32,
+ ECL_EGRID_FILE = 64,
+ ECL_INIT_FILE = 128,
+ ECL_RFT_FILE = 256,
+ ECL_DATA_FILE = 512;
+
+
+
+ /*
+ This enum enumerates the four different ways summary and restart information
+ can be stored.
+ */
+
+
+ /** enum ecl_storage_enum */
+ public static final int ECL_INVALID_STORAGE = 0,
+ ECL_BINARY_UNIFIED = 1,
+ ECL_FORMATTED_UNIFIED = 2,
+ ECL_BINARY_NON_UNIFIED = 4,
+ ECL_FORMATTED_NON_UNIFIED = 8;
+
+/*
+ The libecl library has been built and tested 99.5% with ECLIPSE100
+ as context, but in thye gravity code there is some very limited
+ functionality related to ECLIPSE100 versus ECLIPSE300 functionality.
+
+ Observe that numerical values found as part of the INTEHAD keyword
+ differ from these values, and are found in the ecl_kw_magic.h
+ header.
+*/
+
+/** enum ecl_version_enum */
+public static final int
+ ECLIPSE_UNDEFINED = 0,
+ ECLIPSE100 = 1,
+ ECLIPSE300 = 2,
+ ECLIPSE300_THERMAL = 3,
+ INTERSECT = 4,
+ FRONTSIM = 5;
+
+/*
+ Observe that the numerical enum VALUES matches those found in item
+ 14 in the INTEHEAD keyword in the ECLIPSE INIT files; i.e. the
+ distribution of numerical values 1,2,4 can NOT BE CHANGED.
+
+ The function ecl_util_get_phase_name() can be used to lookup a
+ string name from an enum value.
+
+ The phases in a simulation will typically be a sum of these
+ fundamental phases, and represented as an integer.
+*/
+
+/** enum ecl_phase_enum */
+public static final int
+ ECL_OIL_PHASE = 1,
+ ECL_GAS_PHASE = 2,
+ ECL_WATER_PHASE = 4;
+
+public static native @MemberGetter double ECL_PHASE_ENUM_DEFS();
+public static final double ECL_PHASE_ENUM_DEFS = ECL_PHASE_ENUM_DEFS();
+public static final int ECL_PHASE_ENUM_SIZE = 3;
+
+/** enum ert_ecl_unit_enum */
+public static final int
+ ECL_METRIC_UNITS = 1,
+ ECL_FIELD_UNITS = 2,
+ ECL_LAB_UNITS = 3,
+ ECL_PVT_M_UNITS = 4;
+
+
+// For unformatted files:
+public static final int ECL_BOOL_TRUE_INT = -1; // Binary representation: 11111111 11111111 11111111 1111111
+public static final int ECL_BOOL_FALSE_INT = 0; // Binary representation: 00000000 00000000 00000000 0000000
+public static final String ECL_COMMENT_STRING = "--";
+public static final int ECL_COMMENT_CHAR = '-'; // Need to consecutive to make an ECLIPSE comment
+public static final String ECL_DATA_TERMINATION = "/";
+
+
+/*****************************************************************/
+public static native @Cast("bool") boolean ecl_util_unified_file(@Cast("const char*") BytePointer filename);
+public static native @Cast("bool") boolean ecl_util_unified_file(String filename);
+public static native @Cast("const char*") BytePointer ecl_util_file_type_name( @Cast("ecl_file_enum") int file_type );
+public static native @Cast("char*") BytePointer ecl_util_alloc_base_guess(@Cast("const char*") BytePointer arg0);
+public static native @Cast("char*") ByteBuffer ecl_util_alloc_base_guess(String arg0);
+public static native int ecl_util_filename_report_nr(@Cast("const char*") BytePointer arg0);
+public static native int ecl_util_filename_report_nr(String arg0);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(@Cast("const char*") BytePointer ext, @Cast("bool*") BoolPointer _fmt_file, IntPointer _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(String ext, @Cast("bool*") boolean[] _fmt_file, IntBuffer _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(@Cast("const char*") BytePointer ext, @Cast("bool*") BoolPointer _fmt_file, int[] _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(String ext, @Cast("bool*") boolean[] _fmt_file, IntPointer _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(@Cast("const char*") BytePointer ext, @Cast("bool*") BoolPointer _fmt_file, IntBuffer _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_inspect_extension(String ext, @Cast("bool*") boolean[] _fmt_file, int[] _report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(@Cast("const char*") BytePointer filename, @Cast("bool*") BoolPointer fmt_file, IntPointer report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(String filename, @Cast("bool*") boolean[] fmt_file, IntBuffer report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(@Cast("const char*") BytePointer filename, @Cast("bool*") BoolPointer fmt_file, int[] report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(String filename, @Cast("bool*") boolean[] fmt_file, IntPointer report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(@Cast("const char*") BytePointer filename, @Cast("bool*") BoolPointer fmt_file, IntBuffer report_nr);
+public static native @Cast("ecl_file_enum") int ecl_util_get_file_type(String filename, @Cast("bool*") boolean[] fmt_file, int[] report_nr);
+public static native @Cast("char*") BytePointer ecl_util_alloc_filename(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("ecl_file_enum") int arg2, @Cast("bool") boolean arg3, int arg4);
+public static native @Cast("char*") ByteBuffer ecl_util_alloc_filename(String arg0, String arg1, @Cast("ecl_file_enum") int arg2, @Cast("bool") boolean arg3, int arg4);
+public static native @Cast("char*") BytePointer ecl_util_alloc_exfilename(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("ecl_file_enum") int arg2, @Cast("bool") boolean arg3, int arg4);
+public static native @Cast("char*") ByteBuffer ecl_util_alloc_exfilename(String arg0, String arg1, @Cast("ecl_file_enum") int arg2, @Cast("bool") boolean arg3, int arg4);
+public static native void ecl_util_memcpy_typed_data(Pointer arg0, @Const Pointer arg1, @ByVal ecl_data_type arg2, @ByVal ecl_data_type arg3, int arg4 );
+public static native void ecl_util_escape_kw(@Cast("char*") BytePointer kw);
+public static native void ecl_util_escape_kw(@Cast("char*") ByteBuffer kw);
+public static native void ecl_util_escape_kw(@Cast("char*") byte[] kw);
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("const char*") BytePointer arg2, @Cast("char**") PointerPointer arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("const char*") BytePointer arg2, @Cast("char**") @ByPtrPtr BytePointer arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(String arg0, String arg1, String arg2, @Cast("char**") @ByPtrPtr ByteBuffer arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("const char*") BytePointer arg2, @Cast("char**") @ByPtrPtr byte[] arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(String arg0, String arg1, String arg2, @Cast("char**") @ByPtrPtr BytePointer arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("const char*") BytePointer arg2, @Cast("char**") @ByPtrPtr ByteBuffer arg3, stringlist_type arg4 );
+public static native @Cast("bool") boolean ecl_util_alloc_summary_files(String arg0, String arg1, String arg2, @Cast("char**") @ByPtrPtr byte[] arg3, stringlist_type arg4 );
+public static native void ecl_util_alloc_summary_data_files(@Cast("const char*") BytePointer path, @Cast("const char*") BytePointer base, @Cast("bool") boolean fmt_file, stringlist_type filelist);
+public static native void ecl_util_alloc_summary_data_files(String path, String base, @Cast("bool") boolean fmt_file, stringlist_type filelist);
+public static native void ecl_util_alloc_restart_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, IntPointer arg3, @Cast("bool*") BoolPointer arg4, @Cast("bool*") BoolPointer arg5);
+public static native void ecl_util_alloc_restart_files(String arg0, String arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, IntBuffer arg3, @Cast("bool*") boolean[] arg4, @Cast("bool*") boolean[] arg5);
+public static native void ecl_util_alloc_restart_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, int[] arg3, @Cast("bool*") BoolPointer arg4, @Cast("bool*") BoolPointer arg5);
+public static native void ecl_util_alloc_restart_files(String arg0, String arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, IntPointer arg3, @Cast("bool*") boolean[] arg4, @Cast("bool*") boolean[] arg5);
+public static native void ecl_util_alloc_restart_files(@Cast("const char*") BytePointer arg0, @Cast("const char*") BytePointer arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, IntBuffer arg3, @Cast("bool*") BoolPointer arg4, @Cast("bool*") BoolPointer arg5);
+public static native void ecl_util_alloc_restart_files(String arg0, String arg1, @Cast("char***") @ByPtrPtr PointerPointer arg2, int[] arg3, @Cast("bool*") boolean[] arg4, @Cast("bool*") boolean[] arg5);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_get_start_date(@Cast("const char*") BytePointer arg0 );
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_get_start_date(String arg0 );
+public static native int ecl_util_get_num_cpu(@Cast("const char*") BytePointer data_file);
+public static native int ecl_util_get_num_cpu(String data_file);
+public static native @Cast("bool") boolean ecl_util_fmt_file(@Cast("const char*") BytePointer filename, @Cast("bool*") BoolPointer __fmt_file);
+public static native @Cast("bool") boolean ecl_util_fmt_file(String filename, @Cast("bool*") boolean[] __fmt_file);
+public static native @Cast("char*") BytePointer ecl_util_alloc_exfilename_anyfmt(@Cast("const char*") BytePointer path, @Cast("const char*") BytePointer base, @Cast("ecl_file_enum") int file_type, @Cast("bool") boolean start_fmt, int report_nr);
+public static native @Cast("char*") ByteBuffer ecl_util_alloc_exfilename_anyfmt(String path, String base, @Cast("ecl_file_enum") int file_type, @Cast("bool") boolean start_fmt, int report_nr);
+public static native int ecl_util_get_month_nr(@Cast("const char*") BytePointer month_name);
+public static native int ecl_util_get_month_nr(String month_name);
+public static native int ecl_util_fname_report_cmp(@Const Pointer f1, @Const Pointer f2);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_make_date(int mday, int month, int year);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_make_date__(int mday, int month, int year, IntPointer year_offset);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_make_date__(int mday, int month, int year, IntBuffer year_offset);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_make_date__(int mday, int month, int year, int[] year_offset);
+public static native @ByVal @Cast("time_t*") Pointer ecl_util_make_datetime(int sec, int min, int hour, int mday, int month, int year);
+public static native @Cast("ert_ecl_unit_enum") int ecl_util_get_unit_set(@Cast("const char*") BytePointer data_file);
+public static native @Cast("ert_ecl_unit_enum") int ecl_util_get_unit_set(String data_file);
+
+public static native @Cast("bool") boolean ecl_util_valid_basename_fmt( @Cast("const char*") BytePointer basename_fmt );
+public static native @Cast("bool") boolean ecl_util_valid_basename_fmt( String basename_fmt );
+public static native @Cast("bool") boolean ecl_util_valid_basename( @Cast("const char*") BytePointer basename );
+public static native @Cast("bool") boolean ecl_util_valid_basename( String basename );
+public static native @Cast("const char*") BytePointer ecl_util_get_phase_name( @Cast("ecl_phase_enum") int phase );
+
+public static native int ecl_util_select_filelist( @Cast("const char*") BytePointer path, @Cast("const char*") BytePointer base, @Cast("ecl_file_enum") int file_type, @Cast("bool") boolean fmt_file, stringlist_type filelist);
+public static native int ecl_util_select_filelist( String path, String base, @Cast("ecl_file_enum") int file_type, @Cast("bool") boolean fmt_file, stringlist_type filelist);
+public static native void ecl_util_append_month_range( time_t_vector_type date_list, @ByVal @Cast("time_t*") Pointer start_date, @ByVal @Cast("time_t*") Pointer end_date, @Cast("bool") boolean force_append_end);
+public static native void ecl_util_init_month_range( time_t_vector_type date_list, @ByVal @Cast("time_t*") Pointer start_date, @ByVal @Cast("time_t*") Pointer end_date);
+public static native void ecl_util_set_date_values(@ByVal @Cast("time_t*") Pointer t, IntPointer mday, IntPointer month, IntPointer year);
+public static native void ecl_util_set_date_values(@ByVal @Cast("time_t*") Pointer t, IntBuffer mday, IntBuffer month, IntBuffer year);
+public static native void ecl_util_set_date_values(@ByVal @Cast("time_t*") Pointer t, int[] mday, int[] month, int[] year);
+public static native void ecl_util_set_datetime_values(@ByVal @Cast("time_t*") Pointer t, IntPointer sec, IntPointer min, IntPointer hour, IntPointer mday, IntPointer month, IntPointer year);
+public static native void ecl_util_set_datetime_values(@ByVal @Cast("time_t*") Pointer t, IntBuffer sec, IntBuffer min, IntBuffer hour, IntBuffer mday, IntBuffer month, IntBuffer year);
+public static native void ecl_util_set_datetime_values(@ByVal @Cast("time_t*") Pointer t, int[] sec, int[] min, int[] hour, int[] mday, int[] month, int[] year);
+public static native @Cast("bool") boolean ecl_util_path_access(@Cast("const char*") BytePointer ecl_case);
+public static native @Cast("bool") boolean ecl_util_path_access(String ecl_case);
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/ecl/fortio.h
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'fortio.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_FORTIO_H
+// #define ERT_FORTIO_H
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// #include
+// #include
+
+// #include
+// #include
+
+/** enum fortio_status_type */
+public static final int
+ FORTIO_NOENTRY = 0, /* File does not exists at all - application error. */
+ FORTIO_EOF = 1, /* The file / record is empty */
+ FORTIO_OK = 2, /* The file / record is OK with: [32 bit header | data | 32 bit footer] */
+ FORTIO_MISSING_DATA = 3,
+ FORTIO_MISSING_TAIL = 4,
+ FORTIO_HEADER_MISMATCH = 5;
+// Targeting ../fortio_type.java
+
+
+
+ public static native @Cast("fortio_status_type") int fortio_check_buffer( @Cast("FILE*") Pointer stream, @Cast("bool") boolean endian_flip, @Cast("size_t") long buffer_size );
+ public static native @Cast("fortio_status_type") int fortio_check_file( @Cast("const char*") BytePointer filename, @Cast("bool") boolean endian_flip);
+ public static native @Cast("fortio_status_type") int fortio_check_file( String filename, @Cast("bool") boolean endian_flip);
+ public static native @Cast("bool") boolean fortio_looks_like_fortran_file(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1 );
+ public static native @Cast("bool") boolean fortio_looks_like_fortran_file(String arg0, @Cast("bool") boolean arg1 );
+ public static native void fortio_copy_record(fortio_type arg0, fortio_type arg1, int arg2, Pointer arg3, @Cast("bool*") BoolPointer arg4);
+ public static native void fortio_copy_record(fortio_type arg0, fortio_type arg1, int arg2, Pointer arg3, @Cast("bool*") boolean[] arg4);
+ public static native fortio_type fortio_open_reader(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_reader(String arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_writer(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_writer(String arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_readwrite(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_readwrite(String arg0, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_append(@Cast("const char*") BytePointer filename, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_open_append(String filename, @Cast("bool") boolean fmt_file, @Cast("bool") boolean endian_flip_header);
+ public static native fortio_type fortio_alloc_FILE_wrapper(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, @Cast("bool") boolean arg2, @Cast("bool") boolean arg3, @Cast("FILE*") Pointer arg4 );
+ public static native fortio_type fortio_alloc_FILE_wrapper(String arg0, @Cast("bool") boolean arg1, @Cast("bool") boolean arg2, @Cast("bool") boolean arg3, @Cast("FILE*") Pointer arg4 );
+ public static native void fortio_free_FILE_wrapper(fortio_type arg0);
+ public static native void fortio_fclose(fortio_type arg0);
+ public static native int fortio_init_read(fortio_type arg0);
+ public static native @Cast("bool") boolean fortio_complete_read(fortio_type arg0, int record_size);
+ public static native void fortio_init_write(fortio_type arg0, int arg1);
+ public static native void fortio_complete_write(fortio_type arg0, int record_size);
+ public static native void fortio_fskip_buffer(fortio_type arg0, int arg1 );
+ public static native int fortio_fskip_record(fortio_type arg0);
+ public static native @Cast("bool") boolean fortio_fread_buffer(fortio_type arg0, @Cast("char*") BytePointer buffer, int buffer_size);
+ public static native @Cast("bool") boolean fortio_fread_buffer(fortio_type arg0, @Cast("char*") ByteBuffer buffer, int buffer_size);
+ public static native @Cast("bool") boolean fortio_fread_buffer(fortio_type arg0, @Cast("char*") byte[] buffer, int buffer_size);
+ public static native void fortio_fwrite_record(fortio_type arg0, @Cast("const char*") BytePointer buffer, int buffer_size);
+ public static native void fortio_fwrite_record(fortio_type arg0, String buffer, int buffer_size);
+ public static native @Cast("FILE*") Pointer fortio_get_FILE(@Const fortio_type arg0);
+ public static native void fortio_fflush(fortio_type arg0 );
+ public static native @Cast("bool") boolean fortio_ftruncate_current( fortio_type fortio);
+ public static native @Cast("bool") boolean fortio_is_fortio_file(fortio_type arg0 );
+ public static native void fortio_rewind(@Const fortio_type fortio);
+ public static native @Cast("const char*") BytePointer fortio_filename_ref(@Const fortio_type arg0 );
+ public static native @Cast("bool") boolean fortio_fmt_file(@Const fortio_type arg0);
+ public static native @Cast("offset_type") long fortio_ftell( @Const fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_fseek( fortio_type fortio, @Cast("offset_type") long offset, int whence);
+ public static native @Cast("bool") boolean fortio_data_fskip(fortio_type fortio, int element_size, int element_count, int block_count);
+ public static native void fortio_data_fseek(fortio_type fortio, @Cast("offset_type") long data_offset, @Cast("size_t") long data_element, int element_size, int element_count, int block_size);
+ public static native int fortio_fileno( fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_ftruncate( fortio_type fortio, @Cast("offset_type") long size);
+ public static native int fortio_fclean(fortio_type fortio);
+
+ public static native @Cast("bool") boolean fortio_fclose_stream( fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_fopen_stream( fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_stream_is_open( @Const fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_assert_stream_open( fortio_type fortio );
+ public static native @Cast("bool") boolean fortio_read_at_eof( fortio_type fortio );
+ public static native void fortio_fwrite_error(fortio_type fortio);
+
+public static native @Cast("bool") boolean fortio_is_instance( @Const Pointer __arg );
+public static native fortio_type fortio_safe_cast( Pointer __arg );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/ecl/ecl_kw.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_kw.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_KW_H
+// #define ERT_ECL_KW_H
+// #ifdef __cplusplus
+// #endif
+// #include
+// #include
+// #include
+// #include
+
+// #include
+// #include
+
+// #include
+// #include
+// #include
+
+ public static native @Cast("bool") boolean ecl_kw_is_instance( @Const Pointer __arg );
+// Targeting ../ecl_kw_type.java
+
+
+
+ /** enum ecl_read_status_enum */
+ public static final int
+ ECL_KW_READ_OK = 0,
+ ECL_KW_READ_FAIL = 1;
+
+/*
+ The size of an ecl_kw instance is denoted with an integer. The
+ choice of int to store the size obviously limits the maximum size to
+ INT_MAX elements. This choice is an historical mistake - it should
+ probably have been size_t; however the ecl_kw datastructure is
+ tightly bound to the on-disk binary format supplied by Eclipse, and
+ there the number of elements is stored as a signed(?) 32 bit
+ integer - so using int for size does make some sense-
+*/
+
+public static final int ECL_KW_MAX_SIZE =Integer.MAX_VALUE;
+
+/*
+ Character data in ECLIPSE files comes as an array of fixed-length
+ string. Each of these strings is 8 characters long. The type name,
+ i.e. 'REAL', 'INTE', ... , come as 4 character strings.
+*/
+public static final int ECL_KW_HEADER_DATA_SIZE = ECL_STRING8_LENGTH + ECL_TYPE_LENGTH + 4;
+public static final int ECL_KW_HEADER_FORTIO_SIZE = ECL_KW_HEADER_DATA_SIZE + 8;
+
+
+
+ public static native int ecl_kw_first_different( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2, int offset, double abs_epsilon, double rel_epsilon);
+ public static native @Cast("size_t") long ecl_kw_fortio_size( @Const ecl_kw_type ecl_kw );
+ public static native Pointer ecl_kw_get_ptr(@Const ecl_kw_type ecl_kw);
+ public static native void ecl_kw_set_data_ptr(ecl_kw_type ecl_kw, Pointer data);
+ public static native void ecl_kw_fwrite_data(@Const ecl_kw_type _ecl_kw, fortio_type fortio);
+ public static native @Cast("bool") boolean ecl_kw_fread_realloc_data(ecl_kw_type ecl_kw, fortio_type fortio);
+ public static native @ByVal ecl_data_type ecl_kw_get_data_type(@Const ecl_kw_type arg0);
+ public static native @Cast("const char*") BytePointer ecl_kw_get_header8(@Const ecl_kw_type arg0);
+ public static native @Cast("const char*") BytePointer ecl_kw_get_header(@Const ecl_kw_type ecl_kw );
+ public static native ecl_kw_type ecl_kw_alloc_empty();
+ public static native @Cast("ecl_read_status_enum") int ecl_kw_fread_header(ecl_kw_type arg0, fortio_type arg1);
+ public static native void ecl_kw_set_header_name(ecl_kw_type arg0, @Cast("const char*") BytePointer arg1 );
+ public static native void ecl_kw_set_header_name(ecl_kw_type arg0, String arg1 );
+ public static native @Cast("bool") boolean ecl_kw_fseek_kw(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, @Cast("bool") boolean arg2, fortio_type arg3);
+ public static native @Cast("bool") boolean ecl_kw_fseek_kw(String arg0, @Cast("bool") boolean arg1, @Cast("bool") boolean arg2, fortio_type arg3);
+ public static native @Cast("bool") boolean ecl_kw_fseek_last_kw(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, fortio_type arg2);
+ public static native @Cast("bool") boolean ecl_kw_fseek_last_kw(String arg0, @Cast("bool") boolean arg1, fortio_type arg2);
+ public static native void ecl_kw_inplace_update_file(@Const ecl_kw_type arg0, @Cast("const char*") BytePointer arg1, int arg2 );
+ public static native void ecl_kw_inplace_update_file(@Const ecl_kw_type arg0, String arg1, int arg2 );
+ public static native void ecl_kw_fskip(fortio_type arg0);
+ public static native void ecl_kw_alloc_data(ecl_kw_type arg0);
+ public static native void ecl_kw_alloc_double_data(ecl_kw_type ecl_kw, DoublePointer values);
+ public static native void ecl_kw_alloc_double_data(ecl_kw_type ecl_kw, DoubleBuffer values);
+ public static native void ecl_kw_alloc_double_data(ecl_kw_type ecl_kw, double[] values);
+ public static native void ecl_kw_alloc_float_data(ecl_kw_type ecl_kw, FloatPointer values);
+ public static native void ecl_kw_alloc_float_data(ecl_kw_type ecl_kw, FloatBuffer values);
+ public static native void ecl_kw_alloc_float_data(ecl_kw_type ecl_kw, float[] values);
+ public static native @Cast("bool") boolean ecl_kw_fread_realloc(ecl_kw_type arg0, fortio_type arg1);
+ public static native void ecl_kw_fread(ecl_kw_type arg0, fortio_type arg1 );
+ public static native ecl_kw_type ecl_kw_fread_alloc(fortio_type arg0);
+ public static native ecl_kw_type ecl_kw_alloc_actnum(@Const ecl_kw_type porv_kw, float porv_limit);
+ public static native ecl_kw_type ecl_kw_alloc_actnum_bitmask(@Const ecl_kw_type porv_kw, float porv_limit, int actnum_bitmask);
+ public static native void ecl_kw_free_data(ecl_kw_type arg0);
+ public static native void ecl_kw_fread_indexed_data(fortio_type fortio, @Cast("offset_type") long data_offset, @ByVal ecl_data_type arg2, int element_count, @Const int_vector_type index_map, @Cast("char*") BytePointer buffer);
+ public static native void ecl_kw_fread_indexed_data(fortio_type fortio, @Cast("offset_type") long data_offset, @ByVal ecl_data_type arg2, int element_count, @Const int_vector_type index_map, @Cast("char*") ByteBuffer buffer);
+ public static native void ecl_kw_fread_indexed_data(fortio_type fortio, @Cast("offset_type") long data_offset, @ByVal ecl_data_type arg2, int element_count, @Const int_vector_type index_map, @Cast("char*") byte[] buffer);
+ public static native void ecl_kw_free(ecl_kw_type arg0);
+ public static native void ecl_kw_free__(Pointer arg0);
+ public static native ecl_kw_type ecl_kw_alloc_copy(@Const ecl_kw_type arg0);
+ public static native ecl_kw_type ecl_kw_alloc_sub_copy( @Const ecl_kw_type src, @Cast("const char*") BytePointer new_kw, int offset, int count);
+ public static native ecl_kw_type ecl_kw_alloc_sub_copy( @Const ecl_kw_type src, String new_kw, int offset, int count);
+ public static native @Const Pointer ecl_kw_copyc__(@Const Pointer arg0);
+ public static native ecl_kw_type ecl_kw_alloc_slice_copy( @Const ecl_kw_type src, int index1, int index2, int stride);
+ public static native void ecl_kw_resize( ecl_kw_type ecl_kw, int new_size);
+ //void * ecl_kw_get_data_ref(const ecl_kw_type *);
+ public static native Pointer ecl_kw_alloc_data_copy(@Const ecl_kw_type arg0 );
+ public static native void ecl_kw_memcpy(ecl_kw_type arg0, @Const ecl_kw_type arg1);
+ public static native void ecl_kw_get_memcpy_data(@Const ecl_kw_type arg0, Pointer arg1);
+ public static native void ecl_kw_get_memcpy_float_data(@Const ecl_kw_type ecl_kw, FloatPointer target);
+ public static native void ecl_kw_get_memcpy_float_data(@Const ecl_kw_type ecl_kw, FloatBuffer target);
+ public static native void ecl_kw_get_memcpy_float_data(@Const ecl_kw_type ecl_kw, float[] target);
+ public static native void ecl_kw_get_memcpy_double_data(@Const ecl_kw_type ecl_kw, DoublePointer target);
+ public static native void ecl_kw_get_memcpy_double_data(@Const ecl_kw_type ecl_kw, DoubleBuffer target);
+ public static native void ecl_kw_get_memcpy_double_data(@Const ecl_kw_type ecl_kw, double[] target);
+ public static native void ecl_kw_get_memcpy_int_data(@Const ecl_kw_type ecl_kw, IntPointer target);
+ public static native void ecl_kw_get_memcpy_int_data(@Const ecl_kw_type ecl_kw, IntBuffer target);
+ public static native void ecl_kw_get_memcpy_int_data(@Const ecl_kw_type ecl_kw, int[] target);
+ public static native void ecl_kw_set_memcpy_data(ecl_kw_type arg0, @Const Pointer arg1);
+ public static native @Cast("bool") boolean ecl_kw_fwrite(@Const ecl_kw_type arg0, fortio_type arg1);
+ public static native void ecl_kw_iget(@Const ecl_kw_type arg0, int arg1, Pointer arg2);
+ public static native void ecl_kw_iset(ecl_kw_type ecl_kw, int i, @Const Pointer iptr);
+ public static native void ecl_kw_iset_char_ptr( ecl_kw_type ecl_kw, int index, @Cast("const char*") BytePointer s);
+ public static native void ecl_kw_iset_char_ptr( ecl_kw_type ecl_kw, int index, String s);
+ public static native void ecl_kw_iset_string8(ecl_kw_type ecl_kw, int index, @Cast("const char*") BytePointer s8);
+ public static native void ecl_kw_iset_string8(ecl_kw_type ecl_kw, int index, String s8);
+ public static native void ecl_kw_iset_string_ptr(ecl_kw_type arg0, int arg1, @Cast("const char*") BytePointer arg2);
+ public static native void ecl_kw_iset_string_ptr(ecl_kw_type arg0, int arg1, String arg2);
+ public static native @Cast("const char*") BytePointer ecl_kw_iget_string_ptr(@Const ecl_kw_type arg0, int arg1);
+ public static native @Cast("const char*") BytePointer ecl_kw_iget_char_ptr( @Const ecl_kw_type ecl_kw, int i);
+ public static native Pointer ecl_kw_iget_ptr(@Const ecl_kw_type arg0, int arg1);
+ public static native int ecl_kw_get_size(@Const ecl_kw_type arg0);
+ public static native @Cast("bool") boolean ecl_kw_ichar_eq(@Const ecl_kw_type arg0, int arg1, @Cast("const char*") BytePointer arg2);
+ public static native @Cast("bool") boolean ecl_kw_ichar_eq(@Const ecl_kw_type arg0, int arg1, String arg2);
+ public static native ecl_kw_type ecl_kw_alloc( @Cast("const char*") BytePointer header, int size, @ByVal ecl_data_type arg2 );
+ public static native ecl_kw_type ecl_kw_alloc( String header, int size, @ByVal ecl_data_type arg2 );
+ public static native ecl_kw_type ecl_kw_alloc_new(@Cast("const char*") BytePointer arg0, int arg1, @ByVal ecl_data_type arg2, @Const Pointer arg3 );
+ public static native ecl_kw_type ecl_kw_alloc_new(String arg0, int arg1, @ByVal ecl_data_type arg2, @Const Pointer arg3 );
+ public static native ecl_kw_type ecl_kw_alloc_new_shared(@Cast("const char*") BytePointer arg0, int arg1, @ByVal ecl_data_type arg2, Pointer arg3 );
+ public static native ecl_kw_type ecl_kw_alloc_new_shared(String arg0, int arg1, @ByVal ecl_data_type arg2, Pointer arg3 );
+ public static native ecl_kw_type ecl_kw_alloc_global_copy(@Const ecl_kw_type src, @Const ecl_kw_type actnum);
+ public static native void ecl_kw_fwrite_param(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, @Cast("const char*") BytePointer arg2, @ByVal ecl_data_type arg3, int arg4, Pointer arg5 );
+ public static native void ecl_kw_fwrite_param(String arg0, @Cast("bool") boolean arg1, String arg2, @ByVal ecl_data_type arg3, int arg4, Pointer arg5 );
+ public static native void ecl_kw_fwrite_param_fortio(fortio_type arg0, @Cast("const char*") BytePointer arg1, @ByVal ecl_data_type arg2, int arg3, Pointer arg4 );
+ public static native void ecl_kw_fwrite_param_fortio(fortio_type arg0, String arg1, @ByVal ecl_data_type arg2, int arg3, Pointer arg4 );
+ public static native void ecl_kw_summarize(@Const ecl_kw_type ecl_kw);
+ public static native void ecl_kw_fread_double_param(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, DoublePointer arg2);
+ public static native void ecl_kw_fread_double_param(String arg0, @Cast("bool") boolean arg1, DoubleBuffer arg2);
+ public static native void ecl_kw_fread_double_param(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, double[] arg2);
+ public static native void ecl_kw_fread_double_param(String arg0, @Cast("bool") boolean arg1, DoublePointer arg2);
+ public static native void ecl_kw_fread_double_param(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, DoubleBuffer arg2);
+ public static native void ecl_kw_fread_double_param(String arg0, @Cast("bool") boolean arg1, double[] arg2);
+ public static native float ecl_kw_iget_as_float(@Const ecl_kw_type ecl_kw, int i);
+ public static native double ecl_kw_iget_as_double(@Const ecl_kw_type ecl_kw, int i);
+ public static native void ecl_kw_get_data_as_double(@Const ecl_kw_type arg0, DoublePointer arg1);
+ public static native void ecl_kw_get_data_as_double(@Const ecl_kw_type arg0, DoubleBuffer arg1);
+ public static native void ecl_kw_get_data_as_double(@Const ecl_kw_type arg0, double[] arg1);
+ public static native void ecl_kw_get_data_as_float(@Const ecl_kw_type ecl_kw, FloatPointer float_data);
+ public static native void ecl_kw_get_data_as_float(@Const ecl_kw_type ecl_kw, FloatBuffer float_data);
+ public static native void ecl_kw_get_data_as_float(@Const ecl_kw_type ecl_kw, float[] float_data);
+ public static native @Cast("bool") boolean ecl_kw_name_equal( @Const ecl_kw_type ecl_kw, @Cast("const char*") BytePointer name);
+ public static native @Cast("bool") boolean ecl_kw_name_equal( @Const ecl_kw_type ecl_kw, String name);
+ public static native @Cast("bool") boolean ecl_kw_header_eq(@Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2);
+ public static native @Cast("bool") boolean ecl_kw_equal(@Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2);
+ public static native @Cast("bool") boolean ecl_kw_size_and_type_equal( @Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2 );
+ public static native @Cast("bool") boolean ecl_kw_icmp_string( @Const ecl_kw_type ecl_kw, int index, @Cast("const char*") BytePointer other_string);
+ public static native @Cast("bool") boolean ecl_kw_icmp_string( @Const ecl_kw_type ecl_kw, int index, String other_string);
+ public static native @Cast("bool") boolean ecl_kw_numeric_equal(@Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2, double abs_diff, double rel_diff);
+ public static native @Cast("bool") boolean ecl_kw_block_equal( @Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2, int cmp_elements);
+ public static native @Cast("bool") boolean ecl_kw_data_equal( @Const ecl_kw_type ecl_kw, @Const Pointer data);
+ public static native @Cast("bool") boolean ecl_kw_content_equal( @Const ecl_kw_type ecl_kw1, @Const ecl_kw_type ecl_kw2);
+ public static native @Cast("bool") boolean ecl_kw_fskip_data__( @ByVal ecl_data_type arg0, int arg1, fortio_type arg2);
+ public static native @Cast("bool") boolean ecl_kw_fskip_data(ecl_kw_type ecl_kw, fortio_type fortio);
+ public static native @Cast("bool") boolean ecl_kw_fread_data(ecl_kw_type ecl_kw, fortio_type fortio);
+ public static native void ecl_kw_fskip_header( fortio_type fortio);
+ public static native @Cast("bool") boolean ecl_kw_size_and_numeric_type_equal( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+ public static native @Cast("bool") boolean ecl_kw_inplace_safe_div(ecl_kw_type target_kw, @Const ecl_kw_type divisor);
+ public static native void ecl_kw_inplace_sqrt( ecl_kw_type kw );
+
+
+ public static native @Cast("bool") boolean ecl_kw_is_kw_file(fortio_type fortio);
+
+ public static native int ecl_kw_element_sum_int( @Const ecl_kw_type ecl_kw );
+ public static native double ecl_kw_element_sum_float( @Const ecl_kw_type ecl_kw );
+ public static native void ecl_kw_inplace_inv(ecl_kw_type my_kw);
+ public static native void ecl_kw_element_sum(@Const ecl_kw_type arg0, Pointer arg1 );
+ public static native void ecl_kw_element_sum_indexed(@Const ecl_kw_type ecl_kw, @Const int_vector_type index_list, Pointer _sum);
+ public static native void ecl_kw_max_min(@Const ecl_kw_type arg0, Pointer arg1, Pointer arg2);
+ public static native Pointer ecl_kw_get_void_ptr(@Const ecl_kw_type ecl_kw);
+
+ public static native ecl_kw_type ecl_kw_buffer_alloc(buffer_type buffer);
+ public static native void ecl_kw_buffer_store(@Const ecl_kw_type ecl_kw, buffer_type buffer);
+
+ public static native void ecl_kw_fprintf_data( @Const ecl_kw_type ecl_kw, @Cast("const char*") BytePointer fmt, @Cast("FILE*") Pointer stream);
+ public static native void ecl_kw_fprintf_data( @Const ecl_kw_type ecl_kw, String fmt, @Cast("FILE*") Pointer stream);
+ public static native void ecl_kw_memcpy_data( ecl_kw_type target, @Const ecl_kw_type src);
+
+ public static native @Cast("bool") boolean ecl_kw_assert_numeric( @Const ecl_kw_type kw );
+ public static native @Cast("bool") boolean ecl_kw_assert_binary( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+
+ public static native void ecl_kw_scalar_set_bool( ecl_kw_type ecl_kw, @Cast("bool") boolean bool_value);
+ public static native void ecl_kw_scalar_set__(ecl_kw_type ecl_kw, @Const Pointer value);
+ public static native void ecl_kw_scalar_set_float_or_double( ecl_kw_type ecl_kw, double value );
+
+
+// #define ECL_KW_SCALAR_SET_TYPED_HEADER( ctype ) void ecl_kw_scalar_set_ ## ctype( ecl_kw_type * ecl_kw , ctype value);
+ public static native void ecl_kw_scalar_set_int( ecl_kw_type ecl_kw, int value);
+ public static native void ecl_kw_scalar_set_float( ecl_kw_type ecl_kw, float value);
+ public static native void ecl_kw_scalar_set_double( ecl_kw_type ecl_kw, double value);
+// #undef ECL_KW_SCALAR_SET_TYPED_HEADER
+
+ public static native ecl_kw_type ecl_kw_alloc_scatter_copy( @Const ecl_kw_type src_kw, int target_size, @Const IntPointer mapping, Pointer def_value);
+ public static native ecl_kw_type ecl_kw_alloc_scatter_copy( @Const ecl_kw_type src_kw, int target_size, @Const IntBuffer mapping, Pointer def_value);
+ public static native ecl_kw_type ecl_kw_alloc_scatter_copy( @Const ecl_kw_type src_kw, int target_size, @Const int[] mapping, Pointer def_value);
+
+ public static native void ecl_kw_inplace_add_squared(ecl_kw_type target_kw, @Const ecl_kw_type add_kw);
+ public static native void ecl_kw_inplace_add( ecl_kw_type target_kw, @Const ecl_kw_type add_kw);
+ public static native void ecl_kw_inplace_sub( ecl_kw_type target_kw, @Const ecl_kw_type sub_kw);
+ public static native void ecl_kw_inplace_div( ecl_kw_type target_kw, @Const ecl_kw_type div_kw);
+ public static native void ecl_kw_inplace_mul( ecl_kw_type target_kw, @Const ecl_kw_type mul_kw);
+ public static native void ecl_kw_inplace_abs( ecl_kw_type kw );
+
+ public static native void ecl_kw_inplace_add_indexed( ecl_kw_type target_kw, @Const int_vector_type index_set, @Const ecl_kw_type add_kw);
+ public static native void ecl_kw_inplace_sub_indexed( ecl_kw_type target_kw, @Const int_vector_type index_set, @Const ecl_kw_type sub_kw);
+ public static native void ecl_kw_inplace_mul_indexed( ecl_kw_type target_kw, @Const int_vector_type index_set, @Const ecl_kw_type mul_kw);
+ public static native void ecl_kw_inplace_div_indexed( ecl_kw_type target_kw, @Const int_vector_type index_set, @Const ecl_kw_type div_kw);
+ public static native void ecl_kw_copy_indexed( ecl_kw_type target_kw, @Const int_vector_type index_set, @Const ecl_kw_type src_kw);
+
+ public static native @Cast("bool") boolean ecl_kw_assert_binary_numeric( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+// #define ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER( ctype ) bool ecl_kw_assert_binary_ ## ctype( const ecl_kw_type * kw1 , const ecl_kw_type * kw2)
+ public static native @Cast("bool") boolean ecl_kw_assert_binary_int( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+ public static native @Cast("bool") boolean ecl_kw_assert_binary_float( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+ public static native @Cast("bool") boolean ecl_kw_assert_binary_double( @Const ecl_kw_type kw1, @Const ecl_kw_type kw2);
+// #undef ECL_KW_ASSERT_TYPED_BINARY_OP_HEADER
+
+// #define ECL_KW_SCALE_TYPED_HEADER( ctype ) void ecl_kw_scale_ ## ctype (ecl_kw_type * ecl_kw , ctype scale_factor)
+ public static native void ecl_kw_scale_int(ecl_kw_type ecl_kw, int scale_factor);
+ public static native void ecl_kw_scale_float(ecl_kw_type ecl_kw, float scale_factor);
+ public static native void ecl_kw_scale_double(ecl_kw_type ecl_kw, double scale_factor);
+// #undef ECL_KW_SCALE_TYPED_HEADER
+ public static native void ecl_kw_scale_float_or_double( ecl_kw_type ecl_kw, double scale_factor );
+
+
+// #define ECL_KW_SHIFT_TYPED_HEADER( ctype ) void ecl_kw_shift_ ## ctype (ecl_kw_type * ecl_kw , ctype shift_factor)
+ public static native void ecl_kw_shift_int(ecl_kw_type ecl_kw, int shift_factor);
+ public static native void ecl_kw_shift_float(ecl_kw_type ecl_kw, float shift_factor);
+ public static native void ecl_kw_shift_double(ecl_kw_type ecl_kw, double shift_factor);
+// #undef ECL_KW_SHIFT_TYPED_HEADER
+ public static native void ecl_kw_shift_float_or_double( ecl_kw_type ecl_kw, double shift_value );
+
+
+// #define ECL_KW_IGET_TYPED_HEADER(type) type ecl_kw_iget_ ## type(const ecl_kw_type * , int)
+ public static native double ecl_kw_iget_double(@Const ecl_kw_type arg0, int arg1);
+ public static native float ecl_kw_iget_float(@Const ecl_kw_type arg0, int arg1);
+ public static native int ecl_kw_iget_int(@Const ecl_kw_type arg0, int arg1);
+// #undef ECL_KW_IGET_TYPED_HEADER
+ public static native @Cast("bool") boolean ecl_kw_iget_bool( @Const ecl_kw_type ecl_kw, int i );
+
+
+// #define ECL_KW_ISET_TYPED_HEADER(type) void ecl_kw_iset_ ## type(ecl_kw_type * , int , type )
+ public static native void ecl_kw_iset_double(ecl_kw_type arg0, int arg1, double arg2 );
+ public static native void ecl_kw_iset_float(ecl_kw_type arg0, int arg1, float arg2 );
+ public static native void ecl_kw_iset_int(ecl_kw_type arg0, int arg1, int arg2 );
+// #undef ECL_KW_ISET_TYPED_HEADER
+ public static native void ecl_kw_iset_bool( ecl_kw_type ecl_kw, int i, @Cast("bool") boolean bool_value);
+
+
+// #define ECL_KW_GET_TYPED_PTR_HEADER(type) type * ecl_kw_get_ ## type ## _ptr(const ecl_kw_type *)
+ public static native DoublePointer ecl_kw_get_double_ptr(@Const ecl_kw_type arg0);
+ public static native FloatPointer ecl_kw_get_float_ptr(@Const ecl_kw_type arg0);
+ public static native IntPointer ecl_kw_get_int_ptr(@Const ecl_kw_type arg0);
+ public static native @Cast("bool*") BoolPointer ecl_kw_get_bool_ptr(@Const ecl_kw_type arg0);
+// #undef ECL_KW_GET_TYPED_PTR_HEADER
+
+
+// #define ECL_KW_SET_INDEXED_HEADER(ctype ) void ecl_kw_set_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype value)
+ public static native void ecl_kw_set_indexed_double( ecl_kw_type ecl_kw, @Const int_vector_type index_list, double value);
+ public static native void ecl_kw_set_indexed_float( ecl_kw_type ecl_kw, @Const int_vector_type index_list, float value);
+ public static native void ecl_kw_set_indexed_int( ecl_kw_type ecl_kw, @Const int_vector_type index_list, int value);
+// #undef ECL_KW_SET_INDEXED_HEADER
+
+
+// #define ECL_KW_SHIFT_INDEXED_HEADER(ctype) void ecl_kw_shift_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype shift)
+ public static native void ecl_kw_shift_indexed_int( ecl_kw_type ecl_kw, @Const int_vector_type index_list, int shift);
+ public static native void ecl_kw_shift_indexed_float( ecl_kw_type ecl_kw, @Const int_vector_type index_list, float shift);
+ public static native void ecl_kw_shift_indexed_double( ecl_kw_type ecl_kw, @Const int_vector_type index_list, double shift);
+// #undef ECL_KW_SHIFT_INDEXED_HEADER
+
+
+// #define ECL_KW_SCALE_INDEXED_HEADER(ctype) void ecl_kw_scale_indexed_ ## ctype( ecl_kw_type * ecl_kw, const int_vector_type * index_list , ctype scale)
+ public static native void ecl_kw_scale_indexed_int( ecl_kw_type ecl_kw, @Const int_vector_type index_list, int scale);
+ public static native void ecl_kw_scale_indexed_float( ecl_kw_type ecl_kw, @Const int_vector_type index_list, float scale);
+ public static native void ecl_kw_scale_indexed_double( ecl_kw_type ecl_kw, @Const int_vector_type index_list, double scale);
+// #undef ECL_KW_SCALE_INDEXED_HEADER
+
+
+// #define ECL_KW_MAX_MIN_HEADER( ctype ) void ecl_kw_max_min_ ## ctype( const ecl_kw_type * ecl_kw , ctype * _max , ctype * _min)
+ public static native void ecl_kw_max_min_int( @Const ecl_kw_type ecl_kw, IntPointer _max, IntPointer _min);
+ public static native void ecl_kw_max_min_int( @Const ecl_kw_type ecl_kw, IntBuffer _max, IntBuffer _min);
+ public static native void ecl_kw_max_min_int( @Const ecl_kw_type ecl_kw, int[] _max, int[] _min);
+ public static native void ecl_kw_max_min_float( @Const ecl_kw_type ecl_kw, FloatPointer _max, FloatPointer _min);
+ public static native void ecl_kw_max_min_float( @Const ecl_kw_type ecl_kw, FloatBuffer _max, FloatBuffer _min);
+ public static native void ecl_kw_max_min_float( @Const ecl_kw_type ecl_kw, float[] _max, float[] _min);
+ public static native void ecl_kw_max_min_double( @Const ecl_kw_type ecl_kw, DoublePointer _max, DoublePointer _min);
+ public static native void ecl_kw_max_min_double( @Const ecl_kw_type ecl_kw, DoubleBuffer _max, DoubleBuffer _min);
+ public static native void ecl_kw_max_min_double( @Const ecl_kw_type ecl_kw, double[] _max, double[] _min);
+// #undef ECL_KW_MAX_MIN_HEADER
+
+ public static native void ecl_kw_fix_uninitialized(ecl_kw_type ecl_kw, int nx, int ny, int nz, @Const IntPointer actnum);
+ public static native void ecl_kw_fix_uninitialized(ecl_kw_type ecl_kw, int nx, int ny, int nz, @Const IntBuffer actnum);
+ public static native void ecl_kw_fix_uninitialized(ecl_kw_type ecl_kw, int nx, int ny, int nz, @Const int[] actnum);
+
+ public static native @Cast("ecl_type_enum") int ecl_kw_get_type(@Const ecl_kw_type arg0);
+
+// #include
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/ecl/ecl_kw_grdecl.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_kw_grdecl.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+/*
+ This header does not define datatypes; just a couple of functions. It should
+ be included from the ecl_kw.h header, so applications do not need to include this
+ header explicitly.
+*/
+
+// #ifndef ERT_ECL_KW_GRDECL_H
+// #define ERT_ECL_KW_GRDECL_H
+// #ifdef __cplusplus
+// #endif
+
+
+
+ public static native @Cast("bool") boolean ecl_kw_grdecl_fseek_kw(@Cast("const char*") BytePointer arg0, @Cast("bool") boolean arg1, @Cast("FILE*") Pointer arg2 );
+ public static native @Cast("bool") boolean ecl_kw_grdecl_fseek_kw(String arg0, @Cast("bool") boolean arg1, @Cast("FILE*") Pointer arg2 );
+
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_dynamic__( @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer kw, @Cast("bool") boolean strict, @ByVal ecl_data_type arg3 );
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_dynamic__( @Cast("FILE*") Pointer stream, String kw, @Cast("bool") boolean strict, @ByVal ecl_data_type arg3 );
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_dynamic( @Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer kw, @ByVal ecl_data_type arg2);
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_dynamic( @Cast("FILE*") Pointer stream, String kw, @ByVal ecl_data_type arg2);
+
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_data__(@Cast("FILE*") Pointer stream, @Cast("bool") boolean strict, int size, @ByVal ecl_data_type data_type );
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl_data( @Cast("FILE*") Pointer stream, int size, @ByVal ecl_data_type data_type);
+
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl__(@Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer kw, @Cast("bool") boolean strict, int size, @ByVal ecl_data_type data_type);
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl__(@Cast("FILE*") Pointer stream, String kw, @Cast("bool") boolean strict, int size, @ByVal ecl_data_type data_type);
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl(@Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer kw, int size, @ByVal ecl_data_type data_type);
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_grdecl(@Cast("FILE*") Pointer stream, String kw, int size, @ByVal ecl_data_type data_type);
+
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_current_grdecl__( @Cast("FILE*") Pointer stream, @Cast("bool") boolean strict, @ByVal ecl_data_type data_type);
+ public static native ecl_kw_type ecl_kw_fscanf_alloc_current_grdecl( @Cast("FILE*") Pointer stream, @ByVal ecl_data_type data_type);
+
+ public static native @Cast("bool") boolean ecl_kw_grdecl_fseek_next_kw( @Cast("FILE*") Pointer stream );
+ public static native @Cast("char*") BytePointer ecl_kw_grdecl_alloc_next_header( @Cast("FILE*") Pointer stream );
+
+ public static native void ecl_kw_fprintf_grdecl(@Const ecl_kw_type ecl_kw, @Cast("FILE*") Pointer stream);
+ public static native void ecl_kw_fprintf_grdecl__(@Const ecl_kw_type ecl_kw, @Cast("const char*") BytePointer special_header, @Cast("FILE*") Pointer stream);
+ public static native void ecl_kw_fprintf_grdecl__(@Const ecl_kw_type ecl_kw, String special_header, @Cast("FILE*") Pointer stream);
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+
+// Parsed from ert/ecl/ecl_file_kw.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_file_kw.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_FILE_KW_H
+// #define ERT_ECL_FILE_KW_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+// #include
+
+// #include
+// #include
+// Targeting ../ecl_file_kw_type.java
+
+
+// Targeting ../inv_map_type.java
+
+
+
+ public static native inv_map_type inv_map_alloc();
+ public static native ecl_file_kw_type inv_map_get_file_kw( inv_map_type inv_map, @Const ecl_kw_type ecl_kw );
+ public static native void inv_map_free( inv_map_type map );
+ public static native @Cast("bool") boolean ecl_file_kw_equal( @Const ecl_file_kw_type kw1, @Const ecl_file_kw_type kw2);
+ public static native ecl_file_kw_type ecl_file_kw_alloc( @Const ecl_kw_type ecl_kw, @Cast("offset_type") long offset);
+ public static native ecl_file_kw_type ecl_file_kw_alloc0( @Cast("const char*") BytePointer header, @ByVal ecl_data_type data_type, int size, @Cast("offset_type") long offset);
+ public static native ecl_file_kw_type ecl_file_kw_alloc0( String header, @ByVal ecl_data_type data_type, int size, @Cast("offset_type") long offset);
+ public static native void ecl_file_kw_free( ecl_file_kw_type file_kw );
+ public static native void ecl_file_kw_free__( Pointer arg );
+ public static native ecl_kw_type ecl_file_kw_get_kw( ecl_file_kw_type file_kw, fortio_type fortio, inv_map_type inv_map);
+ public static native ecl_kw_type ecl_file_kw_get_kw_ptr( ecl_file_kw_type file_kw );
+ public static native ecl_file_kw_type ecl_file_kw_alloc_copy( @Const ecl_file_kw_type src );
+ public static native @Cast("const char*") BytePointer ecl_file_kw_get_header( @Const ecl_file_kw_type file_kw );
+ public static native int ecl_file_kw_get_size( @Const ecl_file_kw_type file_kw );
+ public static native @ByVal ecl_data_type ecl_file_kw_get_data_type(@Const ecl_file_kw_type arg0);
+ public static native @Cast("offset_type") long ecl_file_kw_get_offset(@Const ecl_file_kw_type file_kw);
+ public static native @Cast("bool") boolean ecl_file_kw_ptr_eq( @Const ecl_file_kw_type file_kw, @Const ecl_kw_type ecl_kw);
+ public static native void ecl_file_kw_replace_kw( ecl_file_kw_type file_kw, fortio_type target, ecl_kw_type new_kw );
+ public static native @Cast("bool") boolean ecl_file_kw_fskip_data( @Const ecl_file_kw_type file_kw, fortio_type fortio);
+ public static native void ecl_file_kw_inplace_fwrite( ecl_file_kw_type file_kw, fortio_type fortio);
+
+ public static native void ecl_file_kw_fwrite( @Const ecl_file_kw_type file_kw, @Cast("FILE*") Pointer stream );
+ public static native @Cast("ecl_file_kw_type**") PointerPointer ecl_file_kw_fread_alloc_multiple( @Cast("FILE*") Pointer stream, int num);
+ public static native ecl_file_kw_type ecl_file_kw_fread_alloc( @Cast("FILE*") Pointer stream );
+
+ public static native void ecl_file_kw_start_transaction(@Const ecl_file_kw_type file_kw, IntPointer ref_count);
+ public static native void ecl_file_kw_start_transaction(@Const ecl_file_kw_type file_kw, IntBuffer ref_count);
+ public static native void ecl_file_kw_start_transaction(@Const ecl_file_kw_type file_kw, int[] ref_count);
+ public static native void ecl_file_kw_end_transaction(ecl_file_kw_type file_kw, int ref_count);
+
+// #ifdef __cplusplus
+// #endif
+
+// #endif
+
+
+// Parsed from ert/ecl/ecl_file_view.hpp
+
+/*
+ Copyright (C) 2016 Equinor ASA, Norway.
+
+ This file is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+
+// #ifndef ERT_ECL_FILE_VIEW_H
+// #define ERT_ECL_FILE_VIEW_H
+
+// #include
+// #include
+
+// #include
+// #include
+// #include
+
+
+// #ifdef __cplusplus
+// #endif
+
+/** enum ecl_file_flag_type */
+public static final int
+ ECL_FILE_CLOSE_STREAM = 1, /*
+ This flag will close the underlying FILE object between each access; this is
+ mainly to save filedescriptors in cases where many ecl_file instances are open at
+ the same time. */
+ //
+ ECL_FILE_WRITABLE = 2; /*
+ This flag opens the file in a mode where it can be updated and modified, but it
+ must still exist and be readable. I.e. this should not compared with the normal:
+ fopen(filename , "w") where an existing file is truncated to zero upon successfull
+ open.
+ */
+// Targeting ../ecl_file_view_type.java
+
+
+// Targeting ../ecl_file_transaction_type.java
+
+
+
+
+ public static native @Cast("bool") boolean ecl_file_view_flags_set( @Const ecl_file_view_type file_view, int query_flags);
+ public static native @Cast("bool") boolean ecl_file_view_check_flags( int state_flags, int query_flags);
+
+ public static native ecl_file_view_type ecl_file_view_alloc( fortio_type fortio, IntPointer flags, inv_map_type inv_map, @Cast("bool") boolean owner );
+ public static native ecl_file_view_type ecl_file_view_alloc( fortio_type fortio, IntBuffer flags, inv_map_type inv_map, @Cast("bool") boolean owner );
+ public static native ecl_file_view_type ecl_file_view_alloc( fortio_type fortio, int[] flags, inv_map_type inv_map, @Cast("bool") boolean owner );
+ public static native int ecl_file_view_get_global_index( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int ith);
+ public static native int ecl_file_view_get_global_index( @Const ecl_file_view_type ecl_file_view, String kw, int ith);
+ public static native void ecl_file_view_make_index( ecl_file_view_type ecl_file_view );
+ public static native @Cast("bool") boolean ecl_file_view_has_kw( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw);
+ public static native @Cast("bool") boolean ecl_file_view_has_kw( @Const ecl_file_view_type ecl_file_view, String kw);
+ public static native ecl_file_kw_type ecl_file_view_iget_file_kw( @Const ecl_file_view_type ecl_file_view, int global_index);
+ public static native ecl_file_kw_type ecl_file_view_iget_named_file_kw( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int ith);
+ public static native ecl_file_kw_type ecl_file_view_iget_named_file_kw( @Const ecl_file_view_type ecl_file_view, String kw, int ith);
+ public static native ecl_kw_type ecl_file_view_iget_kw( @Const ecl_file_view_type ecl_file_view, int index);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") BytePointer buffer);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, String kw, int index, @Const int_vector_type index_map, @Cast("char*") ByteBuffer buffer);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") byte[] buffer);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, String kw, int index, @Const int_vector_type index_map, @Cast("char*") BytePointer buffer);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") ByteBuffer buffer);
+ public static native void ecl_file_view_index_fload_kw(@Const ecl_file_view_type ecl_file_view, String kw, int index, @Const int_vector_type index_map, @Cast("char*") byte[] buffer);
+ public static native int ecl_file_view_find_kw_value( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, @Const Pointer value);
+ public static native int ecl_file_view_find_kw_value( @Const ecl_file_view_type ecl_file_view, String kw, @Const Pointer value);
+ public static native @Cast("const char*") BytePointer ecl_file_view_iget_distinct_kw( @Const ecl_file_view_type ecl_file_view, int index);
+ public static native int ecl_file_view_get_num_distinct_kw( @Const ecl_file_view_type ecl_file_view );
+ public static native int ecl_file_view_get_size( @Const ecl_file_view_type ecl_file_view );
+ public static native @ByVal ecl_data_type ecl_file_view_iget_data_type( @Const ecl_file_view_type ecl_file_view, int index);
+ public static native int ecl_file_view_iget_size( @Const ecl_file_view_type ecl_file_view, int index);
+ public static native @Cast("const char*") BytePointer ecl_file_view_iget_header( @Const ecl_file_view_type ecl_file_view, int index);
+ public static native ecl_kw_type ecl_file_view_iget_named_kw( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int ith);
+ public static native ecl_kw_type ecl_file_view_iget_named_kw( @Const ecl_file_view_type ecl_file_view, String kw, int ith);
+ public static native @ByVal ecl_data_type ecl_file_view_iget_named_data_type( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int ith);
+ public static native @ByVal ecl_data_type ecl_file_view_iget_named_data_type( @Const ecl_file_view_type ecl_file_view, String kw, int ith);
+ public static native int ecl_file_view_iget_named_size( @Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw, int ith);
+ public static native int ecl_file_view_iget_named_size( @Const ecl_file_view_type ecl_file_view, String kw, int ith);
+ public static native void ecl_file_view_replace_kw( ecl_file_view_type ecl_file_view, ecl_kw_type old_kw, ecl_kw_type new_kw, @Cast("bool") boolean insert_copy);
+ public static native @Cast("bool") boolean ecl_file_view_load_all( ecl_file_view_type ecl_file_view );
+ public static native void ecl_file_view_add_kw( ecl_file_view_type ecl_file_view, ecl_file_kw_type file_kw);
+ public static native void ecl_file_view_free( ecl_file_view_type ecl_file_view );
+ public static native void ecl_file_view_free__( Pointer arg );
+ public static native int ecl_file_view_get_num_named_kw(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer kw);
+ public static native int ecl_file_view_get_num_named_kw(@Const ecl_file_view_type ecl_file_view, String kw);
+ public static native void ecl_file_view_fwrite( @Const ecl_file_view_type ecl_file_view, fortio_type target, int offset);
+ public static native int ecl_file_view_iget_occurence( @Const ecl_file_view_type ecl_file_view, int global_index);
+ public static native void ecl_file_view_fprintf_kw_list(@Const ecl_file_view_type ecl_file_view, @Cast("FILE*") Pointer stream);
+ public static native ecl_file_view_type ecl_file_view_add_blockview(ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer header, int occurence);
+ public static native ecl_file_view_type ecl_file_view_add_blockview(ecl_file_view_type ecl_file_view, String header, int occurence);
+ public static native ecl_file_view_type ecl_file_view_add_blockview2(ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer start_kw, @Cast("const char*") BytePointer end_kw, int occurence);
+ public static native ecl_file_view_type ecl_file_view_add_blockview2(ecl_file_view_type ecl_file_view, String start_kw, String end_kw, int occurence);
+ public static native ecl_file_view_type ecl_file_view_add_restart_view(ecl_file_view_type file_view, int seqnum_index, int report_step, @ByVal @Cast("time_t*") Pointer sim_time, double sim_days);
+ public static native ecl_file_view_type ecl_file_view_alloc_blockview(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer header, int occurence);
+ public static native ecl_file_view_type ecl_file_view_alloc_blockview(@Const ecl_file_view_type ecl_file_view, String header, int occurence);
+ public static native ecl_file_view_type ecl_file_view_alloc_blockview2(@Const ecl_file_view_type ecl_file_view, @Cast("const char*") BytePointer start_kw, @Cast("const char*") BytePointer end_kw, int occurence);
+ public static native ecl_file_view_type ecl_file_view_alloc_blockview2(@Const ecl_file_view_type ecl_file_view, String start_kw, String end_kw, int occurence);
+
+ public static native void ecl_file_view_add_child( ecl_file_view_type parent, ecl_file_view_type child);
+ public static native @Cast("bool") boolean ecl_file_view_drop_flag( ecl_file_view_type file_view, int flag);
+ public static native void ecl_file_view_add_flag( ecl_file_view_type file_view, int flag);
+
+ public static native int ecl_file_view_seqnum_index_from_sim_time( ecl_file_view_type parent_map, @ByVal @Cast("time_t*") Pointer sim_time);
+ public static native @Cast("bool") boolean ecl_file_view_has_sim_time( @Const ecl_file_view_type ecl_file_view, @ByVal @Cast("time_t*") Pointer sim_time);
+ public static native int ecl_file_view_find_sim_time(@Const ecl_file_view_type ecl_file_view, @ByVal @Cast("time_t*") Pointer sim_time);
+ public static native double ecl_file_view_iget_restart_sim_days(@Const ecl_file_view_type ecl_file_view, int seqnum_index);
+ public static native @ByVal @Cast("time_t*") Pointer ecl_file_view_iget_restart_sim_date(@Const ecl_file_view_type ecl_file_view, int seqnum_index);
+ public static native @Cast("bool") boolean ecl_file_view_has_report_step( @Const ecl_file_view_type ecl_file_view, int report_step);
+
+ public static native ecl_file_view_type ecl_file_view_add_summary_view( ecl_file_view_type file_view, int report_step );
+ public static native @Cast("const char*") BytePointer ecl_file_view_get_src_file( @Const ecl_file_view_type file_view );
+ public static native void ecl_file_view_fclose_stream( ecl_file_view_type file_view );
+
+ public static native void ecl_file_view_write_index(@Const ecl_file_view_type file_view, @Cast("FILE*") Pointer ostream);
+ public static native ecl_file_view_type ecl_file_view_fread_alloc( fortio_type fortio, IntPointer flags, inv_map_type inv_map, @Cast("FILE*") Pointer istream );
+ public static native ecl_file_view_type ecl_file_view_fread_alloc( fortio_type fortio, IntBuffer flags, inv_map_type inv_map, @Cast("FILE*") Pointer istream );
+ public static native ecl_file_view_type ecl_file_view_fread_alloc( fortio_type fortio, int[] flags, inv_map_type inv_map, @Cast("FILE*") Pointer istream );
+
+ public static native ecl_file_transaction_type ecl_file_view_start_transaction(ecl_file_view_type file_view);
+ public static native void ecl_file_view_end_transaction( ecl_file_view_type file_view, ecl_file_transaction_type transaction);
+
+// #ifdef __cplusplus
+// #endif
+
+// #endif
+
+
+// Parsed from ert/ecl/ecl_file.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_file.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_FILE_H
+// #define ERT_ECL_FILE_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+// #include
+
+
+// #include
+// #include
+// #include
+// #include
+// #include
+// #include
+
+
+
+public static native @MemberGetter double ECL_FILE_FLAGS_ENUM_DEFS();
+public static final double ECL_FILE_FLAGS_ENUM_DEFS = ECL_FILE_FLAGS_ENUM_DEFS();
+public static final int ECL_FILE_FLAGS_ENUM_SIZE = 2;
+// Targeting ../ecl_file_type.java
+
+
+ public static native @Cast("bool") boolean ecl_file_load_all( ecl_file_type ecl_file );
+ public static native ecl_file_type ecl_file_open( @Cast("const char*") BytePointer filename, int flags);
+ public static native ecl_file_type ecl_file_open( String filename, int flags);
+ public static native ecl_file_type ecl_file_fast_open( @Cast("const char*") BytePointer filename, @Cast("const char*") BytePointer index_filename, int flags);
+ public static native ecl_file_type ecl_file_fast_open( String filename, String index_filename, int flags);
+ public static native @Cast("bool") boolean ecl_file_write_index( @Const ecl_file_type ecl_file, @Cast("const char*") BytePointer index_filename);
+ public static native @Cast("bool") boolean ecl_file_write_index( @Const ecl_file_type ecl_file, String index_filename);
+ public static native @Cast("bool") boolean ecl_file_index_valid(@Cast("const char*") BytePointer file_name, @Cast("const char*") BytePointer index_file_name);
+ public static native @Cast("bool") boolean ecl_file_index_valid(String file_name, String index_file_name);
+ public static native void ecl_file_close( ecl_file_type ecl_file );
+ public static native void ecl_file_fortio_detach( ecl_file_type ecl_file );
+ public static native void ecl_file_free__(Pointer arg);
+ public static native ecl_kw_type ecl_file_icopy_named_kw( @Const ecl_file_type ecl_file, @Cast("const char*") BytePointer kw, int ith);
+ public static native ecl_kw_type ecl_file_icopy_named_kw( @Const ecl_file_type ecl_file, String kw, int ith);
+ public static native ecl_kw_type ecl_file_icopy_kw( @Const ecl_file_type ecl_file, int index);
+ public static native @Cast("bool") boolean ecl_file_has_kw( @Const ecl_file_type ecl_file, @Cast("const char*") BytePointer kw);
+ public static native @Cast("bool") boolean ecl_file_has_kw( @Const ecl_file_type ecl_file, String kw);
+ public static native int ecl_file_get_num_named_kw(@Const ecl_file_type ecl_file, @Cast("const char*") BytePointer kw);
+ public static native int ecl_file_get_num_named_kw(@Const ecl_file_type ecl_file, String kw);
+ public static native int ecl_file_get_size( @Const ecl_file_type ecl_file );
+ public static native int ecl_file_get_num_distinct_kw(@Const ecl_file_type ecl_file);
+ public static native @Cast("const char*") BytePointer ecl_file_iget_distinct_kw(@Const ecl_file_type ecl_file, int index);
+ public static native @Cast("const char*") BytePointer ecl_file_get_src_file( @Const ecl_file_type ecl_file );
+ public static native int ecl_file_iget_occurence( @Const ecl_file_type ecl_file, int index);
+ public static native @Cast("ecl_version_enum") int ecl_file_get_ecl_version( @Const ecl_file_type file );
+ public static native void ecl_file_fwrite_fortio(@Const ecl_file_type ec_file, fortio_type fortio, int offset);
+ public static native void ecl_file_fwrite(@Const ecl_file_type ecl_file, @Cast("const char*") BytePointer arg1, @Cast("bool") boolean fmt_file );
+ public static native void ecl_file_fwrite(@Const ecl_file_type ecl_file, String arg1, @Cast("bool") boolean fmt_file );
+
+ public static native void ecl_file_replace_kw( ecl_file_type ecl_file, ecl_kw_type old_kw, ecl_kw_type new_kw, @Cast("bool") boolean insert_copy);
+ public static native int ecl_file_get_phases( @Const ecl_file_type init_file );
+ public static native void ecl_file_fprintf_kw_list( @Const ecl_file_type ecl_file, @Cast("FILE*") Pointer stream );
+
+ public static native @Cast("bool") boolean ecl_file_writable( @Const ecl_file_type ecl_file );
+ public static native int ecl_file_get_flags( @Const ecl_file_type ecl_file );
+ public static native void ecl_file_set_flags( ecl_file_type ecl_file, int new_flags );
+ public static native @Cast("bool") boolean ecl_file_flags_set( @Const ecl_file_type ecl_file, int flags);
+
+
+
+ public static native ecl_file_kw_type ecl_file_iget_file_kw( @Const ecl_file_type file, int global_index);
+ public static native ecl_file_kw_type ecl_file_iget_named_file_kw( @Const ecl_file_type file, @Cast("const char*") BytePointer kw, int ith);
+ public static native ecl_file_kw_type ecl_file_iget_named_file_kw( @Const ecl_file_type file, String kw, int ith);
+ public static native ecl_kw_type ecl_file_iget_kw( @Const ecl_file_type file, int global_index);
+ public static native @ByVal ecl_data_type ecl_file_iget_data_type( @Const ecl_file_type file, int global_index);
+ public static native int ecl_file_iget_size( @Const ecl_file_type file, int global_index);
+ public static native @Cast("const char*") BytePointer ecl_file_iget_header( @Const ecl_file_type file, int global_index);
+ public static native ecl_kw_type ecl_file_iget_named_kw( @Const ecl_file_type file, @Cast("const char*") BytePointer kw, int ith);
+ public static native ecl_kw_type ecl_file_iget_named_kw( @Const ecl_file_type file, String kw, int ith);
+ public static native @ByVal ecl_data_type ecl_file_iget_named_data_type( @Const ecl_file_type file, @Cast("const char*") BytePointer kw, int ith);
+ public static native @ByVal ecl_data_type ecl_file_iget_named_data_type( @Const ecl_file_type file, String kw, int ith);
+ public static native int ecl_file_iget_named_size( @Const ecl_file_type file, @Cast("const char*") BytePointer kw, int ith);
+ public static native int ecl_file_iget_named_size( @Const ecl_file_type file, String kw, int ith);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") BytePointer buffer);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, String kw, int index, @Const int_vector_type index_map, @Cast("char*") ByteBuffer buffer);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") byte[] buffer);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, String kw, int index, @Const int_vector_type index_map, @Cast("char*") BytePointer buffer);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, @Cast("const char*") BytePointer kw, int index, @Const int_vector_type index_map, @Cast("char*") ByteBuffer buffer);
+ public static native void ecl_file_indexed_read(@Const ecl_file_type file, String kw, int index, @Const int_vector_type index_map, @Cast("char*") byte[] buffer);
+
+ public static native ecl_file_view_type ecl_file_get_global_blockview( ecl_file_type ecl_file, @Cast("const char*") BytePointer kw, int occurence);
+ public static native ecl_file_view_type ecl_file_get_global_blockview( ecl_file_type ecl_file, String kw, int occurence);
+ public static native ecl_file_view_type ecl_file_alloc_global_blockview( ecl_file_type ecl_file, @Cast("const char*") BytePointer kw, int occurence);
+ public static native ecl_file_view_type ecl_file_alloc_global_blockview( ecl_file_type ecl_file, String kw, int occurence);
+ public static native ecl_file_view_type ecl_file_get_global_view( ecl_file_type ecl_file );
+ public static native ecl_file_view_type ecl_file_get_active_view( ecl_file_type ecl_file );
+ //bool ecl_file_writable( const ecl_file_type * ecl_file );
+ public static native @Cast("bool") boolean ecl_file_save_kw( @Const ecl_file_type ecl_file, @Const ecl_kw_type ecl_kw);
+ public static native @Cast("bool") boolean ecl_file_has_kw_ptr( @Const ecl_file_type ecl_file, @Const ecl_kw_type ecl_kw);
+
+/*****************************************************************/
+/* R E S T A R T F I L E S */
+
+ public static native double ecl_file_iget_restart_sim_days( @Const ecl_file_type restart_file, int index );
+ public static native @ByVal @Cast("time_t*") Pointer ecl_file_iget_restart_sim_date( @Const ecl_file_type restart_file, int occurence );
+ public static native int ecl_file_get_restart_index( @Const ecl_file_type restart_file, @ByVal @Cast("time_t*") Pointer sim_time);
+ public static native @Cast("bool") boolean ecl_file_has_report_step( @Const ecl_file_type ecl_file, int report_step);
+ public static native @Cast("bool") boolean ecl_file_has_sim_time( @Const ecl_file_type ecl_file, @ByVal @Cast("time_t*") Pointer sim_time);
+
+
+ public static native void ecl_file_close_fortio_stream(ecl_file_type ecl_file);
+
+ public static native ecl_file_view_type ecl_file_get_restart_view( ecl_file_type ecl_file, int input_index, int report_step, @ByVal @Cast("time_t*") Pointer sim_time, double sim_days);
+ public static native ecl_file_view_type ecl_file_get_summary_view( ecl_file_type ecl_file, int report_step );
+
+/*****************************************************************/
+/* SUMMARY FILES */
+
+ public static native @Cast("bool") boolean ecl_file_is_instance( @Const Pointer __arg );
+
+ //Deprecated:
+
+ public static native void ecl_file_push_block( ecl_file_type ecl_file );
+ public static native void ecl_file_pop_block( ecl_file_type ecl_file );
+ public static native @Cast("bool") boolean ecl_file_subselect_block( ecl_file_type ecl_file, @Cast("const char*") BytePointer kw, int occurence);
+ public static native @Cast("bool") boolean ecl_file_subselect_block( ecl_file_type ecl_file, String kw, int occurence);
+ public static native @Cast("bool") boolean ecl_file_select_block( ecl_file_type ecl_file, @Cast("const char*") BytePointer kw, int occurence);
+ public static native @Cast("bool") boolean ecl_file_select_block( ecl_file_type ecl_file, String kw, int occurence);
+
+ public static native @Cast("bool") boolean ecl_file_select_rstblock_sim_time( ecl_file_type ecl_file, @ByVal @Cast("time_t*") Pointer sim_time);
+ public static native @Cast("bool") boolean ecl_file_select_rstblock_report_step( ecl_file_type ecl_file, int report_step);
+ public static native @Cast("bool") boolean ecl_file_iselect_rstblock( ecl_file_type ecl_file, int seqnum_index );
+ public static native ecl_file_type ecl_file_open_rstblock_report_step( @Cast("const char*") BytePointer filename, int report_step, int flags);
+ public static native ecl_file_type ecl_file_open_rstblock_report_step( String filename, int report_step, int flags);
+ public static native ecl_file_type ecl_file_open_rstblock_sim_time( @Cast("const char*") BytePointer filename, @ByVal @Cast("time_t*") Pointer sim_time, int flags);
+ public static native ecl_file_type ecl_file_open_rstblock_sim_time( String filename, @ByVal @Cast("time_t*") Pointer sim_time, int flags);
+ public static native ecl_file_type ecl_file_iopen_rstblock( @Cast("const char*") BytePointer filename, int seqnum_index, int flags);
+ public static native ecl_file_type ecl_file_iopen_rstblock( String filename, int seqnum_index, int flags);
+
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/ecl/ecl_rsthead.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'ecl_RSTHEAD.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at
+ for more details.
+*/
+
+// #ifndef ERT_ECL_RSTHEAD_H
+// #define ERT_ECL_RSTHEAD_H
+
+// #ifdef __cplusplus
+// #endif
+
+// #include
+
+// #include
+// #include
+// #include
+// Targeting ../ecl_rsthead_type.java
+
+
+
+
+
+ public static native void ecl_rsthead_free( ecl_rsthead_type rsthead );
+ public static native ecl_rsthead_type ecl_rsthead_alloc_from_kw( int report_step, @Const ecl_kw_type intehead_kw, @Const ecl_kw_type doubhead_kw, @Const ecl_kw_type logihead_kw );
+ public static native ecl_rsthead_type ecl_rsthead_alloc( @Const ecl_file_view_type rst_file, int report_step);
+ public static native ecl_rsthead_type ecl_rsthead_alloc_empty();
+ public static native @ByVal @Cast("time_t*") Pointer ecl_rsthead_date( @Const ecl_kw_type intehead_kw );
+ public static native void ecl_rsthead_fprintf( @Const ecl_rsthead_type header, @Cast("FILE*") Pointer stream);
+ public static native void ecl_rsthead_fprintf_struct( @Const ecl_rsthead_type header, @Cast("FILE*") Pointer stream);
+ public static native @Cast("bool") boolean ecl_rsthead_equal( @Const ecl_rsthead_type header1, @Const ecl_rsthead_type header2);
+ public static native double ecl_rsthead_get_sim_days( @Const ecl_rsthead_type header );
+ public static native int ecl_rsthead_get_report_step( @Const ecl_rsthead_type header );
+ public static native @ByVal @Cast("time_t*") Pointer ecl_rsthead_get_sim_time( @Const ecl_rsthead_type header );
+ public static native int ecl_rsthead_get_nxconz( @Const ecl_rsthead_type rsthead );
+ public static native int ecl_rsthead_get_ncwmax( @Const ecl_rsthead_type rsthead );
+
+// #ifdef __cplusplus
+// #endif
+// #endif
+
+
+// Parsed from ert/ecl_well/well_conn.hpp
+
+/*
+ Copyright (C) 2011 Equinor ASA, Norway.
+
+ The file 'well_conn.h' is part of ERT - Ensemble based Reservoir Tool.
+
+ ERT is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ERT is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU General Public License at