Changeset 20827 for issm/trunk-jpl/src/c/classes/Params/FileParam.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/FileParam.h
r20690 r20827 31 31 /*}}}*/ 32 32 /*Object virtual functions definitions:{{{ */ 33 Param* copy(); 34 void DeepEcho(); 33 35 void Echo(); 34 void DeepEcho();35 36 int Id(); 37 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); 36 38 int ObjectEnum(); 37 Param* copy();38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);39 39 /*}}}*/ 40 40 /*Param vritual function definitions: {{{*/ 41 int InstanceEnum(){return enum_type;}42 41 void GetParameterValue(bool* pbool){ _error_("Param "<< EnumToStringx(enum_type) << " cannot return a bool");} 43 42 void GetParameterValue(int* pinteger){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a IssmDouble");} … … 55 54 void GetParameterValue(FILE** pfid){*pfid=value;}; 56 55 void GetParameterValue(DataSet** pdataset){_error_("Param "<< EnumToStringx(enum_type) << " cannot return a DataSet");} 56 int InstanceEnum(){return enum_type;} 57 57 58 void SetEnum(int enum_in){this->enum_type = enum_in;}; 58 59 void SetValue(bool boolean){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a string");} 59 60 void SetValue(int integer){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a string");} … … 69 70 void SetValue(FILE* fid){_error_("File param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a FILE");} 70 71 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error_("File param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");} 71 void SetEnum(int enum_in){this->enum_type = enum_in;};72 72 /*}}}*/ 73 73 };
Note:
See TracChangeset
for help on using the changeset viewer.