Flow123d
output_data_base.hh
Go to the documentation of this file.
1 /*
2  * output_data_base.hh
3  *
4  * Created on: Mar 16, 2014
5  * Author: jb
6  */
7 
8 #ifndef OUTPUT_DATA_BASE_HH_
9 #define OUTPUT_DATA_BASE_HH_
10 
11 
12 
13 #include <ostream>
14 #include <string>
15 
16 /**
17  * \brief Common parent class for templated OutputData.
18  *
19  * Provides virtual method for output of stored data.
20  *
21  */
23 public:
24  /**
25  * Number of components of element data stored in the database.
26  */
27  enum ValueType {
28  scalar=1,
29  vector=3,
31  };
32 
33  virtual ~OutputDataBase() {};
34  virtual void print(ostream &out_stream, unsigned int idx) = 0;
35 
36 
37  /**
38  * Data copied from Field.
39  */
40  std::string output_field_name;
41  std::string field_name;
42  std::string field_units;
43  /**
44  * Number of data values.
45  */
46  unsigned int n_values;
47 
48 
49  /**
50  * Number of data elements per data value.
51  */
53 
54 
55 };
56 
57 
58 
59 
60 #endif /* OUTPUT_DATA_BASE_HH_ */