Ice Sheet System Model  4.18
Code documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FileParam.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 /*FileParam constructors and destructor*/
19  return;
20 }
21 /*}}}*/
22 FileParam::FileParam(int in_enum_type,FILE* 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 FileParam(this->enum_type,this->value);
37 
38 }
39 /*}}}*/
40 void FileParam::DeepEcho(void){/*{{{*/
41 
42  _printf_(setw(22)<<" FileParam "<<setw(35)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
43 }
44 /*}}}*/
45 void FileParam::Echo(void){/*{{{*/
46  this->DeepEcho();
47 }
48 /*}}}*/
49 int FileParam::Id(void){ return -1; }/*{{{*/
50 /*}}}*/
51 void FileParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
52 
56 
57  if(marshall_direction==MARSHALLING_BACKWARD) value=NULL; //meaningless file pointer!
58 
59 }
60 /*}}}*/
61 int FileParam::ObjectEnum(void){/*{{{*/
62 
63  return FileParamEnum;
64 
65 }
66 /*}}}*/
FileParam::ObjectEnum
int ObjectEnum()
Definition: FileParam.cpp:61
FileParam::FileParam
FileParam()
Definition: FileParam.cpp:18
Param
Definition: Param.h:21
_printf_
#define _printf_(StreamArgs)
Definition: Print.h:22
MARSHALLING_ENUM
#define MARSHALLING_ENUM(EN)
Definition: Marshalling.h:14
FileParam::Id
int Id()
Definition: FileParam.cpp:49
FileParam::value
FILE * value
Definition: FileParam.h:24
EnumToStringx
const char * EnumToStringx(int enum_in)
Definition: EnumToStringx.cpp:15
MARSHALLING
#define MARSHALLING(FIELD)
Definition: Marshalling.h:29
FileParam::Marshall
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
Definition: FileParam.cpp:51
FileParam::Echo
void Echo()
Definition: FileParam.cpp:45
MARSHALLING_BACKWARD
@ MARSHALLING_BACKWARD
Definition: Marshalling.h:10
FileParam::DeepEcho
void DeepEcho()
Definition: FileParam.cpp:40
FileParam::enum_type
int enum_type
Definition: FileParam.h:23
FileParamEnum
@ FileParamEnum
Definition: EnumDefinitions.h:1065
FileParam::~FileParam
~FileParam()
Definition: FileParam.cpp:28
shared.h
FileParam::copy
Param * copy()
Definition: FileParam.cpp:34