| 1 | /*!\file Result.h
|
|---|
| 2 | * \brief: header file for result object
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _RESULT_H_
|
|---|
| 6 | #define _RESULT_H_
|
|---|
| 7 |
|
|---|
| 8 | /*Headers:*/
|
|---|
| 9 | /*{{{1*/
|
|---|
| 10 | #include "stdio.h"
|
|---|
| 11 | #include "./Object.h"
|
|---|
| 12 | #include "../toolkits/toolkits.h"
|
|---|
| 13 | /*}}}*/
|
|---|
| 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;
|
|---|
| 24 | char* cfield;
|
|---|
| 25 | int size;
|
|---|
| 26 |
|
|---|
| 27 | public:
|
|---|
| 28 |
|
|---|
| 29 | Result();
|
|---|
| 30 | Result(const Result& result);
|
|---|
| 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);
|
|---|
| 33 | Result(int result_id,double result_time,int result_step,char* result_fieldname,char* result_field);
|
|---|
| 34 | ~Result();
|
|---|
| 35 |
|
|---|
| 36 | void Echo();
|
|---|
| 37 | void DeepEcho();
|
|---|
| 38 | int Id(void);
|
|---|
| 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();
|
|---|
| 45 | void UpdateInputsFromVector(double* vector, int name, int type){ISSMERROR("Not implemented yet!");}
|
|---|
| 46 | void UpdateInputsFromConstant(double constant, int name){ISSMERROR("Not implemented yet!");}
|
|---|
| 47 | void UpdateInputsFromConstant(int constant, int name){ISSMERROR("Not implemented yet!");}
|
|---|
| 48 | void UpdateInputsFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");}
|
|---|
| 49 |
|
|---|
| 50 | void UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type){ISSMERROR("Not implemented yet!");}
|
|---|
| 51 |
|
|---|
| 52 | double GetTime();
|
|---|
| 53 | void GetField(Vec* pfield);
|
|---|
| 54 | void GetField(double** pfield);
|
|---|
| 55 | void GetField(char** pcfield);
|
|---|
| 56 | int GetStep();
|
|---|
| 57 | void WriteData(FILE* fid);
|
|---|
| 58 | char* GetFieldName();
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | };
|
|---|
| 62 |
|
|---|
| 63 | #endif /* _RESULT_H_ */
|
|---|
| 64 |
|
|---|