|
Last change
on this file since 758 was 758, checked in by Mathieu Morlighem, 16 years ago |
|
fixed control method output
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | /*!\file Result.h
|
|---|
| 2 | * \brief: header file for result object
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _RESULT_H_
|
|---|
| 6 | #define _RESULT_H_
|
|---|
| 7 |
|
|---|
| 8 | #include "stdio.h"
|
|---|
| 9 | #include "./Object.h"
|
|---|
| 10 | #include "../toolkits/toolkits.h"
|
|---|
| 11 |
|
|---|
| 12 | class Result: public Object{
|
|---|
| 13 |
|
|---|
| 14 | private:
|
|---|
| 15 | int id;
|
|---|
| 16 | double time;
|
|---|
| 17 | int step;
|
|---|
| 18 | char* fieldname;
|
|---|
| 19 | Vec field;
|
|---|
| 20 | double* dfield;
|
|---|
| 21 | int size;
|
|---|
| 22 |
|
|---|
| 23 | public:
|
|---|
| 24 |
|
|---|
| 25 | Result();
|
|---|
| 26 | Result(const Result& result);
|
|---|
| 27 | Result(int result_id,double result_time,int result_step,char* result_fieldname,Vec result_field);
|
|---|
| 28 | Result(int result_id,double result_time,int result_step,char* result_fieldname,double* result_field,int result_size);
|
|---|
| 29 | ~Result();
|
|---|
| 30 |
|
|---|
| 31 | void Echo();
|
|---|
| 32 | int GetId(void);
|
|---|
| 33 | int MyRank(void);
|
|---|
| 34 | void Marshall(char** pmarshalled_dataset);
|
|---|
| 35 | int MarshallSize();
|
|---|
| 36 | char* GetName();
|
|---|
| 37 | void Demarshall(char** pmarshalled_dataset);
|
|---|
| 38 | int Enum();
|
|---|
| 39 | Object* copy();
|
|---|
| 40 |
|
|---|
| 41 | double GetTime();
|
|---|
| 42 | void GetField(Vec* pfield);
|
|---|
| 43 | void GetField(double** pfield);
|
|---|
| 44 | int GetStep();
|
|---|
| 45 | void WriteData(FILE* fid);
|
|---|
| 46 | char* GetFieldName();
|
|---|
| 47 |
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 | #endif /* _RESULT_H_ */
|
|---|
| 51 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.