[643] | 1 | /*!\file Result.h
|
---|
| 2 | * \brief: header file for result object
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _RESULT_H_
|
---|
| 6 | #define _RESULT_H_
|
---|
| 7 |
|
---|
[3637] | 8 | /*Headers:*/
|
---|
| 9 | /*{{{1*/
|
---|
[643] | 10 | #include "stdio.h"
|
---|
| 11 | #include "./Object.h"
|
---|
| 12 | #include "../toolkits/toolkits.h"
|
---|
[3637] | 13 | /*}}}*/
|
---|
[643] | 14 |
|
---|
| 15 | class Result: public Object{
|
---|
| 16 |
|
---|
| 17 | private:
|
---|
| 18 | int id;
|
---|
| 19 | double time;
|
---|
| 20 | int step;
|
---|
| 21 | char* fieldname;
|
---|
| 22 | Vec field;
|
---|
| 23 | double* dfield;
|
---|
[1271] | 24 | char* cfield;
|
---|
[643] | 25 | int size;
|
---|
| 26 |
|
---|
| 27 | public:
|
---|
| 28 |
|
---|
| 29 | Result();
|
---|
[758] | 30 | Result(const Result& result);
|
---|
[643] | 31 | Result(int result_id,double result_time,int result_step,char* result_fieldname,Vec result_field);
|
---|
| 32 | Result(int result_id,double result_time,int result_step,char* result_fieldname,double* result_field,int result_size);
|
---|
[1271] | 33 | Result(int result_id,double result_time,int result_step,char* result_fieldname,char* result_field);
|
---|
[643] | 34 | ~Result();
|
---|
| 35 |
|
---|
| 36 | void Echo();
|
---|
[803] | 37 | void DeepEcho();
|
---|
[3673] | 38 | int Id(void);
|
---|
[643] | 39 | int MyRank(void);
|
---|
| 40 | void Marshall(char** pmarshalled_dataset);
|
---|
| 41 | int MarshallSize();
|
---|
| 42 | void Demarshall(char** pmarshalled_dataset);
|
---|
| 43 | int Enum();
|
---|
| 44 | Object* copy();
|
---|
[3703] | 45 | void UpdateInputsFromVector(double* vector, int name, int type){ISSMERROR("Not implemented yet!");}
|
---|
[3751] | 46 | void UpdateInputsFromVector(int* vector, int name, int type){ISSMERROR("Not implemented yet!");}
|
---|
| 47 | void UpdateInputsFromVector(bool* vector, int name, int type){ISSMERROR("Not implemented yet!");}
|
---|
[3732] | 48 | void UpdateInputsFromConstant(double constant, int name){ISSMERROR("Not implemented yet!");}
|
---|
| 49 | void UpdateInputsFromConstant(int constant, int name){ISSMERROR("Not implemented yet!");}
|
---|
| 50 | void UpdateInputsFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");}
|
---|
| 51 |
|
---|
[3703] | 52 | void UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type){ISSMERROR("Not implemented yet!");}
|
---|
[643] | 53 |
|
---|
| 54 | double GetTime();
|
---|
| 55 | void GetField(Vec* pfield);
|
---|
| 56 | void GetField(double** pfield);
|
---|
[1271] | 57 | void GetField(char** pcfield);
|
---|
[643] | 58 | int GetStep();
|
---|
| 59 | void WriteData(FILE* fid);
|
---|
| 60 | char* GetFieldName();
|
---|
| 61 |
|
---|
[3703] | 62 |
|
---|
[643] | 63 | };
|
---|
| 64 |
|
---|
| 65 | #endif /* _RESULT_H_ */
|
---|
| 66 |
|
---|