Flow123d  jenkins-Flow123d-windows32-release-multijob-51
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 #include "fields/unit_si.hh"
17 
18 /**
19  * \brief Common parent class for templated OutputData.
20  *
21  * Provides virtual method for output of stored data.
22  *
23  */
25 public:
26  /**
27  * Number of components of element data stored in the database.
28  */
29  enum ValueType {
30  scalar=1,
31  vector=3,
33  };
34 
35  virtual ~OutputDataBase() {};
36  virtual void print(ostream &out_stream, unsigned int idx) = 0;
37 
38 
39  /**
40  * Data copied from Field.
41  */
42  std::string output_field_name;
43  std::string field_name;
45  /**
46  * Number of data values.
47  */
48  unsigned int n_values;
49 
50 
51  /**
52  * Number of data elements per data value.
53  */
55 
56 
57 };
58 
59 
60 
61 
62 #endif /* OUTPUT_DATA_BASE_HH_ */
Common parent class for templated OutputData.
std::string output_field_name
virtual ~OutputDataBase()
unsigned int n_values
std::string field_name
Class for representation SI units of Fields.
Definition: unit_si.hh:31
virtual void print(ostream &out_stream, unsigned int idx)=0