Added column class method to get the unique references (name and

version) of a column
This commit is contained in:
Celine Mercier
2016-09-21 17:08:44 +02:00
parent 9ac522fde1
commit dd55aef3e5
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ cdef class OBIDMS_column:
cpdef index_t get_nb_lines_used(self)
cpdef str get_creation_date(self)
cpdef str get_comments(self)
cpdef dict get_references(self)
cpdef close(self)
@staticmethod
cdef object get_subclass_type(OBIDMS_column_p column_p)

View File

@ -141,6 +141,12 @@ cdef class OBIDMS_column :
cpdef str get_comments(self):
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) :
cdef str to_print
to_print = ''