Changeset 12494 for issm/trunk-jpl/src/c/objects/Params/BoolParam.h
- Timestamp:
- 06/21/12 10:10:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Params/BoolParam.h
r12482 r12494 43 43 int InstanceEnum(){return enum_type;} 44 44 void GetParameterValue(bool* pbool){*pbool=value;} 45 void GetParameterValue(int* pinteger){_error _("Bool param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}46 void GetParameterValue(int** pintarray,int* pM){_error _("Bool param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));}47 void GetParameterValue(int** pintarray,int* pM,int* pN){_error _("Bool param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));}48 void GetParameterValue(IssmDouble* pIssmDouble){_error _("Bool param of enum %i (%s) cannot return a IssmDouble",enum_type,EnumToStringx(enum_type));}49 void GetParameterValue(char** pstring){_error _("Bool param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}50 void GetParameterValue(char*** pstringarray,int* pM){_error _("Bool param of enum %i (%s) cannot return a string array",enum_type,EnumToStringx(enum_type));}51 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){_error _("Bool param of enum %i (%s) cannot return a IssmDouble array",enum_type,EnumToStringx(enum_type));}52 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM, int* pN){_error _("Bool param of enum %i (%s) cannot return a IssmDouble array",enum_type,EnumToStringx(enum_type));}53 void GetParameterValue(IssmDouble*** parray, int* pM,int** pmdims, int** pndims){_error _("Bool param of enum %i (%s) cannot return a matrix array",enum_type,EnumToStringx(enum_type));}54 void GetParameterValue(Vector** pvec){_error _("Bool param of enum %i (%s) cannot return a Vec",enum_type,EnumToStringx(enum_type));}55 void GetParameterValue(Matrix** pmat){_error _("Bool param of enum %i (%s) cannot return a Mat",enum_type,EnumToStringx(enum_type));}56 void GetParameterValue(FILE** pfid){_error _("Bool param of enum %i (%s) cannot return a FILE",enum_type,EnumToStringx(enum_type));}45 void GetParameterValue(int* pinteger){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer");} 46 void GetParameterValue(int** pintarray,int* pM){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");} 47 void GetParameterValue(int** pintarray,int* pM,int* pN){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");} 48 void GetParameterValue(IssmDouble* pIssmDouble){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble");} 49 void GetParameterValue(char** pstring){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string");} 50 void GetParameterValue(char*** pstringarray,int* pM){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string array");} 51 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble array");} 52 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM, int* pN){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble array");} 53 void GetParameterValue(IssmDouble*** parray, int* pM,int** pmdims, int** pndims){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a matrix array");} 54 void GetParameterValue(Vector** pvec){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a Vec");} 55 void GetParameterValue(Matrix** pmat){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a Mat");} 56 void GetParameterValue(FILE** pfid){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a FILE");} 57 57 58 58 void SetValue(bool boolean){this->value=boolean;} 59 59 void SetValue(int integer){this->value=(bool)integer;} 60 60 void SetValue(IssmPDouble scalar){this->value=(bool)scalar;} 61 void SetValue(char* string){_error _("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}62 void SetValue(char** stringarray,int M){_error _("Bool param of enum %i (%s) cannot hold a string array",enum_type,EnumToStringx(enum_type));}63 void SetValue(IssmDouble* IssmDoublearray,int M){_error _("Bool param of enum %i (%s) cannot hold a IssmDouble array",enum_type,EnumToStringx(enum_type));}64 void SetValue(IssmDouble* pIssmDoublearray,int M,int N){_error _("Bool param of enum %i (%s) cannot hold a IssmDouble array",enum_type,EnumToStringx(enum_type));}65 void SetValue(int* intarray,int M){_error _("Bool param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));}66 void SetValue(int* pintarray,int M,int N){_error _("Bool param of enum %i (%s) cannot hold a int array",enum_type,EnumToStringx(enum_type));}67 void SetValue(Vector* vec){_error _("Bool param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}68 void SetValue(Matrix* mat){_error _("Bool param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));}69 void SetValue(FILE* fid){_error _("Bool param of enum %i (%s) cannot hold a FILE",enum_type,EnumToStringx(enum_type));}70 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error _("Bool param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToStringx(enum_type));}61 void SetValue(char* string){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string");} 62 void SetValue(char** stringarray,int M){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string array");} 63 void SetValue(IssmDouble* IssmDoublearray,int M){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a IssmDouble array");} 64 void SetValue(IssmDouble* pIssmDoublearray,int M,int N){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a IssmDouble array");} 65 void SetValue(int* intarray,int M){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int array");} 66 void SetValue(int* pintarray,int M,int N){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int array");} 67 void SetValue(Vector* vec){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a Vec");} 68 void SetValue(Matrix* mat){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a Mat");} 69 void SetValue(FILE* fid){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a FILE");} 70 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error2_("Bool param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");} 71 71 void UnitConversion(int direction_enum); 72 72
Note:
See TracChangeset
for help on using the changeset viewer.