IMCtermite/cyt/raw_eater.pxd
2020-08-10 12:03:35 +02:00

30 lines
859 B
Cython

# cython: language_level = 3
# distutils: language = c++
# use some C++ STL libraries
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp cimport bool
#cdef extern from "raweat.hpp":
# pass
# these method names have to match the C definitions of the methods!!
cdef extern from "../lib/raweat.hpp":
cdef cppclass raw_eater:
raw_eater(string) except +
# get validity of data format
bool get_valid()
# get channel name and unit
string get_name()
string get_unit()
# get time step and time unit
double get_dt()
string get_temp_unit()
# get data array of time and measured quantity's channel
vector[double] get_time()
vector[double] get_data()
# dump all data to .csv
void write_table(const char*,char delimiter)