source: issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.h@ 11843

Last change on this file since 11843 was 11843, checked in by Eric.Larour, 13 years ago

Made matlab and python layers more independent in the ISSM code

File size: 1.4 KB
Line 
1/*! \file BoolExternalResult.h
2 * \brief: header file for triavertexinput object
3 */
4
5
6#ifndef _BOOLEXTERNALRESULT_H_
7#define _BOOLEXTERNALRESULT_H_
8
9/*Headers:*/
10/*{{{1*/
11
12#ifdef HAVE_CONFIG_H
13 #include <config.h>
14#else
15#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
16#endif
17
18#ifdef _HAVE_MATLAB_
19#include <mex.h>
20#endif
21
22
23#include "./ExternalResult.h"
24#include "../../include/include.h"
25#include "../../shared/shared.h"
26#include "../../include/include.h"
27#include "../../include/include.h"
28/*}}}*/
29
30class BoolExternalResult: public ExternalResult{
31
32 public:
33 int id;
34 int enum_type;
35 bool value;
36 int step;
37 double time;
38
39 /*BoolExternalResult constructors, destructors: {{{1*/
40 BoolExternalResult();
41 BoolExternalResult(int id, int enum_type,bool value,int step,double time);
42 ~BoolExternalResult();
43 /*}}}*/
44 /*Object virtual functions definitions:{{{1 */
45 void Echo();
46 void DeepEcho();
47 int Id();
48 int MyRank();
49 #ifdef _SERIAL_
50 void Marshall(char** pmarshalled_dataset);
51 int MarshallSize();
52 void Demarshall(char** pmarshalled_dataset);
53 #endif
54 int ObjectEnum();
55 Object* copy();
56 /*}}}*/
57 /*ExternalResult management: {{{1*/
58 int InstanceEnum(){return enum_type;}
59 void WriteData(FILE* fid,bool io_gather);
60 void GetResultName(char**);
61 #ifdef _HAVE_MATLAB_
62 void SetMatlabField(mxArray* dataref);
63 #endif
64 int GetStep(void);
65 /*}}}*/
66};
67#endif /* _BOOLEXTERNALRESULT_H */
Note: See TracBrowser for help on using the repository browser.