Ice Sheet System Model  4.18
Code documentation
BoolParam.cpp
Go to the documentation of this file.
1 
5 /*header files: */
6 /*{{{*/
7 #ifdef HAVE_CONFIG_H
8  #include <config.h>
9 #else
10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11 #endif
12 
13 #include "../classes.h"
14 #include "shared/shared.h"
15 /*}}}*/
16 
17 /*BoolParam constructors and destructor*/
19  return;
20 }
21 /*}}}*/
22 BoolParam::BoolParam(int in_enum_type,bool in_value){/*{{{*/
23 
24  enum_type=in_enum_type;
25  value=in_value;
26 }
27 /*}}}*/
29  return;
30 }
31 /*}}}*/
32 
33 /*Object virtual functions definitions:*/
35 
36  return new BoolParam(this->enum_type,this->value);
37 
38 }
39 /*}}}*/
40 void BoolParam::DeepEcho(void){/*{{{*/
41  _printf_(setw(22)<<" BoolParam "<<setw(35)<<left<<EnumToStringx(this->enum_type)<<" "<<(value?"true":"false")<<"\n");
42 }
43 /*}}}*/
44 void BoolParam::Echo(void){/*{{{*/
45  this->DeepEcho();
46 }
47 /*}}}*/
48 int BoolParam::Id(void){ return -1; }/*{{{*/
49 /*}}}*/
50 void BoolParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
51 
53 
56 
57 }
58 /*}}}*/
59 int BoolParam::ObjectEnum(void){/*{{{*/
60 
61  return BoolParamEnum;
62 
63 }
64 /*}}}*/
Param
Definition: Param.h:21
BoolParam::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition: BoolParam.cpp:50
_printf_
#define _printf_(StreamArgs)
Definition: Print.h:22
BoolParam::Id
int Id()
Definition: BoolParam.cpp:48
MARSHALLING_ENUM
#define MARSHALLING_ENUM(EN)
Definition: Marshalling.h:14
BoolParam::DeepEcho
void DeepEcho()
Definition: BoolParam.cpp:40
BoolParam::BoolParam
BoolParam()
Definition: BoolParam.cpp:18
BoolParam::Echo
void Echo()
Definition: BoolParam.cpp:44
EnumToStringx
const char * EnumToStringx(int enum_in)
Definition: EnumToStringx.cpp:15
BoolParam::value
bool value
Definition: BoolParam.h:25
BoolParam::copy
Param * copy()
Definition: BoolParam.cpp:34
MARSHALLING
#define MARSHALLING(FIELD)
Definition: Marshalling.h:29
BoolParam::enum_type
int enum_type
Definition: BoolParam.h:24
BoolParamEnum
@ BoolParamEnum
Definition: EnumDefinitions.h:998
BoolParam::~BoolParam
~BoolParam()
Definition: BoolParam.cpp:28
BoolParam::ObjectEnum
int ObjectEnum()
Definition: BoolParam.cpp:59
shared.h