Changeset 20827 for issm/trunk-jpl/src/c/classes/Params/DataSetParam.h
- Timestamp:
- 06/28/16 15:51:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Params/DataSetParam.h
r20690 r20827 32 32 /*}}}*/ 33 33 /*Object virtual functions definitions:{{{ */ 34 Param* copy(); 35 void DeepEcho(); 34 36 void Echo(); 35 void DeepEcho();36 37 int Id(); 38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); 37 39 int ObjectEnum(); 38 Param* copy();39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);40 40 /*}}}*/ 41 41 /*Param vritual function definitions: {{{*/ 42 int InstanceEnum(){return enum_type;}43 42 void GetParameterValue(bool* pbool){ _error_("Param "<< EnumToStringx(enum_type) << " cannot return a bool");} 44 43 void GetParameterValue(int* pinteger){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a IssmDouble");} … … 56 55 void GetParameterValue(Matrix<IssmDouble>** pmat){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a Mat");} 57 56 void GetParameterValue(DataSet** pdataset); 57 int InstanceEnum(){return enum_type;} 58 58 59 void SetEnum(int enum_in){this->enum_type = enum_in;}; 59 60 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a string");} 60 61 void SetValue(int integer){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a string");} … … 71 72 void SetValue(DataSet* dataset){_error_("DataSet param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a DataSet yet");} 72 73 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error_("DataSet param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");} 73 void SetEnum(int enum_in){this->enum_type = enum_in;};74 74 /*}}}*/ 75 75 };
Note:
See TracChangeset
for help on using the changeset viewer.