00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _GET_PROPERTY_ASSIGNEMENT_VALUE_H_
00010 #define _GET_PROPERTY_ASSIGNEMENT_VALUE_H_
00011
00012 #include "machine.h"
00013
00014
00015
00020 BOOL isParameterHandle( int type ) ;
00021
00026 BOOL isParameterDoubleMatrix( int type ) ;
00027
00032 BOOL isParameterTlist( int type ) ;
00033
00038 BOOL isParameterStringMatrix( int type ) ;
00039
00043 double getDoubleFromStack( int stackPointer ) ;
00044
00048 double * getDoubleMatrixFromStack( int stackPointer ) ;
00049
00053 void copyDoubleVectorFromStack( int stackPointer, double dest[], int nbElement ) ;
00054
00059 void copyDoubleVectorToIntFromStack( int stackPointer, int dest[], int nbElement ) ;
00060
00064 double * createCopyDoubleVectorFromStack( int stackPointer, int nbElement ) ;
00065
00069 char * getStringFromStack( int stackPointer ) ;
00070
00074 char ** getStringMatrixFromStack( int stackPointer ) ;
00075
00079 char ** createCopyStringMatrixFromStack( int stackPointer, int nbElement ) ;
00080
00084 unsigned long getHandleFromStack( int stackPointer ) ;
00085
00091 BOOL isStringParamEqual( int stackPointer, const char * str ) ;
00092
00093
00094 typedef struct
00095 {
00096 int nbElement ;
00097 int curElement ;
00098 int paramNumber ;
00099 int stackPointer ;
00100 } AssignedList ;
00101
00106 int getStackListNbElement( int paramNum ) ;
00107
00114 AssignedList * createAssignedList( int paramNum, int nbElement ) ;
00115
00119 void destroyAssignedList( AssignedList * list ) ;
00120
00124 int getAssignedListNbElement( AssignedList * list ) ;
00125
00129 void rewindAssignedList( AssignedList * list ) ;
00130
00134 BOOL isListCurrentElementDoubleMatrix( AssignedList * list ) ;
00135
00139 BOOL isListCurrentElementStringMatrix( AssignedList * list ) ;
00140
00144 BOOL isListCurrentElementEmptyMatrix( AssignedList * list ) ;
00145
00154 double * getDoubleMatrixFromList( AssignedList * list, int rank, int * nbRow, int * nbCol ) ;
00155
00164 char ** getStringMatrixFromList( AssignedList * list, int rank, int * nbRow, int * nbCol ) ;
00165
00166
00173 double * getCurrentDoubleMatrixFromList( AssignedList * list, int * nbRow, int * nbCol ) ;
00174
00181 char ** getCurrentStringMatrixFromList( AssignedList * list, int * nbRow, int * nbCol ) ;
00182
00190 double * createCopyDoubleMatrixFromList( AssignedList * list, int * nbRow, int * nbCol ) ;
00191
00198 char ** createCopyStringMatrixFromList( AssignedList * list, int * nbRow, int * nbCol ) ;
00199
00200
00201 #endif