source: issm/trunk/src/c/objects/Params/BoolParam.h@ 3703

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

Big commit

File size: 2.0 KB
Line 
1/*! \file BoolParam.h
2 * \brief: header file for triavertexinput object
3 */
4
5
6#ifndef _BOOLPARAM_H_
7#define _BOOLPARAM_H_
8
9/*Headers:*/
10/*{{{1*/
11#include "./Param.h"
12#include "../../include/types.h"
13#include "../../shared/shared.h"
14#include "../../include/typedefs.h"
15#include "../../include/macros.h"
16/*}}}*/
17
18class BoolParam: public Param{
19
20 private:
21 /*just hold 3 values for 3 vertices: */
22 int enum_type;
23 IssmBool value;
24
25 public:
26 /*constructors, destructors: {{{1*/
27 BoolParam();
28 BoolParam(int enum_type,IssmBool value);
29 ~BoolParam();
30 /*}}}*/
31 /*Object methods: {{{1*/
32 Object* copy();
33 void DeepEcho();
34 void Demarshall(char** pmarshalled_dataset);
35 void Echo();
36 int Enum();
37 int Id();
38 void Marshall(char** pmarshalled_dataset);
39 int MarshallSize();
40 int MyRank();
41 void UpdateInputsFromVector(double* vector, int name, int type){ISSMERROR("Not implemented yet!");}
42 void UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type){ISSMERROR("Not implemented yet!");}
43
44 /*}}}*/
45 /*Param methods: {{{1*/
46 int EnumType(){return enum_type;}
47 void GetParameterValue(bool* pbool){*pbool=value;}
48 void GetParameterValue(int* pinteger){ISSMERROR("Bool param cannot return an integer");}
49 void GetParameterValue(double* pdouble){ISSMERROR("Bool param cannot return a double");}
50 void GetParameterValue(char** pstring){ISSMERROR("Bool param cannot return a string");}
51 void GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Bool param cannot return a string arrayl");}
52 void GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Bool param cannot return a double array");}
53 void GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Bool param cannot return a double array");}
54 void GetParameterValue(Vec* pvec){ISSMERROR("Bool param cannot return a Vec");}
55 void GetParameterValue(Mat* pmat){ISSMERROR("Bool param cannot return a Mat");}
56 char* GetParameterName(void);
57 void SetMatlabField(mxArray* dataref);
58 /*}}}*/
59};
60#endif /* _BOOLPARAM_H */
Note: See TracBrowser for help on using the repository browser.