Overture  Version 25
FileOutput.h
Go to the documentation of this file.
1 #ifndef FILE_OUTPUT_H
2 #define FILE_OUTPUT_H
3 
4 #include "Overture.h"
5 #include "display.h"
6 
7 // This class is used for outputing Overture data in ascii format to a file.
8 
9 class GenericGraphicsInterface; // forward declaration
10 
12 {
13  public:
14 
15  FileOutput();
16  ~FileOutput();
17 
19  int save( realGridCollectionFunction & u, const aString & label=nullString );
21 
23  {
24  mask=0,
27  };
28 
29 
30  protected:
31 
32  int debug;
38  bool addLabels;
39 
40  FILE *outputFile;
42 
45 
46  IntegerArray saveGrids; // which grids to save.
47  IntegerArray saveGridFace; // saveGridLines(n,[0,1,2])=[grid,dir1,dir1Value] : save face dir1=dir1Value
48 
49  int saveData( realMappedGridFunction & u, int grid, int side =-1 , int axis = -1 );
51 };
52 
53 // here is the old way
54 
55 int
57 
58 #endif