Ice Sheet System Model  4.18
Code documentation
DoubleParam.cpp
Go to the documentation of this file.
1 
5 #ifdef HAVE_CONFIG_H
6  #include <config.h>
7 #else
8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9 #endif
10 
11 #include "../classes.h"
12 #include "shared/shared.h"
13 
14 /*DoubleParam constructors and destructor*/
16  return;
17 }
18 /*}}}*/
19 DoubleParam::DoubleParam(int in_enum_type,IssmDouble in_value){/*{{{*/
20 
21  enum_type=in_enum_type;
22  value=in_value;
23 }
24 /*}}}*/
26  return;
27 }
28 /*}}}*/
29 
30 /*Object virtual functions definitions:*/
32 
33  return new DoubleParam(this->enum_type,this->value);
34 
35 }
36 /*}}}*/
37 void DoubleParam::DeepEcho(void){/*{{{*/
38 
39  _printf_(setw(22)<<" DoubleParam "<<setw(35)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
40 }
41 /*}}}*/
42 void DoubleParam::Echo(void){/*{{{*/
43  this->DeepEcho();
44 }
45 /*}}}*/
46 int DoubleParam::Id(void){ return -1; }/*{{{*/
47 /*}}}*/
48 void DoubleParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
49 
51 
54 
55 }
56 /*}}}*/
57 int DoubleParam::ObjectEnum(void){/*{{{*/
58 
59  return DoubleParamEnum;
60 
61 }
62 /*}}}*/
63 
64 /*DoubleParam virtual functions definitions: */
65 void DoubleParam::GetParameterValue(int* pinteger){/*{{{*/
66  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer");
67 }
68 /*}}}*/
69 void DoubleParam::GetParameterValue(bool* pbool){/*{{{*/
70  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an bool");
71 }
72 /*}}}*/
73 void DoubleParam::GetParameterValue(int** pintarray,int* pM){/*{{{*/
74  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");
75 }
76 /*}}}*/
77 void DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){/*{{{*/
78  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");
79 }
80 /*}}}*/
81 void DoubleParam::GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){/*{{{*/
82  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of IssmDouble");
83 }
84 /*}}}*/
85 void DoubleParam::GetParameterValue(IssmDouble** pIssmDoublearray,int* pM,int* pN){/*{{{*/
86  _error_("Double param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of IssmDouble");
87 }
88 /*}}}*/
IssmDouble
double IssmDouble
Definition: types.h:37
Param
Definition: Param.h:21
_printf_
#define _printf_(StreamArgs)
Definition: Print.h:22
MARSHALLING_ENUM
#define MARSHALLING_ENUM(EN)
Definition: Marshalling.h:14
DoubleParam::copy
Param * copy()
Definition: DoubleParam.cpp:31
DoubleParam::DoubleParam
DoubleParam()
Definition: DoubleParam.cpp:15
EnumToStringx
const char * EnumToStringx(int enum_in)
Definition: EnumToStringx.cpp:15
DoubleParam::ObjectEnum
int ObjectEnum()
Definition: DoubleParam.cpp:57
DoubleParam::Id
int Id()
Definition: DoubleParam.cpp:46
MARSHALLING
#define MARSHALLING(FIELD)
Definition: Marshalling.h:29
DoubleParamEnum
@ DoubleParamEnum
Definition: EnumDefinitions.h:1047
DoubleParam::Echo
void Echo()
Definition: DoubleParam.cpp:42
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49
DoubleParam::enum_type
int enum_type
Definition: DoubleParam.h:24
DoubleParam::value
IssmDouble value
Definition: DoubleParam.h:25
DoubleParam::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition: DoubleParam.cpp:48
DoubleParam::~DoubleParam
~DoubleParam()
Definition: DoubleParam.cpp:25
shared.h
DoubleParam::GetParameterValue
void GetParameterValue(bool *pbool)
Definition: DoubleParam.cpp:69
DoubleParam::DeepEcho
void DeepEcho()
Definition: DoubleParam.cpp:37