Added column class method to get the unique references (name and
version) of a column
This commit is contained in:
@ -23,6 +23,7 @@ cdef class OBIDMS_column:
|
|||||||
cpdef index_t get_nb_lines_used(self)
|
cpdef index_t get_nb_lines_used(self)
|
||||||
cpdef str get_creation_date(self)
|
cpdef str get_creation_date(self)
|
||||||
cpdef str get_comments(self)
|
cpdef str get_comments(self)
|
||||||
|
cpdef dict get_references(self)
|
||||||
cpdef close(self)
|
cpdef close(self)
|
||||||
@staticmethod
|
@staticmethod
|
||||||
cdef object get_subclass_type(OBIDMS_column_p column_p)
|
cdef object get_subclass_type(OBIDMS_column_p column_p)
|
||||||
|
@ -141,6 +141,12 @@ cdef class OBIDMS_column :
|
|||||||
cpdef str get_comments(self):
|
cpdef str get_comments(self):
|
||||||
return bytes2str((self.pointer)[0].header.comments)
|
return bytes2str((self.pointer)[0].header.comments)
|
||||||
|
|
||||||
|
cpdef dict get_references(self): # Make properties
|
||||||
|
refs = {}
|
||||||
|
refs['name'] = self.column_name
|
||||||
|
refs['version'] = (self.pointer)[0].header.version
|
||||||
|
return refs
|
||||||
|
|
||||||
def __str__(self) :
|
def __str__(self) :
|
||||||
cdef str to_print
|
cdef str to_print
|
||||||
to_print = ''
|
to_print = ''
|
||||||
|
Reference in New Issue
Block a user