source: issm/trunk/src/c/classes/Params/FileParam.cpp@ 21341

Last change on this file since 21341 was 21341, checked in by Mathieu Morlighem, 8 years ago

merged trunk-jpl and trunk for revision 21337

File size: 1.3 KB
Line 
1/*!\file FileParam.c
2 * \brief: implementation of the FileParam object
3 */
4
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*/
18FileParam::FileParam(){/*{{{*/
19 return;
20}
21/*}}}*/
22FileParam::FileParam(int in_enum_type,FILE* in_value){/*{{{*/
23
24 enum_type=in_enum_type;
25 value=in_value;
26}
27/*}}}*/
28FileParam::~FileParam(){/*{{{*/
29 return;
30}
31/*}}}*/
32
33/*Object virtual functions definitions:*/
34Param* FileParam::copy() {/*{{{*/
35
36 return new FileParam(this->enum_type,this->value);
37
38}
39/*}}}*/
40void FileParam::DeepEcho(void){/*{{{*/
41
42 _printf_(setw(22)<<" FileParam "<<setw(35)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
43}
44/*}}}*/
45void FileParam::Echo(void){/*{{{*/
46 this->DeepEcho();
47}
48/*}}}*/
49int FileParam::Id(void){ return -1; }/*{{{*/
50/*}}}*/
51void FileParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
52
53 MARSHALLING_ENUM(FileParamEnum);
54 MARSHALLING(enum_type);
55 MARSHALLING(value);
56
57 if(marshall_direction==MARSHALLING_BACKWARD) value=NULL; //meaningless file pointer!
58
59}
60/*}}}*/
61int FileParam::ObjectEnum(void){/*{{{*/
62
63 return FileParamEnum;
64
65}
66/*}}}*/
Note: See TracBrowser for help on using the repository browser.