00001 /*-------------------------------------------------------------------------------------------*/ 00002 /* COPYRIGHT INRIA 2006 */ 00003 /* File : StringMatrix.h */ 00004 /* Authors : Jean-Baptiste Silvy 2006-xxxx */ 00005 /* Desc. : Allocation, deletion and modifications of matrices of strings. */ 00006 /* The matrix is stored by colmuns like in Scilab */ 00007 /*-------------------------------------------------------------------------------------------*/ 00008 00009 #ifndef _SCI_STRING_MATRIX_H_ 00010 #define _SCI_STRING_MATRIX_H_ 00011 00012 #include "sciMatrix.h" 00013 00014 /*-------------------------------------------------------------------------------------------*/ 00019 typedef sciMatrix StringMatrix ; 00020 00021 /*-------------------------------------------------------------------------------------------*/ 00022 /* Constructors */ 00027 StringMatrix * newFullStringMatrix( char ** textMat, int nbRow, int nbCol ) ; 00028 00032 StringMatrix * copyStringMatrix( const StringMatrix * copyMat ) ; 00033 00034 /*-------------------------------------------------------------------------------------------*/ 00035 /* accessors */ 00036 char * getStrMatElement( const StringMatrix * mat, int row, int col ) ; 00037 00041 char ** getStrMatData( const StringMatrix * mat ) ; 00042 00046 void copyStrMatElement( StringMatrix * mat, int row, int col, const char * copyStr ) ; 00047 00048 /*-------------------------------------------------------------------------------------------*/ 00049 00050 #endif /* _SCI_STRING_MATRIX_H_ */
1.5.1