Skip to content

Commit

Permalink
import all from core
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Mar 19, 2024
1 parent b90452a commit bc76935
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions src/rds2py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
finally:
del version, PackageNotFoundError

from .core import *

from .generics import read_rds, save_rds
from .read_atomic_vector import parse_boolean_vector, parse_double_vector, parse_integer_vector, parse_string_vector
30 changes: 15 additions & 15 deletions src/rds2py/lib/parser.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ from libcpp.vector cimport vector
from libcpp.utility cimport pair

cdef extern from "rds2cpp_wrapper.cpp":
uintptr_t py_parser_rds_file(string_c file) nogil except +
uintptr_t py_parser_extract_robject(int ptr) nogil except +
uintptr_t py_parser_rds_file(string_c file) except + nogil
uintptr_t py_parser_extract_robject(int ptr) except + nogil

void py_read_parsed_ptr(uintptr_t ptr) nogil except +
void py_read_parsed_ptr(uintptr_t ptr) except + nogil

string_c py_robject_extract_type(uintptr_t ptr) nogil except +
int py_robject_extract_size(uintptr_t ptr) nogil except +
string_c py_robject_extract_type(uintptr_t ptr) except + nogil
int py_robject_extract_size(uintptr_t ptr) except + nogil

uintptr_t parse_robject_int_vector(uintptr_t ptr) nogil except +
vector[string_c] parse_robject_string_vector(uintptr_t ptr) nogil except +
vector[string_c] parse_robject_attribute_names(uintptr_t ptr) nogil except +
uintptr_t parse_robject_int_vector(uintptr_t ptr) except + nogil
vector[string_c] parse_robject_string_vector(uintptr_t ptr) except + nogil
vector[string_c] parse_robject_attribute_names(uintptr_t ptr) except + nogil

int parse_robject_find_attribute(uintptr_t ptr, string_c name) nogil except +
uintptr_t parse_robject_load_attribute_by_index(uintptr_t ptr, int i) nogil except +
uintptr_t parse_robject_load_attribute_by_name(uintptr_t ptr, string_c name) nogil except +
uintptr_t parse_robject_load_vec_element(uintptr_t ptr, int i) except +
int parse_robject_find_attribute(uintptr_t ptr, string_c name) except + nogil
uintptr_t parse_robject_load_attribute_by_index(uintptr_t ptr, int i) except + nogil
uintptr_t parse_robject_load_attribute_by_name(uintptr_t ptr, string_c name) except + nogil
uintptr_t parse_robject_load_vec_element(uintptr_t ptr, int i)except + nogil

string_c parse_robject_class_name(uintptr_t ptr) nogil except +
string_c parse_robject_package_name(uintptr_t ptr) nogil except +
string_c parse_robject_class_name(uintptr_t ptr) except + nogil
string_c parse_robject_package_name(uintptr_t ptr) except + nogil

pair[int, int] parse_robject_dimensions(uintptr_t ptr) nogil except +
pair[int, int] parse_robject_dimensions(uintptr_t ptr) except + nogil

0 comments on commit bc76935

Please sign in to comment.