| 1 | /*! \file DoubleParam.h
|
|---|
| 2 | * \brief: header file for triavertexinput object
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | #ifndef _DOUBLEPARAM_H_
|
|---|
| 7 | #define _DOUBLEPARAM_H_
|
|---|
| 8 |
|
|---|
| 9 | /*Headers:*/
|
|---|
| 10 | /*{{{1*/
|
|---|
| 11 | #include "./Param.h"
|
|---|
| 12 | #include "../include/types.h"
|
|---|
| 13 | #include "../shared/shared.h"
|
|---|
| 14 | #include "../include/typedefs.h"
|
|---|
| 15 | #include "../include/macros.h"
|
|---|
| 16 | /*}}}*/
|
|---|
| 17 |
|
|---|
| 18 | class DoubleParam: public Param{
|
|---|
| 19 |
|
|---|
| 20 | private:
|
|---|
| 21 | /*just hold 3 values for 3 vertices: */
|
|---|
| 22 | int enum_type;
|
|---|
| 23 | IssmDouble value;
|
|---|
| 24 |
|
|---|
| 25 | public:
|
|---|
| 26 | /*constructors, destructors: {{{1*/
|
|---|
| 27 | DoubleParam();
|
|---|
| 28 | DoubleParam(int enum_type,IssmDouble value);
|
|---|
| 29 | ~DoubleParam();
|
|---|
| 30 | /*}}}*/
|
|---|
| 31 | /*Object methods: {{{1*/
|
|---|
| 32 | Object* copy();
|
|---|
| 33 | void DeepEcho();
|
|---|
| 34 | void Demarshall(char** pmarshalled_dataset);
|
|---|
| 35 | void Echo();
|
|---|
| 36 | int Enum();
|
|---|
| 37 | int Id();
|
|---|
| 38 | void Marshall(char** pmarshalled_dataset);
|
|---|
| 39 | int MarshallSize();
|
|---|
| 40 | int MyRank();
|
|---|
| 41 | /*}}}*/
|
|---|
| 42 | /*Param methods: {{{1*/
|
|---|
| 43 | int EnumType(){return enum_type;}
|
|---|
| 44 | void GetParameterValue(bool* pbool){ISSMERROR("Double param cannot return a bool");}
|
|---|
| 45 | void GetParameterValue(int* pinteger){ISSMERROR("Double param cannot return an integer");}
|
|---|
| 46 | void GetParameterValue(double* pdouble){*pdouble=value;}
|
|---|
| 47 | void GetParameterValue(char** pstring){ISSMERROR("Double param cannot return a string");}
|
|---|
| 48 | void GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Double param cannot return a string arrayl");}
|
|---|
| 49 | void GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Double param cannot return a double array");}
|
|---|
| 50 | void GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Double param cannot return a double array");}
|
|---|
| 51 | void GetParameterValue(Vec* pvec){ISSMERROR("Double param cannot return a Vec");}
|
|---|
| 52 | void GetParameterValue(Mat* pmat){ISSMERROR("Double param cannot return a Mat");}
|
|---|
| 53 | char* GetParameterName(void);
|
|---|
| 54 | void SetMatlabField(mxArray* dataref);
|
|---|
| 55 | /*}}}*/
|
|---|
| 56 | };
|
|---|
| 57 | #endif /* _DOUBLEPARAM_H */
|
|---|